closed by
1,043 views

1 Answer

3 votes
3 votes
Take $n=2^m$ then

$T(2^m)=T(2^{m/2})+\log m$

$\implies S(m)=S(m/2)+\log m$

Solve using master's theorem .$S(m)=O(\log ^2 m)=T(2^m)$

Put $m=logn \implies T(n)=(\log \log n)^2$

Related questions

3 votes
3 votes
1 answer
4
Ashish Sharma 3 asked Jun 16, 2017
1,761 views
What will be the time complexity for the following recurrence relation?$T(n) = 8\sqrt{n} T(\sqrt{n})+(log n)^{2}$According to me it is $\Theta (n(logn)^{3})$ . Please con...