- GATE CS
- 2026–27 pattern practice
- Algorithms
- Recurrences
- Easy
What is the solution of , with ?
Asymptotic Analysis
Pick an option to check your answer.
Answer: C. Solution
Unroll the recurrence:
This is the cost pattern of insertion sort or selection sort in the worst case.
Why not the others
- would need constant work per step, as in .
- comes from halving recurrences like .
- comes from branching recurrences like .