insertion sort
examines each data item in turn and moves it to its correct position
stages of insertion sort
A student has stored their scores in a list: 7 5 3 6 8 10 9 4
Show the stages of an insertion sort when applied to this data [5]
*5 *7 3 6 8 10 9 4
*3 5 7 6 8 10 9 4
3 5 *6 7 8 10 9 4
3 5 6 7 8 10 9 4
3 5 6 7 8 9 10 4
3 5 6 7 8 *9 10 4
3 *4 5 6 7 8 9 10
Show the stage of an insertion sort when used to sort the following list of names into ascending order
Mai Devi Sanjita Maalik Catherine Jane [5]
….
ends with the list in order