Sorting Algorithms.
are in the wrong order, they are swapped. Passes: After each pass, the largest element (in ascending order) is guaranteed to be in its correct position at the end of the array. Multiple Passes: The algorithm continues with multiple passes until the entire array is sorted. Time and Space Complexity