Next:
Up:
Previous:
Example - Right Way
T(n) = T(n-1) +
=
+ [
+ T(n-2)]
=
+
+ [
+ T(n-3)]
Terminates when n - i = 0, or i = n.
=
=
+ T(0)
=
+ T(0)
Next:
Up:
Previous: