Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Algorithms | Analysis of Algorithms (Recurrences) | Question 7

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The running time of the following algorithm

  Procedure A(n)  
  If n <= 2 return(1) else return A(\lceil \sqrt{n}  \rceil);

is best described by
(A) O(n)
(B) O(log n)
(C) O(1og log n)
(D) O(1)


Answer: (C)

Explanation: For explanation, please see question 5 of this post


Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 10 Jul, 2018
Like Article
Save Article
Similar Reads