Please check if you really need all criteria!
Pick at most 2 of 3 and we might be able to help:
If it's just a theoretical question and you can't limit the requirements, then I suppose a branch and bound algorithm might be the best approach, but it won't be faster than brute force in some edge cases.
HTH! =)
Cheers Rolf
( addicted to the Perl Programming Language)
had a short glance at the WP article and it describes much better what I wanted to tell.
¹) almost
²) corrected, educated foo++
In reply to Re: Travelling problem
by LanX
in thread Travelling problem
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |