Sorting Algorithms.
smallest (or largest) element and places it in its correct position. How Selection Sort Works Dividing the Array: The array is divided into two parts: the sorted part on the left and the unsorted part on the right. Finding the Minimum: The algorithm iterates through the unsorted part to find the