Selection sort is an algorithm that sorts data in place by iteratively finding the minimum value from an unsorted portion of an array and moving it to the beginning. It has a quadratic time complexity of O(n^2) and is only suitable for sorting small lists. The algorithm works by making multiple passes over the array, finding the minimum value on each pass and swapping it into place.
Related topics: