All mock tests are FREE till 31 December — register to save your progress

The tight asymptotic bound for the recurrence T(n) = 2T(n/4) + √n is

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

Show answer & explanation

Correct answer: C. Θ(√n log n)

Explanation

a = 2, b = 4, so nlog₄2 = n1/2 = √n, which equals f(n). By case 2 of the Master theorem, T(n) = Θ(√n log n).

More Data Structures and Algorithms questions