- #1
fvnn
- 2
- 0
Hi i Have this equation:
[M]T(n)=2T(n/2)+n^2[/M]
I understand for iterative substitution you need to find patterns so here's what i got:
[M]2^2T(n/2^2)+n2/2+n^2
2^3T(n/2^3)+n2/2^2+n2/2+n^2[/M]
My question is what to do after you have found the pattern?
[M]T(n)=2T(n/2)+n^2[/M]
I understand for iterative substitution you need to find patterns so here's what i got:
[M]2^2T(n/2^2)+n2/2+n^2
2^3T(n/2^3)+n2/2^2+n2/2+n^2[/M]
My question is what to do after you have found the pattern?