UGC NET Paper 2 (Computer Science)Hard

The recurrence T(n) = 3T(n/3) + n/2 has the solution:

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

Correct answer: A. Theta(n log n)

Here n^(log_3 3) = n equals f(n) = n/2 up to a constant, so the master theorem's case 2 applies, giving an extra log factor.

More UGC NET Computer Science and Applications questions

Exams that ask this topic