UGC NET Paper 2 (Computer Science)Very hard

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

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

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

The master theorem does not apply (f(n) is only smaller by a log factor); summing n/log(n/2^i) over levels gives n times a harmonic sum, i.e. n log log n.

More UGC NET Computer Science and Applications questions

Exams that ask this topic