Priority Queues Help Center

Learn more

Warning: The hard deadline has passed. You can attempt it, but you will not get credit for it. You are welcome to try it as a learning exercise.

To specify an array or sequence of values in an answer, separate the values in
the sequence by whitespace. For example, if the question asks for the first
ten powers of two (starting at 1), then the following answer is acceptable:

1 2 4 8 16 32 64 128 256 512

If you wish to discuss a particular question and answer in the forums, please
post the entire question and answer, including the seed (which can be used by
the course staff to uniquely identify the question) and the explanation (which
contains the correct answer).

Question 1

(seed = 397433)
Give the sequence of the keys in the array that results after
inserting the sequence of 3 keys

50 16 37

into the following maximum-oriented binary heap of size 10:

96 79 39 56 48 12 24 32 34 14

Your answer should be a sequence of 13 integers, separated by whitespace.

Question 2

(seed = 924800)
Give the sequence of keys in the array that results after performing 3
successive delete-the-max operations on the following maximum-oriented binary heap
of size 10:

78 76 75 72 53 64 73 43 66 14

Your answer should be a sequence of 7 integers, separated by whitespace.

Question 3

(seed = 235174)
Which of the following statements about priority queues are true? Check all that apply. Unless otherwise specified, assume that the binary heap implementation is the one from lecture (e.g., max-oriented and using 1-based indexing).
    
You cannot submit your work until you agree to the Honor Code. Thanks!