Professional Documents
Culture Documents
Group 3 Insertion Sort
Group 3 Insertion Sort
Group 3
Insertion Sort
Insertion Sort is a simple sorting • It starts with the second element
algorithm that builds the final of the array and compares it with
sorted array one item at a time. the elements before it.
It works by iteratively consuming
elements from an unsorted part • It repeatedly shifts larger
of the array and inserting them elements to the right until it finds
into their correct position in the the correct position for the
sorted part of the array. current element.