Activity 01
Coding Challenge: Search Timings
Pairs write linear and binary search functions in Python or pseudocode. Test on sorted lists from 10 to 10,000 elements, record runtimes in a shared spreadsheet. Plot graphs to visualize Big O growth and discuss thresholds for large data.
Explain how Big O notation helps compare the efficiency of different algorithms.
Facilitation TipDuring Coding Challenge: Search Timings, have students run identical code on progressively larger datasets and graph the results to observe the steep rise of O(n) versus the gentle slope of O(log n).
What to look forPresent students with pseudocode for a simple loop and a recursive function. Ask them to write down the Big O notation for each and briefly justify their answer, focusing on how many operations are performed relative to the input size.