Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 1:
<b>Disjkstra's algorithm</b> solves a [[shortest path problem]] for a directed and connected [[graph theory|graph]] G(V,E) which has nonnegative (>=0) edge weights. The set V is the set of all [[vertex|
Assume that the function w: V x V -> [0,oo) describes the cost w(x,y) of moving from vertex x to [[vertex]] y (non-negative cost). (We can define the cost to be infinite for pairs of vertices that are not connected by an edge.) For a given vertex s in V, the algorithm computes the shortest path (lowest total value of w) from s to any other vertex t.
|