This animation visualizes selection sort by highlighting the unsorted portion of an array, using a yellow scan cursor to sweep through and track the current minimum in a red box. Once found, the minimum swaps into place at the front of the unsorted section. The animation emphasizes that comparisons always total n(n-1)/2 regardless of input, while swaps are bounded by n-1, making it useful for teaching algorithm analysis and comparing sorting efficiency.
16:9 · every frame verified for overlaps, spacing and edges before rendering
Selection sort scans the unsorted part for its minimum (red box) with a moving scan cursor (yellow) and swaps it to the front; always n(n-1)/2 comparisons but at most n-1 swaps.