NAME:

LOGIN:

PRECEPT:

COS 226 Exercises on Elementary Sorting


1. Which, if any, of the following programs from the textbook are stable: selection (Program 6.12), insertion (Program 6.13), or bubblesort (Program 6.14)? The program numbers are for the Algorithms in Java version; they correspond to Program 6.2, 6.3, and 6.4 in Algorithms in C. Specify which version you are using.