Activity 01
Pairs: Trace Table Relay
Pair students; one reads algorithm steps aloud while the other updates the trace table for variables. Switch roles after half the steps, then compare tables and resolve differences. Extend to error spotting in flawed pseudocode.
How can we prove an algorithm is bug free without actually running it on a computer?
Facilitation TipDuring Trace Table Relay, provide a timer and enforce turn-taking so quieter students contribute before moving to the next step.
What to look forProvide students with a short pseudocode snippet (e.g., finding the maximum value in a list) and a partially completed trace table. Ask them to complete the table for a given set of inputs and identify any discrepancies.