If you have questions about what any of the configurations should look like, check out my solution in homework 6, starting at the ----->'s.
Use the same sort of table as I used in the homework 6 solutions to show me your intermediate work. However, for simplicity it is ok to simply show me the heap as an ordered array at each step, with an asterisk next to any values that belong in the next run. For example, it is ok to show your first, second, and third heaps as {12, 42, 53, 65}, {17, 42, 53, 65}, and {42, 53, 65, 3*}.
a. quicksort d. bucket sort h. replacement selection sort merge
b. selection sort e. merge sort i. non-replacement selection sort merge
c. insertion sort f. heap sort
_______________________
|. 41 . 66 . 87 . -- .|
-----------------------
|--------------------------| | | |----------------------------
| --------- ------------- |
| | | |
______________________ _______________________ _______________________ _______________________
|. 8 . 18 . 26 . 35 .| |. 48 . 51 . 54 . -- .| |. 72 . 78 . 83 . -- .| |. 92 . 97 . -- . -- .|
---------------------- ----------------------- ----------------------- -----------------------
| | | | |
2 8 18 26 35
4 10 20 28 36 .... .... ....
6 12 22 30 37
14 24 31 38
16 32 39
The contents of the leaf nodes for the last three interior nodes have been omitted
because they do not affect the solution to this problem.