Activity 01
Think-Pair-Share: Complexity Prediction Challenge
Present 4 code snippets of increasing complexity on the board. Students individually estimate each snippet's Big O, then compare with a partner and reconcile differences. Pairs share their reasoning with the class, and the teacher annotates the code to confirm or correct.
Differentiate between best, average, and worst-case scenarios for algorithm performance.
Facilitation TipDuring the Think-Pair-Share, provide code snippets on physical cards so students can annotate them directly before discussing.
What to look forProvide students with 2-3 short code snippets (e.g., a simple loop, a nested loop, a recursive function). Ask them to write down the Big O time complexity for each snippet and briefly justify their answer.