GATE CS 2003 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0155

Consider the following recurrence relation T(1)=1 T(n+1)=T(n)+\(\left \lfloor \sqrt{n+1} \right \rfloor\) for all n \(\geq\) 1 The value of T(\(m^{2}\) ) for m \(\geq\) 1 is
  1. A
    (m/6) (21m - 39) + 4
  2. B
    (m/6) (4\(m^{2}\) - 3m + 5)
  3. C
    (m/2) (\(m^{2.5}\) - 11m + 20) - 5
  4. D
    (m/6) (5\(m^{3}\) - 34\(m^{2}\) + 137m - 104) + (5/6)

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/925/gate2003-35

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