Next: Assignment #3 due
Up: Homework
Previous: Assignment #1 due
- A sorting algorithm is defined as stable if equal elements
are in the same relative order in the sorted sequence as in the original
sequence.
Which of insertion sort, quicksort, selection sort, and mergesort are
stable, and which are unstable. Give a simple fix to make the
unstable sorts stable.
- CLR 8.3-4
- CLR 8.4-1
- CLR 8-2
- CLR 8-4
- CLR 16.3-4
- CLR 16-1
- CLR 16-2
Russ Miller
Thu Apr 25 09:03:24 EDT 1996