• retagged by
583 views

1 Answer

Best answer
3 3 votes
$\\ T(n) = 2T( \sqrt n) + \log n \\ \\ take \ 2^k = n \\ \\ => T(2^{k}) = 2T(2^{\frac{k}{2}}) + \log (2^{k}) \\ \\ => S(k) = 2S(\frac{k}{2}) + k \\ \\ => using \ master \ theorem : S = O(k \log k) \\ \\ T(n) = O(\log n * \log (\log n)) = O(\log n \log \log n) \\$

Option 4

Note : Floor does not make any difference if n - > $\inf$

We can solve with recursion tree also
• selected by
Position:
Show:

Related questions

0 0 votes
1 1 answer
934
934 views
Nitesh_Yadav asked Jan 4, 2022
934 views
Find the time complexity of the given program
1 1 vote
1 answers 1 answer
1.3k
1.3k views
Hira Thakur asked Aug 14, 2016
1,331 views
Big oh estimate forf(x)=(x+1)log($x^2 +1$)+3$x^2$ is given as1.O(xlogx)2.O($x^2$)3.O($x^3$)4O($x^2$logx)
0 0 votes
1 1 answer
1.0k
1.0k views
gutsyParth asked Jul 14, 2024
1,036 views
Total number of 2 x 1 multiplexers required to implement full subtractor is1. five 2 x 1 multiplexers with available of NOT gates2. seven 2 x 1 multiplexers with availabl...
0 0 votes
0 0 answers
1.1k
1.1k views
jay03 asked Nov 28, 2022
1,102 views
what should be the ans??according to me answer should be 7 nodes, 8 edges but 5 nodes, 6 edges is given in the answer key!please tell me what am i doing wrong.