Review:
Selection Sort
overall review score: 3.5
⭐⭐⭐⭐
score is between 0 and 5
Selection sort is a simple sorting algorithm that repeatedly selects the smallest (or largest) element from an unsorted list and swaps it with the first unsorted element.
Key Features
- Simple algorithm
- In-place sorting
- Not stable
Pros
- Easy to implement
- Suitable for small lists or nearly sorted lists
Cons
- Inefficient for large lists
- Not suitable for complex data structures