• retagged by
566 views

1 Answer

Best answer
2 2 votes
$T\left ( n \right )=\sqrt{n}\, *\, T\left ( \sqrt{n} \right )\: +100n$

Let $n= 2^{k}$

$\Rightarrow T\left ( 2^{k} \right )= \left ( 2^{k} \right )^{1/2}\, *\, T\left ( \left ( 2^{k} \right )^{1/2}\right )+100*2^{k}$

$\Rightarrow T\left ( 2^{k} \right )= 2^{k/2}\, * \, T\left ( 2^{k/2} \right )+100*2^{k}$

$\Rightarrow $ dividing both side by $2^{k}$$\Rightarrow T\left ( 2^{k} \right )/2^{k}=T\left ( 2^{k/2} \right )/2^{k/2}+100$

Let $T\left ( 2^{k} \right )/2^{k}=Y\left ( k \right )$

$\Rightarrow Y\left ( k \right )=Y\left ( k/2 \right )+100$

Using Master theorem $a=1,b=2,k=0,p=0\Rightarrow a= b^{k}\Rightarrow case 2\Rightarrow Y\left ( k \right )=\Theta \left ( \log_{2}k\right )$

$\Rightarrow we\, have \, Y\left ( k \right )=\log_{2}k\, and \, we \, know \, that T\left ( 2^{k} \right )/2^{k}=Y\left ( k \right )$

$T\left ( 2^{k} \right )=2^{k}*\, Y\left ( k \right )\Rightarrow 2^{k}*\log_{2}k\Rightarrow n*\log \log n$

$\Rightarrow T\left (n\right )= \Theta \left ( n*\log \log n \right )$
• selected by
Position:
Show:

Related questions

0 0 votes
1 1 answer
308
308 views
arbpass asked Sep 11, 2025
308 views
How to check if f(n) is polynomially greater than g(n)?
0 0 votes
1 answers 1 answer
2.9k
2.9k views
Shreya2002 asked Oct 27, 2022
2,933 views
How to solve this recurrence relationT(n)= T(0.09n) + T(0.91n) + cnwhere c is constant and T(1)=1options are-
1 1 vote
2 answers 2 answers
1.9k
1.9k views
srestha asked May 10, 2019
1,855 views
What is the solution of recurrence relation$T\left ( n \right )=T\left ( n-1 \right )+n$
0 0 votes
1 1 answer
1.5k
1.5k views