Last time: 2.4/2.5 | Next time: section 2.6 |
I showed an example of a recursive algorithm for the calculation of the Fibonacci numbers (fib, in lisp), and showed that it's not a very wise algorithm because of the dramatic growth in the number of invocations of "fib". Exactly how many times will fib be called for the calculation of fib(n)?