Activity 01
Pair Programming: Implement Selection Sort
Pairs write pseudocode first, then code selection sort in Python or JavaScript. Test on arrays of 5-10 elements, printing array states after each pass. Discuss swaps observed.
Compare the efficiency of selection sort and bubble sort for small datasets.
Facilitation TipDuring Pair Programming: Implement Selection Sort, circulate and ask pairs to explain their swap conditions aloud to catch logic errors early.
What to look forProvide students with a small, unsorted array (e.g., [5, 1, 4, 2]). Ask them to manually perform one pass of bubble sort and write down the array's state after the pass, and identify how many swaps occurred.