GATE CS 2002 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0157

The running time of the following algorithm Procedure A(n)If n \(\leq\) 2 return (1) else return (A(\(\sqrt{n}\))); is best discribed by
  1. A
    O(n)
  2. B
    O(log n)
  3. C
    O(loglogn)
  4. D
    O(1)

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/841/gate2002-2-11

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