pThe Insertionsort algorithm
also views the array as having a sorted side and an unsorted side.
[0][1][2][3][4][5]
Now we'll look at another
sorting method called Insertionsort. The end result will be the same: The
array will be sorted from smallest to largest. But the sorting method is
different.
However, there are some
common features. As with the Selectionsort, the Insertionsort algorithm also
views the array as having a sorted side and an unsorted side, ...