in Algorithms edited by
367 views
0 votes
0 votes
how to solve these two using matser thorem.

1.  t(n)=2t(√n)+n

2. t(n)=4t(√n)+(logn)^2
in Algorithms edited by
by
367 views

1 comment

Master's method extension
0
0

1 Answer

0 votes
0 votes
Substitute n as some function of 2^k. So, k = log n. Now equation will in form of 2^k. Now reduce the equation into S(k) = 2S(k/2) + k and solve using master's theorem. And replace 'k' by log n.

1 comment

plz elobrate ur soln  speciallly for 2nd
0
0