Single-Source Shortest-Path Problem

Given a source node s and a destination t, we want to find the shortest (minimum weight) path from s to t.

En route, we will find the shortest path to all nodes tex2html_wrap_inline162 .

Solution is a sequence of nodes tex2html_wrap_inline164 such that tex2html_wrap_inline166 , tex2html_wrap_inline168 , and tex2html_wrap_inline170 is minimized.

Definition: tex2html_wrap_inline172 is the length of the shortest path from u to v. So we're looking for a path from s to t whose length is tex2html_wrap_inline172 .

Example graph...


next up previous
Next: Variations Up: SHORTEST PATH PROBLEM Previous: Route Finding