ISRO 2011 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0112

Let \(T(n)\) be defined by \(T(1)=10\) and \(T(n+1)=2n+T(n)\) for all integers \(n \geq 1\). Which of the following represents the order of growth of \(T(n)\) as a function of n?
  1. A
    \(O(n)\)
  2. B
    \(O(n \log n)\)
  3. C
    \(O(n^2)\)
  4. D
    \(O(n^3)\)

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/47492/isro2011-56

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