cs211 lab6


https://maths.nuigalway.ie/~gettrick/teach/cs211/2024/labs/cs211Lab6.html




Have a look at (and run) the PYTHON programs mem4.py, memoize1.py, memoize2.py (see CANVAS, or at https://maths.nuigalway.ie/~gettrick/teach/cs211/oldNotes/progs/ ) 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))
© Universityv of Galway