I'm having trouble getting the classification of this recurrence relation using a recursion tree.
$$T(n) = 3T(n/2) + n^2$$
I have the tree written out correctly (I hope):
n^2
/ | \
/ | \
(n/2)^2 (n/2)^2 (n/2)^2
/ | \ / | \ / | \
/ | \ / | \ / | \
(n/4)^2 (n/4)^2 ... ... ... (n/4)^2
...
...
T(1) T(1) ... ... ... ... ... ... ... ... ... ... T(1) T(1)
And for each "level" I have the running times:
Level Time
0 n^2
1 3(n/2)^2
2 9(n/4)^2
log_2{n} ???
So I'm having trouble getting the time for the base case at level $log_2{n}$, and after that I'm unsure of what I'm supposed to do with all the different times to get the overall running time. Do I add them all up? Do I just take the running time of the $log_2{n}$ level?
Thank you for any help you can give.