GATE CS 2024 · Set-2 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0071

Let \(T(n)\) be the recurrence relation defined as follows:\[\begin{aligned} & T(0)=1, \\ & T(1)=2, \text { and } \\ & T(n)=5 T(n-1)-6 T(n-2) \text { for } n \geq 2 \end{aligned}\]Which one of the following statements is TRUE?
  1. A
    \(T(n)=\Theta\left(2^n\right)\)
  2. B
    \(T(n)=\Theta\left(n 2^n\right)\)
  3. C
    \(T(n)=\Theta\left(3^n\right)\)
  4. D
    \(T(n)=\Theta\left(n 3^n\right)\)

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422892/gate-cse-2024-set-2-question-5

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com