searching for the smallest item within the list is an incremental processa comparison of elements and selects as the lesser of the two the two elements are swapped after the swap operationthe array looks like thisstill at index we compare with since is greater than the two elements are not swapped further comparison is made between the element at index which is with element at index which is no swap takes place when we get to the last element in the listwe will have the smallest element occupying index new set of comparisons will beginbut this timefrom index we repeat the whole process of comparing the element stored there with all the elements between index through to the last index