In the array of size arrSize displayed below, the element at position sortPos is highlighted. The array represents an intermediate state in Selection Sort, with all elements to the right of the highlighted element holding the biggest values in the array.
Perform the next iteration of Selection Sort, to put the proper array element into the highlighted position. To swap two elements, click on the first and then click on the second.
Determine the record that should appear at index sortPos using Selection Sort.
Selection sort will place the largest record in the range [0 to sortPos] at position sortPos.