Notes

Search

Search IconIcon to open search

Shortest Paths

Last updated Jan 1, 2022

See also: Graph Problems, S-T Connectivity, Tree vs Graph Traversals

Graph Problems Summary

ProblemDescriptionEfficiency
S-T pathsFind a path from s to every reachable vertex
S-T shortest pathsFind a shortest path from s to every reachable vertex

Last time, we saw two ways to find paths in a graph: DFS and BFS.

Which is better?