School of Computing, Engineering and Mathematics (CEM)
School of Computing, Engineering and Mathematics (CEM)
Selection sort works with two subarrays: the sorted section, and the unsorted section.
It works by taking the minimum value in the unsorted array, putting it at the end of the sorted array, and continuing until there is no unsorted array.