I have little background on recurrence trees, and I am working on the following exercise:
Exercise. Take $T(n) = 2T(n/2) + 3\log(n)$. Draw the recurrence trees for $n=2$ and $n=4$. What can we conclude complexity-wise?
My attempt. For $n=2$ we have the following recurrence tree:
Recursive Call Recurrence Tree Sum
T(2) 3log(2) 3log(2)
/ \
T(1) 3log(1) 3log(1) 6log(1) = 0
Since we arrived at $T(1)$, we should stop (IS THIS TRUE?) with our tree and the total sum is given by $3\log(2) + 0 = 3\log(2) = \Theta(1)$ which means that, complexity-wise, for $T(2)$, we're dealing with constant-time complexity.
For $n=4$, and using the same method, we could should that the sum would be $3\log(4) + 6\log(2) = \log(4^3*2^6) = \Theta(1)$.
Let's upgrade the exercise and draw the recurrence tree for any $n$. Here follows my attempt:
Recursive Call Recurrence Tree Sum
T(n) 3log(n) 3log(n)
/ \
T(n/2) 3log(n/2) 3log(n/2) 6log(n/2)
/ \
/ \
T(n/2^2) 3log(n/4) 3log(n/4) (...) 12log(n/4)
(...)
T(n/2^i) (...) 3*2^i log(n/2^i)
And we stop when $\frac n {2^i} = 1 \Leftrightarrow \lg n = i$, where $\lg n = \log_2 (n)$. With this being said, our total sum is $\sum_{i=0}^{\lg n} \left(3*2^i \log(\frac n {2^i} ) \right) $. And I don't know how to proceed from here.
Is my attempt wrong at any point?