Concept Flow - Insertion Sort Algorithm
Start with second element i=1
Compare current element with elements before it
Shift elements greater than current to the right
Insert current element at correct position
Increment i
i < array length?
No→Sorted array ready
↩Back to Compare
Insertion sort picks each element from the second one, shifts bigger elements to the right, and inserts it in the correct place, repeating until the array is sorted.