Data structures and algorithms
The master theorem
Solves the divide-and-conquer recurrences that turn up in every algorithms interview.
Where
- The tied case: multiply by .
- Merge sort: .
Assumptions
- Regularity conditions apply in the unbalanced cases; the tied case is the one that turns up.
Sanity check. Binary search is , , , giving .
Where this is taught
- Complexity: reading it off, and deriving it · CS · Complexity