cs211 lab5


http://www.maths.nuigalway.ie/~gettrick/teach/cs211/labs/l5.html




Have a look at (and run) the PYTHON programs mem4.py, memoize1.py, memoize2.py in the "progs" directory. Consider the functions (a) f: N -> N, f(n)=2**n, and (b) g: N -> N, g(0)=0, g(1)=1, g(n+1) = g(n)*(g(n)+2g(n-1))
© NUI, Galway