Mental Model
When adding a new number to a heap, we put it at the end and then move it up until the heap rules are right again.
Analogy: Imagine a new player joining a line based on height. They start at the back and move forward until they stand in the right spot by height order.
Heap as array:
[10, 15, 20, 17, 25]
Insert 13 at end:
[10, 15, 20, 17, 25, 13]
Positions:
Index: 0 1 2 3 4 5
Value:10 ->15 ->20 ->17 ->25 ->13
↑ new