Apply the selection-sort algorithm (shown in Figure 7.11) to…
Apply the selection-sort algorithm (shown in Figure 7.11) to sort the array containing the int-type numbers in Step 1 below. In the text box below, write from Step 3 on, with the numbers in the order that results from two numbers being swapped after the previous step, if a swap was necessary. Write your answers like the example Step 2. (5 points) Step 1: {73, 82, 12, 10, 62, 66, 1} Step 2: {1, 82, 12, 10, 62, 66, 73} (73 and 1 were swapped)
Read Details