I am studying using the MIT Courseware and the CLRS book Introduction to Algorithms.
I am currently trying to solve the recurrence (from page 107)
T(n) = 2T(n/2) + n4
If I make a recurrence tree, I get:
Level 0: n4
Level 1 2(n/2)4
Level 2 4(n/4)4
Level 3 8(n/8)4
The tree has lg(n) levels. Therefore I think that the recurrence should be
T(n) = Θ(n4 lg n)
But, If I use the master theorem, I get that
T(n) = Θ(n4)
Clearly both of these can't be right. Which one is correct? And where did I go wrong with my reasoning?