in Algorithms retagged by
555 views
0 votes
0 votes

T(n) =2 T$(\frac{n}{4})$ - n2

in Algorithms retagged by
555 views

2 Comments

f(n) is not positive -> Masters theorem cannot be applied..... but could be solved by tree and substitution method!

1
1

T (n) = 2T (n/2) + n/ log n

Another example ..that can't be solved by masters theorem because of non-polynomial difference between f(n) and n^{\log _{b}a} 

1
1

1 Answer

0 votes
0 votes
By masters and Substitution

Answer is Theta(n^2)

 

please update me, if there is some other answer.

4 Comments

if you are substitituing then please tell what guess and how you made and how you solved?
0
0

i dont know about  my solution, please update if u found anything wrong

0
0
I think after solving this recurrence relation  the relation will be n^1/2 - n^2
0
0

Related questions