Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Is this a valid approach to finding if a path through a set of points has completed?by bliako (Monsignor) |
on Jul 16, 2018 at 19:22 UTC ( [id://1218608]=note: print w/replies, xml ) | Need Help?? |
Can ants move from any point to any other point with the same cost? Why in Case 1 there are non-visited points? Why did the ants stopped? Is this a random walk on a line? In a travelling salesman problem there are costs to the connection of towns (points) - some connections are more difficult and costly than others. If you allow all points to be connected with each other and with same cost, then just list your points and move from the first to the last, one after the other.
In Section
Seekers of Perl Wisdom
|
|