retagged by
972 views

1 Answer

1 votes
1 votes

T(n)= √2 *T(n/2) + c

=√2 [√2 *T(n/2 2) +c] +c

= √2 2  *T(n/2 2) + √2c +c

=√2 3 *T(n/2 3) + √2 2  c +√2c +c

...

=√2 k *T(n/2 k)+  √2 k-1  c+√2 k-2  c+...+√2c +c

put n/2 k  =1  => k=log 2 n

=(√2) log n *T(1) + c [ 1 * (√2 log n -1)/(√2-1)]    (by applying g.p. series)

=n log 2√2 *a + c [ (n log 2√2 -1)/(√2-1)]

=a*n 1/2  +c [ (n 1/2 -1)/(√2-1)]  (Ignoring constants)

=O(n 1/2).

Related questions

0 votes
0 votes
1 answer
1
aka 53 asked Nov 21, 2017
1,599 views
T(n) = 4T(n/2) + C ......where C ConstantT(n) = 16T(n/4) + 5CCant figure out how to generalize and compare with base condition T(n) = 1 from above step.
2 votes
2 votes
2 answers
2
NIHAR MUKHIYA asked Jul 2, 2017
3,414 views
solution of t(n)= t(sqrt(n)) + n using back substitution
3 votes
3 votes
1 answer
3
sumit_kumar asked Jun 25, 2017
3,149 views
what is time comlexity procedure for following recursive equation by substitution method:T(n)= T(n-1)+T(n-2) , if n>=2 =1 , if n=1; =0 , if n=0.