GATE CS 2025 · Set-1 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0070

Consider the following recurrence relation:\(T(n) = 2T(n-1) + n2^n \quad \text{for} \quad n > 0, \quad T(0) = 1\)Which ONE of the following options is CORRECT?
  1. A
    \(T(n) = \Theta(n^2 2^n)\)
  2. B
    \(T(n) = \Theta(n 2^n)\)
  3. C
    \(T(n) = \Theta((\log n)^2 2^n)\)
  4. D
    \(T(n) = \Theta(4^n)\)

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/460070/gate-cse-2025-set-1-question-10

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