Which sorting algorithm the sorted list is traversed from the backward...
Insertion Sort is one of the most efficient data sorting methods for small data values.
In insertion sort, the array will break into 2 parts. The first half is sorted one and the second half is unsorted one. One by one element we have to compare the list of sorted elements with the list of unsorted elements, and if they were found in the wrong order, swap them.
The name is given to it because We have to insert the unsorted list with the sorted one and do a required number of swapping to get the result.
Each element in the unsorted list is to be considered one by one and is inserted into the sorted list at its appropriate position, So, The sorted list is traversed from the backward direction to find the position where we can add that unsorted element.
So, it happens with the insertion sort only, Option 2 turns out to be the correct answer.
Why options 1, and 3 got eliminated-
In bubble sort, we take the max element to the end of the list, so the position of an unsorted element doesn't matter. And in selection sort, the array is broken into two parts, the sorted part is empty and the unsorted part is the whole array. So, their list cannot traverse in the backward direction.