Checkpoint 7.9.1.
Which of the following sort algorithms are guaranteed to be even in the worst case?
- Shell Sort
- Incorrect! Shell sort is between
and - Quick Sort
- Incorrect! Quick sort can be
but if the pivot points are not well chosen and the list is just so, it can be - Merge Sort
- Correct! Merge Sort is the only guaranteed
even in the worst case. The cost is that merge sort uses more memory. - Insertion Sort
- Incorrect! Insertion sort is