Question: please explain with steps the true options. Start with an empty heap, insert 10,12,6,14,1,5 in order into a max-heap. Which numbers require swapping (percolating up)

please explain with steps the true options.

please explain with steps the true options. Start with an empty heap,

Start with an empty heap, insert 10,12,6,14,1,5 in order into a max-heap. Which numbers require swapping (percolating up) when we insert them? Select all that apply. 0 10 12 6 14 0 1 5 b) Start with an empty heap, insert 9,15,6,21,-5,1 in order into a min-heap. Which numbers ever been stored at the top (root)? Select all that apply. 9 O 15 6 O 21 -5 O 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!