I want to ask question about selection sort that when we do dry run of selection sort for an array,will there be n-1 passes every time for any length of array[b] for example if i do selection sort dry run of an array of length of 5 will there be 4 Passes.after these 4 passes array will be sorted?
arr[5]={11,7,5,3,1}
will above array be sorted after 4 passes?
hamsterman@ But when i do selection ascending sorting of
arr[6]={3,2,1,8,6,4}
in dry run after only 2 passes sorted array comes.is my method wrong or true?