prograComp
February 14th, 2007, 07:35 AM
Can anybody tell me which is the best path finding algorithm if the path contains loops?
|
Click to See Complete Forum and Search --> : Path Finding algorithm? prograComp February 14th, 2007, 07:35 AM Can anybody tell me which is the best path finding algorithm if the path contains loops? StTwister February 14th, 2007, 08:51 AM Any path finding algorithm works with loops EXCEPT the situation where there are negative-cost loops, when a minimum cost path is not possible. msg555 February 17th, 2007, 05:02 PM If a shortest path inlcudes a loop (I'm assuming we are in fact talking about shortest paths) then that loop must be a negative cycle. The Bellman Ford algorithm can detect negative cycles while computing shortest paths. http://en.wikipedia.org/wiki/Bellman-Ford_algorithm codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |