Question: Revise the HeapSort algorithm so that it sorts an array in descending order. Write down all the algorithmic steps. Next, use your algorithm and perform

Revise the HeapSort algorithm so that it sorts an array in descending order. Write down all the algorithmic steps. Next, use your algorithm and perform a HeapSort in descending order of the following array: 9, 12, 4, 8, 3. 11, 6, 15

Step by Step Solution

3.39 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To modify the HeapSort algorithm to sort an array in descending order you need to make some changes to the standard HeapSort algorithm Here are the al... View full answer

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 Algorithms Questions!