Lesson
Graphs and Recurrences
Graph traversal explores vertices and edges. Breadth-first search uses a queue to explore level by level; depth-first search uses a stack (often the call stack) to go deep before backtracking.
Practice
Divide-and-conquer algorithms have running times described by recurrences. The recurrence $T(n) = 2T(n/2) + n$ โ the shape of merge sort โ solves to $O(n \\log n)$ by the Master theorem.
Quiz