Question: The first pass in a Selection Sort finds the smallest element in the data set and exchanges it with the element in the first position,

The first pass in a Selection Sort finds the smallest element in the data set and exchanges it
with the element in the first position, the second pass finds the second smallest element and
exchanges it with the element in the second position, ... and so on, until the entire data set is
sorted.
If a Selection Sort is used to put the list below into alphabetical order, what would the list look
like after the fourth pass of the sort?
Big JFK DOA Ran Elf Spy Ali
Ali Big DOA Elf JFK Ran Spy
Big DOA Elf JFK Ran Spy Ali
Ali Big DOA Elf Ran Spy JFK

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!