In computer science, selection sort is a sorting algorithm, specifically an in-place comparison sort.
The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning.