Computer Science EngineeringVery hard

The recurrence T(n) = 2T(n/2) + n log n solves to

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

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

This is the extended case 2 of the master theorem with k=1, giving Theta(n log^(k+1) n) = Theta(n log^2 n).

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

Exams that ask this topic