GATE Computer ScienceHardGATE CS (PYQ pattern)

The solution of T(n) = 4T(n/2) + n² log n is:

  1. A. Θ(n² log² n)
  2. B. Θ(n² log n)
  3. C. Θ(n³)
  4. D. Θ(n² log³ n)

Correct answer: A. Θ(n² log² n)

Here n^(log₂4) = n² and f(n) = n² log n, which matches the extended case f = Θ(n^(log_b a) · log^k n) with k = 1 ≥ 0. The solution is Θ(n² log^(k+1) n) = Θ(n² log² n), a case the basic master theorem does not cover.

More Algorithms questions

Exams that ask this topic