How to make a dijkstra longest path?

Can I speed up a shortest path computation by running dijkstra algorithms simultaneoulsy forward and backward?

  • One algorithm would run from the origin to the destination and the other from the destination backward to the origin. Follow-up questions are: 1. How can the overall algorithm determine when to stop? 2. How should the algorithm identify the shortest path? 3. How much faster would this algorithm be than computing in one direction?

  • Answer:

    Excellent questions. If you think about them awhile and try a few runs at the program I am sure you will come up with the answers.

Ron G at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.