- Click Next Insertion to insert a new element into the heap.
- If the inserted element violates the heap property, use Swap to swap it with its parent until the heap property is restored.
- After each swap (or if no swap is needed), click Next to confirm your action and proceed.
- Once you believe the heap is correctly built, click Done to check your answer and see feedback in the Observations section.
- If the heap is full or you want to start over, click Reset to begin a new simulation.