closed by
854 views

3 Answers

1 votes
1 votes
T(n) = $n^{1/2}$T($n^{1/2}$) + n

put n=$2^{m}$

T($2^{m}$) = $2^{m/2}$T($2^{m/2}$) + $2^{m}$

divide by $2^{m}$

$\frac{T(2^{m})}{2^{m}} = \frac{T(2^{m/2})}{2^{m/2}} + \frac{2^{m}}{2^{m}}$

put $\frac{T(2^{m})}{2^{m}}$ = S(m)

then , S(m) = S(m/2) + 1

By master theorem S(m) = $\Theta(logm)$

T($2^{m}$) = $2^{m}$.S(m) = $2^{m}$.$\Theta(logm)$

now m = logm

T(n)= $\Theta(nloglogn)$
0 votes
0 votes

here we can not apply Master theorem

if  any recurrence relation is the form of

T(n) = a T(n/b) + f(n)

where  a and b should be +ve constant and a ≥ 1,b >1

and f(n) be +ve function

Related questions

1 votes
1 votes
1 answer
3
VIKRAM KASANA asked Dec 21, 2017
657 views
please help me to understand
2 votes
2 votes
1 answer
4