Activity 01
Card Simulation: Heap Insertions and Deletions
Provide students with numbered cards representing priorities. In pairs, they build a min-heap array on paper by inserting cards one by one and bubbling up. Then delete the root three times, heapifying down each time, and note the steps in a shared log.
Explain how a heap maintains its order property during insertion and deletion.
Facilitation TipDuring Card Simulation, have pairs trade their heap diagrams after each step so they check each other's bubbling or heapifying before moving on.
What to look forPresent students with a small array representing a min-heap. Ask them to identify the parent and child nodes for a given element and explain why the heap property holds or is violated. Then, ask them to predict the state of the heap after inserting a new value.