Bubble Sort
Repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted. Performs poorly in real world use.
Bubble Sort Visualization
Use the options below to configure the bubble sort. Please note that - as mentioned above - bubble sort performs poorly in real world use, and will take a very long time to sort any array with number of elements greater than approximately 50.
Bubble Sort
An implementation of the bubble sort algorithm. Using bubble sort, we repeatedly step through the list to sort, comparing adjacent elements and swapping them if they are in the wrong order.