Last time: 2.5 | Next time: section 3.1 |
I want to thank Jim, Ted, and Chris, for providing early, timely examples for your classmates to work from. Very helpful, I'm sure. And I want to congratulate Nick Cooper, who took the problem I gave him in class last time and found a very nice solution (which also helped several).
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)?
Links: