Activity 01
Pair Tracing: Factorial Calls
Pairs draw recursion trees for factorial(5) on paper, labelling base cases and return values step by step. They then trace Fibonacci(6), noting stack depth. Pairs discuss and compare their diagrams with the class.
Explain the fundamental principles of recursion and its application in problem-solving.
Facilitation TipDuring Pair Tracing, ask each pair to write each function call on a separate sticky note so the growing stack becomes a physical tower on the desk.
What to look forProvide students with a simple recursive function (e.g., calculating sum of numbers up to n). Ask them to write down the base case and the recursive step, and then trace the execution for n=3, showing the output.