Computer Science EngineeringHardISRO SC (CS)

Using the Master theorem (extended form), the solution of T(n) = 27T(n/3) + n^3 is:

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

Correct answer: A. Theta(n^3 log n)

k = log_3 27 = 3, so case 2 (extended): Theta(n^3 log^1 n). Here a = 27, b = 3, log_b a = 3.

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

Exams that ask this topic