retagged by
804 views

1 Answer

0 0 votes

T(n) = T(sqrt n) +1

let n = 2m                   .........................(1)

T(2m) = T(2m/2) + 1

assume T(2m) = S(m)

so S(m) = S(m/2) + 1

apply master theorem

S(m) = theeta (log m)

from (1)

so T(n) = theeta (log log n) 

Position:
Show:

Related questions

3 3 votes
1 answers 1 answer
4.8k
4.8k views
Hardik Maheshwari asked Jun 11, 2018
4,773 views
Can Extended Masters theorem be applied to the following recursive equation ?$T(n)=n^{1/2}T(n^{1/2})+n$I solved this using back substitution and the time complexity came ...
3 3 votes
1 answers 1 answer
39.6k
39.6k views
3 3 votes
1 answers 1 answer
3.7k
3.7k views
im.raj asked Jun 16, 2016
3,727 views
A. T(n) = $O( n Log n)$B. T(n) = $O({(logn)}^2)$C. T(n) = $O(n)$D. T(n) = $O(n^2)$
6 6 votes
2 2 answers
17.3k
17.3k views
$ourav asked May 20, 2016
17,321 views
Consider the recurrence relation T(n) = T(n-1) + T(n/2) + nWhich of the following is a good tight upper bound on T(n)(a) $\Theta (n^{2})$(b) $\Theta (n^{2}\log n)$(c) $\T...