What is the maximum number of swaps that can be performed in the Selection Sort
What is the maximum number of swaps that can be performed in the Selection Sort
algorithm?
Show answerHide answer
Correct answer: (B) n - 1
Explanation
Selection sort does at most one swap per pass, and there are n − 1 passes, so at most n − 1 swaps.