What term describes the following? a sorting algorithm that repeatedly selects the smallest remaining element and moves it to its correct position.
- A. Linear search
- B. Selection sort ✓
- C. Heap sort
- D. Brute-force algorithm
Correct answer
B. Selection sort
Explanation
Selection sort refers to a sorting algorithm that repeatedly selects the smallest remaining element and moves it to its correct position.