next up previous
Next: Up: Previous:

Dijkstra's Algorithm [1959] (nonnegative weights only)

\(1. \;\;\;\) Q = V
\(2. \;\;\;\) S = {}
\(3. \;\;\;\) repeat
\(4. \;\;\;\;\;\;\) select a vertex u from Q
\(5. \;\;\;\;\;\;\) Use \(\delta(s,u)\) to update other values
\(6. \;\;\;\;\;\;\) S = S $\cup$ {u}
\(7. \;\;\;\) until Q = {}


next up previous
Next: Up: Previous: