Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • GATE CS
  • 2026–27 pattern practice
  • Algorithms
  • Master theorem
  • Hard

What is the solution of T(n)=3T(n/4)+nlog⁡nT(n) = 3T(n/4) + n \log n?

Asymptotic Analysis

Pick an option to check your answer.

nlog⁡43≈n0.79n^{\log_4 3} \approx n^{0.79}, and f(n)=nlog⁡n=Ω(n0.79+ϵ)f(n) = n\log n = \Omega(n^{0.79 + \epsilon}). The regularity condition holds: 3f(n/4)=34nlog⁡(n/4)≤34f(n)3f(n/4) = \tfrac{3}{4} n \log(n/4) \le \tfrac{3}{4} f(n). So case 3 applies and T(n)=Θ(f(n))=Θ(nlog⁡n)T(n) = \Theta(f(n)) = \Theta(n \log n).

Why not the others

  • Θ(nlog⁡43)\Theta(n^{\log_4 3}) is case 1, which would need f(n)f(n) to be polynomially smaller than n0.79n^{0.79}.
  • Θ(n)\Theta(n) drops the log⁡n\log n factor of f(n)f(n), which dominates.
  • Θ(nlog⁡2n)\Theta(n \log^2 n) applies the case-2 extension, which needs f(n)=Θ(nlog⁡balog⁡n)f(n) = \Theta(n^{\log_b a} \log n).

Report an error

GATE CS · Algorithms · Asymptotic Analysis