Question: 1. This is a question about binary min-heaps. 1. Given the binary min-heap A = [1, 60, 18, 83, 97, 68, 47, 99] do
1. This is a question about binary min-heaps. 1. Given the binary min-heap A = [1, 60, 18, 83, 97, 68, 47, 99] do the following: (a) Draw the tree representation. [3 marks] (b) Show the steps involved when inserting the element 8. [6 marks] (c) Show the steps involved when deleting the smallest element from A (note that we are deleting from the original heap A, not from the outcome of question 1b). [6 marks]
Step by Step Solution
3.51 Rating (158 Votes )
There are 3 Steps involved in it
Solutions Tree Representation is Question 1 b Step 1Start by keeping it ... View full answer
Get step-by-step solutions from verified subject matter experts
