Selection Sort
Selection Sort Selection sort divides the array into a sorted prefix and an unsorted suffix. At each step, it selects the smallest element from the unsorted portion and swaps it into the next position of the sorted prefix. Unlike bubble-based methods, it performs a fixed number of swaps, which can be useful when swaps are expensive. Problem Given a sequence $A$ of length $n$, reorder it such that $$ A[0]...