Activity 01
Simulation Game: The Human Sorting Race
Divide the class into groups representing different Big O complexities like O(n) and O(n squared). Give each group a stack of shuffled cards and specific instructions on how to sort them (e.g., checking every card against every other card versus a single pass). Students timing these methods with varying deck sizes will see the exponential time difference firsthand.
Analyze how to determine the optimal algorithm when computational resources are limited.
Facilitation TipDuring the Human Sorting Race, set a visible timer and have students mark their steps on paper so they can see how the number of operations explodes as list size grows.
What to look forPresent students with three code snippets: one with a single loop, one with nested loops, and one using a binary search approach. Ask them to write down the Big O notation for each and briefly justify their answer, identifying which is most efficient for large inputs.