UGC NET Paper 2 (Computer Science)Very hard

For T(n) = T(n/2) + T(n/4) + n, the asymptotic solution is:

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

Correct answer: A. Theta(n)

Per-level work shrinks by the factor 3/4 < 1, so the geometric series is dominated by the root: Theta(n).

More UGC NET Computer Science and Applications questions

Exams that ask this topic