- GATE CS
- 2023 pattern
- Algorithms
- Master theorem
- Medium
What is the solution of the recurrence with ?
Asymptotic Analysis
Pick an option to check your answer.
Answer: B. Solution
Apply the master theorem with , , .
- Compute
- , which is case 2
- So — the same recurrence as merge sort.
Why not the others
- counts only the work at the top level; there are levels, each costing .
- would need subproblems, as in .
- is the binary-search recurrence , with one subproblem and constant extra work.