GATE CS 2017, set 2 · Question 30 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the recurrence function
T(n) = 2T(√n) + 1, n > 2 ; 2, 0 < n ≤ 2
Then T(n) in terms of Θ notation is

  1. (A) Θ(log log n)
  2. (B) Θ(log n)
  3. (C) Θ(√n)
  4. (D) Θ(n)
Answer

Answer (B)

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes