GATE CS 2024 · Set-1 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0072

Consider the following recurrence relation:\[T(n)=\left\{\begin{array}{c} \sqrt{n} T(\sqrt{n})+n \text { for } n \geq 1, \\ 1 \quad \text { for } n=1 . \end{array}\right.\]Which one of the following options is CORRECT?
  1. A
    \(T(n)=\Theta(n \log \log n)\)
  2. B
    \(T(n)=\Theta(n \log n)\)
  3. C
    \(T(n)=\Theta\left(n^2 \log n\right)\)
  4. D
    \(T(n)=\Theta\left(n^2 \log \log n\right)\)

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/422810/gate-cse-2024-set-1-question-32

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