Activity 01
Role Play: Human Call Stack
Students stand in a line, each representing one function call. The first student writes their argument on a sticky note and passes it to the next, who does the same, building the call stack. When the base case is reached, each student computes their return value from the one behind them and passes it back, simulating the recursive return.
Explain the fundamental principles of recursive problem-solving.
Facilitation TipDuring the Human Call Stack activity, position students physically to mirror the stack frame order, so the first caller is at the bottom and the deepest call is at the top.
What to look forPresent students with a simple recursive function (e.g., calculating Fibonacci numbers). Ask them to identify the base case and the recursive step, and trace the execution for an input of 3, writing down the values passed in each recursive call.