Problem set: recurrences & asymptotics
◈ 5 cardsNine worked exam-style recurrences across all three methods, the master-theorem traps, and an empirical confirmation that T(n)=2T(n/2)+n is exactly n lg n + n.
The most-examined skill in the course
AU's exam nearly always asks you to solve a recurrence you have not seen and to prove or classify an asymptotic bound. This is a mechanical skill — drill it until you can do each of the nine below without hesitation.
Master-theorem classifications
Watershed ; compare to .
- . ; ⟶ case 1 ⟶ .
- . ; ⟶ case 2, ⟶ .
- . ; , regularity holds () ⟶ case 3 ⟶ .
- . ; ⟶ case 2, ⟶ . (the trap: NOT n lg n)
- . ; ⟶ case 2, ⟶ . (binary search)
- (Strassen). ; ⟶ case 1 ⟶ .
Recursion tree / substitution (master theorem doesn't apply)
- . Not a master recurrence (subtracts, not divides). Unroll: .
- ; . (subtract-one recurrences: linear vs exponential depending on the branching factor)
- . Unequal split — master theorem can't touch it. Every level sums to ; the longest path is levels ⟶ .
The substitution trap to never fall into
Proving by guessing : the step gives , which is not . The bound is simply false here (the true answer is ) — but students often 'rescue' it by writing , silently absorbing the into the . You may never fold the driving term into the hypothesis constant. The induction must reproduce the same exactly.
Empirical check
with has the exact closed form . So , which decreases toward 1 as grows — the lower-order term fading next to is exactly what predicts. The exercise below shows that ratio converging.