Activity 01
Pair Programming: Bubble Sort Challenge
Pairs receive a list of 10-20 unsorted numbers and write a bubble sort function. They add print statements to count swaps, then test on larger lists. Pairs share swap counts and discuss improvements.
Compare different algorithms for searching or sorting elements within a list.
Facilitation TipDuring the Pair Programming challenge, circulate to listen for students describing the swap logic out loud, as verbalizing steps reveals gaps in understanding.
What to look forPresent students with a small, unsorted list of numbers and ask them to trace the steps of a linear search to find a specific number. Then, provide a sorted version of the same list and ask them to trace the steps of a binary search for the same number, noting the difference in steps.