There are examples posted of classic recursion problems (factorial and Towers of Hanoi). The factorial file is interesting because it shows different approaches to the problem, Recursions, loops, and a formula (for advances students it also contains a crude memoizing version!). I tried to use Towers of Hanoi to show that for some problems, it really is easier to think of them recursively.

cs-142/more-recursion-notes.txt · Last modified: 2015/01/07 09:15 by ryancha