user
Describe how this algorithm works

Selection Sort


assistant
Selection Sort is an algorithm which performs sorting by repeatedly finding the smallest or largest element in the list and placing it at the beginning or the end of the list, respectively. This process is repeated until the list is sorted.