Computer Science EngineeringHardISRO SC (CS)

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

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

Correct answer: C. Theta(n)

f(n) = n^1 dominates n^0.631 and the regularity condition holds, so T(n) = Theta(f(n)) = Theta(n). Here a = 2, b = 3, log_b a = 0.631.

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

Exams that ask this topic