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
- (A) Θ(log log n)
- (B) Θ(log n)
- (C) Θ(√n)
- (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