- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hi! (Nerd)
I am looking at the following recurrence relation: $T(n)=T \left( \frac{n}{5} \right)+T\left( \frac{4n}{5}\right)+n$.
The recurrence tree has this form:
View attachment 3620
So, we see that $T(n)=\sum_{j=0}^{\log_5(4n)} n=n \left( \log_5(4n)+1\right)$
Now, I want to prove by induction that $T(n)=\Theta(n \log n)$.
For which number do I have to show that the base case holds? (Thinking)
I am looking at the following recurrence relation: $T(n)=T \left( \frac{n}{5} \right)+T\left( \frac{4n}{5}\right)+n$.
The recurrence tree has this form:
View attachment 3620
So, we see that $T(n)=\sum_{j=0}^{\log_5(4n)} n=n \left( \log_5(4n)+1\right)$
Now, I want to prove by induction that $T(n)=\Theta(n \log n)$.
For which number do I have to show that the base case holds? (Thinking)