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

The solution of the recurrence T(n) = 3T(n/4) + n log n is

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

Show answer & explanation

Correct answer: B. Θ(n log n)

Explanation

n^(log₄3) ≈ n^0.79, which is polynomially smaller than n log n, and the regularity condition holds. Master theorem case 3: Θ(n log n).

More Data Structures and Algorithms questions