The shortest path from
to
is not the direct route
but
the indirect route
. The former has length 87,
the latter has length 66.
Our aim here is to discuss algorithms for finding shortest paths in directed graphs. We concentrate on Dijkstra's algorithm, which solves the single-source-all-paths problem for positively weighted directed graphs. Other algorithms will be discussed in a later course.