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 adding a new kid to a line where shorter kids must stand in front. The new kid joins at the back and then moves forward until everyone is in the right order by height.
Heap as array: [10, 15, 20, 17, 25] Insert 13 at end: [10, 15, 20, 17, 25, 13] Indexes: 0 1 2 3 4 5 ā (new element at index 5)