Activity 01
Role Play: Find the Number
Give each student in a row a card with a number , first unsorted, then sorted. One volunteer must find a target using linear scan (check left to right) in the first round, and binary search (go to middle, ask 'higher or lower?') in the second. The class counts steps for both. Works best with 15-20 students.
Differentiate between linear and binary search in terms of efficiency.
Facilitation TipDuring Role Play: Find the Number, assign roles clearly and have students practice the exact comparison language used in code to reinforce precision in algorithm steps.
What to look forPresent students with a sorted list of 16 numbers and a target value. Ask them to trace the steps of a binary search, writing down each midpoint and comparison. Then, ask them to do the same for a linear search and compare the number of steps.