Question: 9,2,20,3,6,4,21 The Selection Sort algorithm seen in class sorts in ascending order. Which of the following lists of numbers would accurately show the array after
9,2,20,3,6,4,21
The Selection Sort algorithm seen in class sorts in ascending order. Which of the following lists of numbers would accurately show the array after the third pass (pass = iteration of the outer loop) through the Selection Sort algorithm as seen in class?
a) 2, 9, 20, 3, 6, 4, 21
b) 2, 3, 4, 6, 20, 9, 21
c) 2, 3, 4, 9, 6, 20, 21
d) 2, 3, 4, 9, 20, 6, 21
e) 2, 3, 4, 6, 9, 20, 21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
