Skip to content

UGC NET CS 2022Data Structures and Algorithms › Performance Analysis of Algorithms and RecurrencesVerified

UGC NET CS 2022 PYQ: The solution of the recurrence relation $T(n)=3 T(n / 4)+n \lg n$ is

The solution of the recurrence relation $T(n)=3 T(n / 4)+n \lg n$ is

  1. A
    $\theta\left(n^{2} \lg n\right)$
  2. B
    $\theta(n \lg n)$
    Correct answer
  3. C
    $\theta(n \lg n)^{2}$
  4. D
    $\theta(n \lg \lg n)$

Answer

(B) $\theta(n \lg n)$

Approach

Apply Master theorem case 3 with the regularity check.

Reviewed by UGC IQ Editorial Team.