GATE IT 2005 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0143

Let T(n) be a function defined by the recurrence \(T(n) = 2T(n/2) + \sqrt n \text{ for }n \geq 2\) and \(T(1) = 1\)Which of the following statements is TRUE?
  1. A
    \(T(n) = \Theta(\log n)\)
  2. B
    \(T(n) = \Theta(\sqrt n)\)
  3. C
    \(T(n) = \Theta(n)\)
  4. D
    \(T(n) = \Theta(n \log n)\)

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/3812/gate2005-it-51

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