All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2019

Give tight bounds for T(n) = 4T(√n) + lg²n, with T(n) constant for n ≤ 2.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. Θ(lg² n lg lg n)

Explanation

Let m = lg n, S(m) = T(2ᵐ): S(m) = 4S(m/2) + m². Master theorem case 2 gives Θ(m² lg m) = Θ(lg²n lg lg n).

More Data Structures and Algorithms questions