Asymptotic Analysis & Recurrences

Your answer
Answer & solution
Official answer: C
1. Hanoi moves n-1 disks away, moves the largest disk once, then moves n-1 disks back: T(n)=2T(n-1)+1=2n-1, so P→iii.
2. Binary search halves the candidate interval each time; after k comparisons about n/2k candidates remain. Reaching one requires Θ(log n) comparisons, so Q→iv.
3. Heapsort builds a heap in O(n) and performs n extractions costing O(log n) each in the worst case, giving Θ(n log n): R→ii. Matrix addition performs one addition at each of n² positions, giving S→i. Select C.