Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity (n)?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2026 Set 2 · Q25
Time
Select all that applyOne or more correct
Solution
Official answer: A) T(n) = T(n - 1) + 1, T(1) = 1; B) T(n) = 2T ((n)/(2) ) + 1, T(1) = 1
Asymptotic AnalysisLet us solve each recurrence relation:
Option (A): with .
Option (B): with . Using the Master Theorem where :
Since for , by Case 1 of the Master Theorem:
Option (C): with . Here . By Case 2 of the Master Theorem:
Option (D): with .
Therefore, the recurrence relations with time complexity are (A) and (B).
Try the question first, then check your work.
Examiner trap
Solve the linear recurrence by unrolling/substitution and the divide-and-conquer recurrences using the Master Theorem.
This Asymptotic Analysis previous year question is Q25 of the GATE CSE 2026 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. 2 of them are 1-mark MSQs like this one, and GATE CSE 2026 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.