1 1 vote soluation for the recurrence relation is f(x)=2T(floor(rootn))+logn 1.O(nlogloglogn) 2.O(nloglogn) 3.O(loglogn) 4O(lognloglogn) Algorithms made-easy-test-series recurrence-relation + – Hira Thakur 583 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
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 dd answered Aug 14, 2016 • selected Jan 12, 2018 by Hira Thakur dd comment Share Follow See 1 comment 1 1 comment reply Hira Thakur commented Aug 14, 2016 reply Follow flag in this question what is the meaning of floor?? 0 0 replyShare Please log in or register to add a comment.