Content deleted Content added
Suurballe's algorithm; {{math}} |
|||
Line 13:
#Finally, {{math|''q''}} is removed, and [[Dijkstra's algorithm]] is used to find the shortest paths from each node {{math|''s''}} to every other vertex in the reweighted graph.
In the reweighted graph, all paths between a pair {{math|''s''}} and {{math|''t''}} of nodes have the same quantity {{math|''h(s)'' − ''h(t)''}} added to them, so a path that is shortest in the original graph remains shortest in the modified graph and vice versa.
==Analysis==
|