題組內容

8.(15%) Sorting.

(b) (10%) Trace the heapsort as it sorts the following array into ascending order: [9 12 4 8 3 11 6 15].