DSAverse
Sorting Algorithms
Loading Sorting Algorithms...
Sorting Visualization
n = 8 elementscomparing...
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Sorting Algorithms
Loading Sorting Algorithms...
Sorting Visualization
Watch how Selection Sort finds the minimum element in each pass and places it in the correct position.
Click Play to begin the Selection Sort visualization
O(n²)O(n²)O(n²)O(1)Question 1 of 3
How many swaps does Selection Sort perform in the worst case?