Next:
Up:
Previous:
Substitution
T(n) = O(
n
3
)
c
n
3
, Assume T(n/2)
c
(
n
/2)
3
T(n)
2c
(
n
/2)
3
+
n
3
= 1/4c
n
3
+
n
3
= (1 + c/4)
n
3
c
n
3
when
1 + c/4
c, 3/4c
1, c
4/3
T(n) =
(
n
3
)
c
n
3
, T(n/2)
c
(
n
/2)
3
T(n)
2c
(
n
/2)
3
+
n
3
= 1/4c
n
3
+
n
3
= (1 + c/4)
n
3
c
n
3
when
1 + c/4
c, 3/4c
1, c
4/3
Thus, T(n) =
.
Next:
Up:
Previous: