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
Back to top
CC Attribution-Share Alike 4.0 International = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0