We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Algorithms | Analysis of Algorithms (Recurrences) | Question 11
Consider the following recurrence.
T(n) = T() +
What is the value of recurrence?
(A)
(B)
(B)
(B) (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