Question
A programmer needs sorting when minimizing swaps is useful, and the chosen structure has the property that it performs a linear scan to choose each next position. Which choice fits best?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Selection Sort
Explanation:
Selection Sort fits because it supports sorting when minimizing swaps is useful and it performs a linear scan to choose each next position.
Both clues point to this choice.
Leave a Reply