teaching machines

CS 145 Lecture 10 – Methods and Memory

September 28, 2016 by . Filed under cs145, fall 2016, lectures.

Dear students,

Whoever you are, you need practice with methods. They are a concept that you probably didn’t encounter in your high school math classes, and you have no prior knowledge on which to build here. So, don’t be too hard on yourself if they don’t click immediately. Today, then, we devote our entire time to inspecting some methods and figure out their mechanics. Our tool for understanding them is memory diagrams. We will draw out how the state of the computer’s RAM changes as our methods get called. Let’s get going with these problems:

Greeter
Rectangler
RectanglerRedux
Ellipsis
Growth
Half
Unnamed
Middle
Negater
Wolves
Hide
Mousing
StringLength

Here’s your TODO list to complete before next class:

See you next class!

Sincerely,