Question: 9. (6 points) In the space provided, create a heap by inserting each of the items in the following list into the heap, one item

9. (6 points) In the space provided, create a heap by inserting each of the items in the following list into the heap, one item at a time, as if the numbers represented priorities for a queue of customers arriving in real time. Priorities: 55, 0, 0, 92, 1, -82, -8, 0, 2, 11, 13, 37 10. (2 points) A heap containing 1,048, 576 items must have, at most, how many edges from its root to its farthest leaf? Answer: 11. (2 points) What is the array index for the parent of an item located at index 12 in a heap? The heap's root uses index 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
