|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dijkstra Shortest path Algorithm
Suppose an edge in the graph is deleted. How can I go about updating the shortest paths, without running the entire Disjkstra algorithm again?
|
|
#2
|
|||
|
|||
|
I think you need to run the algorithm again. Why not by the way? Its fast enough? Or what is you criteria?
// Tobias Marciszko |
|
#3
|
|||
|
|||
|
I'm a new user here. may i know what script do u use to perform the djikstra algorithm? can i use VB.Net?Can i get the script from u instead?
|
|
#4
|
|||
|
|||
|
I think it is possible. However this is just off the top of my head, so may be total bollocks.
If a shortest path between A and B does not contain the removed edge, then it will still be the shortest path between those two points. So go through the set of shortest paths and remove those that contain the missing edge. This will leave you with a set of known shortest paths. You can then run the algorithm again with this set as the initial data, instead of the empty set. Dave - The Developers' Coach |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Software Design > Dijkstra Shortest path Algorithm |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|