Question 1 Report
A weather station sends wind-speed readings to a computer. Fig. 1 shows one selection-sort step on the readings, measured in km/h. The outlined values have been checked to find the smallest value in the unsorted section. The computer will sort the array from low to high.
(a) State the value that selection sort has found. [1]
(b) Give the array after this selection-sort step. [2]
(c) State the index of the next position that will be fixed, if the first index is 0. [1]
Selection sort leaves already fixed values untouched and finds the minimum in the remaining unsorted section.
Everything you need to excel in your exams