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 relation 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

nlog43 ≈ n0.79 grows slower than n log n, and 3(n/4)log(n/4) ≤ (3/4) n log n satisfies regularity. Master theorem case 3: Θ(n log n).

More Data Structures and Algorithms questions