Algorithm
Best Case
Average Case
Worst Case
Stable?
Bubble Sort
O(N)
O(N^2)
Yes
Selection Sort
No
Insertion Sort
Merge Sort
O(N lg N)
Quick Sort
Last updated 5 years ago
Was this helpful?