Consider the following recurrence relation. T(n) = T(n/2) + T(2n/5) + 7n & if n > 0 1 & if n = 0 Which one of the following options is correct?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2021 Set 1 · Q30
Time
Select one answerSingle correct
Solution
Official answer: C) T(n) = (n)
Asymptotic AnalysisWe can solve the recurrence using the Recursion Tree Method or the Akra-Bazzi Theorem.
### Method 1: Recursion Tree Analysis
At each level of the recursion tree, we sum the non-recursive work performed:
Level 0:
Level 1:
Level 2:
Level :
Summing the work across all levels:
Since this is an infinite geometric series with common ratio :
### Method 2: Akra-Bazzi Theorem
The recurrence is of the form , where , , and .
Find such that:
Evaluating at :
Since the sum decreases as increases, we must have .
The solution is given by:
Since , the integral evaluates to:
Therefore:
Hence, the correct option is (C).
Try the question first, then check your work.
Examiner trap
Sum the work done at each level of the recursion tree. Notice that the sum of the branch factors , forming a decreasing geometric progression.
This Asymptotic Analysis previous year question is Q30 of the GATE CSE 2021 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. 12 of them are 2-mark MCQs like this one, and GATE CSE 2021 Set 1 has 2.
How GATE tests Asymptotic AnalysisIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.