Selection Sort

In this section, we consider an approach to sorting that minimizes the number of swaps required (relative to bubble sort), but substantially increases the amount of comparing required in order to sort a single element.