Colors: Yellow = Current element, Purple = Largest so far, Red = Upper boundary, Blue = Comparing, Green = Sorted
Selection Sort is a sorting algorithm that repeatedly finds the largest element in the unsorted portion and places it at the end of the sorted portion.
How it works:
Time Complexity: O(n²) - compares all pairs of elements