Activity 01
Simulation Game: Human Recursion Stack
Assign students roles as function calls. The first student passes a problem card to the next student (a recursive call), and so on until the base case student solves it and returns the answer back up the chain. Students experience how each call waits for the next to return before it can proceed.
Explain how a complex problem can be defined by a smaller version of itself.
Facilitation TipDuring the Human Recursion Stack, have students stand in a line and call out their return values as they unwind the stack, ensuring they say their value before stepping back.
What to look forPresent students with a simple recursive function (e.g., a flawed factorial function). Ask them to trace its execution for n=3 on paper, identifying where it deviates from the correct logic or where a stack overflow might occur. Collect these traces for review.