Activity 01
Pairs: Search Algorithm Timing
Pairs write pseudocode or simple Python for linear and binary search. They test both on lists of 20, 100, and 500 items, recording execution times. Pairs graph results and present one insight on efficiency differences.
Compare the efficiency of two different algorithms designed to solve the same problem.
Facilitation TipDuring the Search Algorithm Timing activity, circulate with a stopwatch and have pairs verbalize what they are timing and why this step matters for growth rate analysis.
What to look forPresent students with two simple code snippets that solve the same problem (e.g., finding the largest number in a list using a loop vs. a built-in function). Ask them to identify which snippet is likely more efficient and explain why, referencing the number of operations performed for a given input size.