next up previous
Next: Up: Previous:

Single Source Shortest Paths

What is the least-cost solution for getting from point A to point B?



Shortest Paths Problem

Given a weighted, directed graph G = (V, E) with edge weights w and a path definition of p = <v0, v1, .., vk> with weight w(p) = \(\sum_{i=1}^k w(v_{i-1}, v_i)\), find the shortest path weight from vertex u to vertex v


\begin{displaymath}\delta(u,v) \;=\; \left\{ \begin{array}{ll}
min\{w(p): u \st...
...{\rm to} \; v \\
\infty & {\rm otherwise} \end{array} \right.\end{displaymath}

Breadth-First Search worked on unweighted (unit weight) graphs.


next up previous
Next: Up: Previous: