GATE / CS ARCHIVE

GATE CSE 2024 SET 2 / QUESTION 15

A recurrence whose larger-root coefficient vanishes

Algorithms · Asymptotic Analysis & Recurrences · Full GATE CSE 2024 Set 2 paper

GATE 2024 Set 2, Q15 1 mark · MCQ
Report issue

Asymptotic Analysis & Recurrences

Question 15, GATE 2024: T(0)=1, T(1)=2, and T(n)=5T(n−1)−6T(n−2) for n≥2. Choose its tight asymptotic class. A Θ(2^n); B Θ(n2^n); C Θ(3^n); D Θ(n3^n).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Approach: Solve the characteristic equation and then enforce both initial conditions.

1. Derivation. The characteristic polynomial r²−5r+6=(r−2)(r−3) gives T(n)=a 2ⁿ+b3ⁿ. T(0)=1 gives a+b=1, while T(1)=2 gives 2a+3b=2. Subtracting twice the first equation yields b=0, so a=1 and T(n)=2ⁿ exactly. Therefore A; the larger characteristic root does not contribute for these initial values.

2. Explanation and checks. A direct induction independently verifies the result: assuming T(n−1)=2n−1 and T(n−2)=2n−2, the recurrence becomes (10−6)2n−2=2n. Both base cases agree. The characteristic roots are distinct, so no factor n is introduced by repeated roots. More importantly, choosing the largest root without solving for its coefficient would give the wrong growth class here because that coefficient is zero.

Original paper, page 12 · Answer key