Does Dijkstra's Algorithm Go Backwards?

  • Thread starter Thread starter A_StClaire_
  • Start date Start date
A

A_StClaire_

hi,

I am trying to do this thing in C# and was wondering if it's customary
for the algorithm to backtrack. is its purpose only to find the
shortest path from a to z, or does one normally implement it backward
(i.e., z to a) after going forward?

obviously we are assuming edges may not be equal when reversing
directions (e.g., takes longer to go from b to a than from a to b).

thx for your help
 
hi,

I am trying to do this thing in C# and was wondering if it's customary
for the algorithm to backtrack. is its purpose only to find the
shortest path from a to z, or does one normally implement it backward
(i.e., z to a) after going forward?

obviously we are assuming edges may not be equal when reversing
directions (e.g., takes longer to go from b to a than from a to b).

thx for your help


Try this
http://theory.stanford.edu/~amitp/GameProgramming/AStarComparison.html#S2

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top