UGC NET Paper 2 (Computer Science)Very hard

Solve the recurrence relation given by T(n) = 2T(n/2) + n log n, assuming n is a power of 2, for its asymptotic (Theta) bound.

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

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

n^(log2 2) = n matches f(n) up to the extra log factor, so the extended master theorem (case 2 with k=1) gives Theta(n log^2 n), one power of log higher than the n/log n variant.

More UGC NET Computer Science and Applications questions

Exams that ask this topic