Revise the HeapSort algorithm so that it sorts an array in descending order. Write down all the
Fantastic news! We've Found the answer you've been seeking!
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 a HeapSort in descending order of the following array: 9, 12, 4, 8, 3. 11, 6, 15
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: