Help with refactoring PHP code
- by Richard Knop
I had some troubles implementing Lawler's algorithm but thanks to SO and a bounty of 200 reputation I finally managed to write a working implementation:
http://stackoverflow.com/questions/2466928/lawlers-algorithm-implementation-assistance
I feel like I'm using too many variables and loops there though so I am trying to refactor the code. It…