Computer Science EngineeringVery hard

The recurrence T(n) = 4T(n/2) + n^2 has solution

  1. A. Theta(n^2)
  2. B. Theta(n^2 log n)
  3. C. Theta(n^3)
  4. D. Theta(n log n)

Correct answer: B. Theta(n^2 log n)

Here n^(log2 4) = n^2 matches f(n), so case 2 of the master theorem gives n^2 log n.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic