Skip to content
Related Articles
Open in App
Not now

Related Articles

Algorithms | Analysis of Algorithms (Recurrences) | Question 11

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article

Consider the following recurrence.

T(n) = T(\sqrt{n}) + \Theta(Log Log n)

What is the value of recurrence?

(A) \Theta( (Log Log n) ^ 2)
(B) \Theta(Log Log n)
(B) \Theta(n)
(B) \Theta(Log Log Log n)

(A) A
(B) B
(C) C
(D) D


Answer: (A)

Explanation:  Change of variables: let m = lg n. Recurrence becomes S(m) = S(m/2) + theta(lgm). Case 2 of master’s theorem applies, so T(n) = theta( (log Log n) ^ 2).

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!