Please enable JavaScript to use CodeHS

Chapter 7


7.6 Sorting

Selection Sort

Insertion Sort

Selection Sort

Insertion Sort

Visualizing Algorithms

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Explore Insertion Sort


Term Definition
Selection Sort A sorting algorithm that swaps the minimum value left in an array with the current array index.
Insertion Sort A sorting algorithm that shifts the already sorted section of an array to place the current array value in the correct index.