Reflections on Shortest Paths
Explore the structural characteristics of shortest paths in graphs, including the nonuniqueness of paths, the behavior of concatenated paths, and the concept of shortest-paths trees. Understand why subpaths of shortest paths are also shortest and how these insights underpin common shortest-path algorithms.
Structure of shortest paths
In this lesson, we reflect on the structural properties of shortest paths, as well as the sub-digraphs formed by putting together other shortest paths. We take a look at some examples to intuit better.
Nonuniqueness of shortest paths
There may be more than one shortest path between two vertices. For example, there are
Concatenation of shortest paths
When a path terminates at a vertex, from which another one begins, we refer to the resulting digraph (consisting of the two paths) as being formed from the concatenation of those two paths. We might be tempted to think that concatenating a shortest path, starting at a vertex
Suppose we have a