Skip to main content

One doc tagged with "selection-sort"

View all tags

Selection Sort

Selection Sort is a straightforward comparison-based sorting algorithm. It repeatedly selects the minimum element from the unsorted portion of the list and swaps it with the first unsorted element. This process gradually builds a sorted segment at the beginning of the list.