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

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.