I solved my homework problem, I used recursion tree.
But solution says that this recurrence relation can be solved by master’s theorem!
T(N) = 49T(N/25) + n^(3/2)log(n)
I solved n^(3/2) log^2(n)
But solution said n^(3/2) log(n)
I don’t know why this case can use master’s theorem and it is correct.
We can see that
a=49andb=25. Note thatlog_b(a) ~ 1.2and that3/2 = 1.5. Hence,log_b(a) < 3/2. Thus, we can see thatf(n) = n^{3/2}log(n) = Omega(n^{log_b(a) + epsilon})for some epsilon, so that Case 3 of the master theorem applies. Thus, the run time isNote: You also have to check that
for some constant
c. Of coursewhich can be checked by dividing both sides by
n^{3/2}and then subtractingc log(n)from both sides which givesThis is certainly true at least for
c > 49/25^{3/2}(no need to make this tight).