GATE CS 2004 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0151

The recurrence equation T(1) = 1 T(n) = 2T(n - 1) + n, n \(\geq\) 2 evaluates to
  1. A
    \(2^{n+1}-n-2\)
  2. B
    \(2^{n}-n\)
  3. C
    \(2^{n+1}-2n-2\)
  4. D
    \(2^{n}+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/1078/gate2004-84

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