Sorting an array using a heap sort means that an element removed from a minheap will be

a) the next array element in descending order
b) the next array element in ascending order
c) re-inserted into its proper position in the minheap
d) an array element, but its position in the sorted array is not known
e) None of these is true

b) the next array element in ascending order

Computer Science & Information Technology

You might also like to view...

Which type of user account should be used for everyday computing?

A) Administrator B) Standard C) Default D) Guest

Computer Science & Information Technology

The precondition(s) for a function describe:

a. What is true after the function is executed b. What the function does c. How to call the function d. What must be true before the function executes

Computer Science & Information Technology