Selection sort algorithm
Reason — We can see that after three iterations the first three elements of the array are in their correct positions. This happens in Selection sort. In Bubble sort, the heaviest element settles at its appropriate position in the bottom i.e., the array is sorted from the end to the start.
Details of each iteration are captured below:
Array after the first iteration:
011232331842452761276084795
Array after the second iteration:
011322331842452761276084795
Array after the third iteration:
011325318424527612760847923