Let be the recurrence relation defined as follows:
Which one of the following statements is TRUE?
- (A)
- (B)
- (C)
- (D)
Let be the recurrence relation defined as follows:
Which one of the following statements is TRUE?
ANSWER
T(n) = Θ(2^n), i.e., option A.
Official answer: ASource: Official answer key, GATE 2024 CS2 (IISc Bengaluru)
The recurrence T(n) = 5T(n-1) - 6T(n-2) for n ≥ 2 is linear, homogeneous, with constant coefficients, so its closed form is determined by the characteristic equation.
Characteristic equation: , which factors as , giving roots and .
General solution: for constants determined by the initial conditions.
Apply : .
Apply : .
Subtract from : , so .
Thus exactly. Verification: and , both consistent with the closed form.
Since exactly for all , , which is option A.
KEY IDEA
A linear homogeneous recurrence with constant coefficients is solved via its characteristic equation; the roots give the exact closed form, and initial conditions pin down the coefficients.
WATCH OUT FOR
Assuming the larger root (3) always dominates the asymptotic growth without checking whether its coefficient in the closed form is actually zero — here the initial conditions force the coefficient of to vanish, so the recurrence in fact grows only as , not .
From the GATE 2024 CS2 paper. Every question of this paper · Download the full paper · All 14 Complexity questions, with notes