Consider the recurrence function T(n) = 2T(√(n)) + 1, & n > 2 2, & 0 < n ≤ 2 Then T(n) in terms of notation is
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2017 Set 2 · Q30
Time
Select one answerSingle correct
Solution
Official answer: B) (log n)
Asymptotic AnalysisWe are given the recurrence relation:
To solve this recurrence, change the variable: Let .
Then .
Substituting this into the recurrence:
Define a new function $S(m) = T(2^m)$:
Now, applying the Master Theorem for :
Critical exponent:
Since for , Case 1 of the Master Theorem applies:
Substitute back :
Therefore, the correct asymptotic bound is , which corresponds to Option (B).
Try the question first, then check your work.
Examiner trap
Use variable substitution: let so that , and define to convert the recurrence into standard divide-and-conquer form.
This Asymptotic Analysis previous year question is Q30 of the GATE CSE 2017 Set 2 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. 12 of them are 2-mark MCQs like this one, and GATE CSE 2017 Set 2 has 3.
How GATE tests Asymptotic AnalysisIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.