Activity 01
Gallery Walk: Tracing the Call Tree
Post 6-8 stations around the room, each showing a Fibonacci or similar recursive function with a different input value. Students walk to each station and manually draw the recursive call tree, marking duplicate calls with a red marker. They then sketch a memoized version and count how many calls are saved at each station.
Explain how remembering past results can speed up a program.
Facilitation TipDuring the Gallery Walk, circulate with a timer to keep groups moving every 3–4 minutes so they focus on tracing rather than lingering on one tree.
What to look forPresent students with a simple recursive function (e.g., a variation of Fibonacci or factorial). Ask them to identify specific inputs that would cause redundant calculations. Then, have them explain in one sentence how memoization would prevent this redundancy for one of those inputs.