GATE | GATE 2017 MOCK II | Question 24

Let f(n) = Σ [(log(n/2i) +100] where i limits from 0 to k, and n = 2k.

Find the time complexity of f(n).
(A) θ(n)
(B) θ(nlogn)2
(C) θ(logn)
(D) θ(logn)2


Answer: (D)

Explanation: rsz_sigma

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.