UPDATED 12/3/99 8:50am: Contrary to what I said in the handout: "the run-learner function takes care of updating the N table", the original code did not, so I have made this correction.
Don't forget about the print-debug-level variable I mentioned in the handout. And the run-epochs function too...
Also, you should know that although the Q and N tables are passed to your function, they are actually globals, so you can examine them after running some epochs.