Lab 9
9.3.900

Lab 9🔗

Which sort is best? Let’s do some experiments.

Pick one of these:

  • Compare Merge Sort (with arrays) to Quick Sort

  • Compare Merge Sort (with arrays) to Heap Sort

  • Compare Merge Sort (with arrays) to Merge Sort (with linked lists)

  • Improve Merge Sort with custom sorting for short lists.

Whichever one you choose: implement both sorting algorithms. Try sorting on lists of integers of different sizes. Choose at least 10 different sizes, identifying sizes that make sense for this particular comparison. Do your results make sense? Graph them. Make sure to label your axes! Are there any interesting followup questions that occur to you?