Activity 01
MergeSort Visualization: Step-by-Step Debugging
Students use an online MergeSort visualizer to trace the algorithm's execution on various input arrays. They then manually step through the code, identifying and correcting logical errors in a provided, partially implemented MergeSort function.
Which sorting algorithm provides the best performance for nearly sorted data?
Facilitation TipDuring the Card Simulation, circulate and ask each pair to explain the merge step out loud as they place cards in order, ensuring every student verbalizes the comparison logic.