Given the following sequence of integers: 12, 19, 10, 4, 23, 7, 45, 8, 15 Build a heap by inserting the above set, one integer at a time, in the given sequence. Show the heap after every insertion. How many comparisons in all did it take to build the heap? Perform successive delete operations on the heap constructed in the previous step, until the heap is empty. Show the heap after every deletion. How many comparisons in all did it take to perform these deletions?

Respuesta :

Answer:

Check the explanation

Explanation:

Kindly check the attached images below to see the step by step explanation to the question above.

Ver imagen temmydbrain
Ver imagen temmydbrain
Ver imagen temmydbrain