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
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
Get step-by-step solutions from verified subject matter experts
