Question: 1. (40 points) Using Figure 6.4 (Textbook, Exercise 6.4-1) as a model, illustrate the operation of HEAPSORT on the array A-5, 12, 2, 25, 7,

1. (40 points) Using Figure 6.4 (Textbook, Exercise 6.4-1) as a model, illustrate the operation of HEAPSORT on the array A-5, 12, 2, 25, 7, 17, 20, 8, 14) and output the numbers in a non-decreasing order. (Write your result of each step.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
