Consider the following recurrence relation: T(n) = 2T(n - 1) + n2n for n > 0, T(0) = 1. Which ONE of the following options is CORRECT?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 1 · Q20
Time
Select one answerSingle correct
Solution
Official answer: A) T(n) = (n2 2n)
Asymptotic AnalysisTo solve the recurrence relation:
Divide both sides by :
Let . Then the base condition becomes:
Now, rewrite the recurrence in terms of :
Unrolling the recurrence:
Multiplying back by gives:
Hence, the correct option is (A).
Try the question first, then check your work.
Examiner trap
Divide the entire recurrence equation by and define a substitution variable .
This Asymptotic Analysis previous year question is Q20 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Asymptotic Analysis in Algorithms, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Asymptotic Analysis PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Asymptotic Analysis has 31 GATE CSE PYQs across 19 papers from 2011 to 2026. 15 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2025 Set 1.
How GATE tests Asymptotic AnalysisIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.