Discrete math · Trees and graph algorithms

Breadth-first and depth-first search

Two systematic ways to explore a graph visit vertices in different orders, and one of them finds the fewest hops.