kelvin cui - sorting visualizer

Sorting Algorithm:

Array Size: 

15

Bubble Sort is the simplest sorting algorithm that compares adjacent values and swaps them if they are in the wrong order. This algorithm will compare each value regardless of the original sorted order, resulting in high algorithmic complexity.

Worst Case Complexity:  

O(N^2)

Best Case Complexity:  

O(N^2)

Average Case Complexity:  

O(N^2)

Actual Comparisons made:  

Please sort first!