Back to the 2023 paper

Module 1: Introduction

20232m

What is the complexity of T(n)=2T(n/4)+n2log⁡nT(n) = 2T(n/4) + n^2 \log n?
(i) Θ(n2log⁡(log⁡n))\Theta(n^2 \log(\log n))
(ii) Θ(n3log⁡n)\Theta(n^3 \log n)
(iii) Θ(n2log⁡n)\Theta(n^2 \log n)
(iv) Θ(nlog⁡n)\Theta(n \log n)

Worked SolutionAI Assisted

Answer: (iii) Θ(n² log n)

Master: a=2,b=4, n^{log_b a}=n^{0.5}. f=n² log n dominates → case 3 → Θ(f)=Θ(n² log n). Regularity holds.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.