|
Recursive algorithm - combinations
Hi,
Hi,
I am working on a simple route finder and trying to workout a inplementation of the classic traveling salesman problems.
I have an array of postcodes (about 5-10 of them ) and need to work out every possible combination of ordering them.
Does anyone know how to make a combination generator in php? I understand that it has to be recursive - but don't know where to start solving the problem.
does anyone have any ideas?
Thanks,
James
|