Do you know where your variables are? | |
PerlMonks |
Re: Travelling problemby LanX (Saint) |
on Dec 21, 2013 at 16:59 UTC ( [id://1068042]=note: print w/replies, xml ) | Need Help?? |
Are you aware that
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)
updatehad a short glance at the WP article and it describes much better what I wanted to tell.
footnotes¹) almost ²) corrected, educated foo++
In Section
Seekers of Perl Wisdom
|
|