Sorting Algorithms

Stable sorting vs Unstablesorting

Choosing pivot in quick sort

S.NoSortingWorstAverageBest
1Selection SortO(n^2)
2Insertion SortO(n^2)
3Quick SortO(n^2)
4Bubble SortO(n^2)
5Merge SortO(n log n)
6Heap SortO(n log n)
7Shell Sort
8Bucket Sort
9Tree Sort
10TimSort
11Radix Sort
12Counting Sort
13CubeSort