Inserting and deleting in a heap
Exercises 4.3 and 4.5
Exercise 4.3
Starting from an empty min-heap, insert one after the other the following numbers: 45, 67, 23, 46, 89, 65, 12, 34, 98, 76.
Exercise 4.5
Starting from the following max-heap, eliminate one after the other the maximum element until it becomes an empty max-heap.