Computer Science And Engineering

Computer Science And EngineeringAlgorithmsMultiple Choice (MCQ)1 Mark
Q6.

Consider the following recurrence relation:

T(n)={nT(n)+nfor n1,1for n=1.T(n) = \begin{cases} \sqrt{n}T(\sqrt{n}) + n & \text{for } n \geq 1, \\ 1 & \text{for } n = 1. \end{cases}

Which one of the following options is CORRECT?

A
T(n)=Θ(nloglogn)T(n) = \Theta(n \log \log n)
B
T(n)=Θ(nlogn)T(n) = \Theta(n \log n)
C
T(n)=Θ(n2logn)T(n) = \Theta(n^2 \log n)
D
T(n)=Θ(n2loglogn)T(n) = \Theta(n^2 \log \log n)