- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
I want to prove by induction, that the solution of the recurrence relation $T(n)=2T \left ( \frac{n}{2} \right )+n^2, n>1 \text{ and } T(1)=1$ is $n(2n-1)$.
We have to suppose that $n=2^k, k \geq 0$, right?
Do I have to prove the solution by induction with respect to $n$ or to $k$ ? (Thinking)
I want to prove by induction, that the solution of the recurrence relation $T(n)=2T \left ( \frac{n}{2} \right )+n^2, n>1 \text{ and } T(1)=1$ is $n(2n-1)$.
We have to suppose that $n=2^k, k \geq 0$, right?
Do I have to prove the solution by induction with respect to $n$ or to $k$ ? (Thinking)