Sorting Algorithms
Sorting Algorithms
owaishbhada@gmail.com
All About
Sorting
Algorithms
Swipe for more
M Owaish Bhada
owaishbhada@gmail.com
Bubble Sort
Space Complexity: O(1)
Stability: Stable
2 / 12
M Owaish Bhada
owaishbhada@gmail.com
Selection Sort
Space Complexity: O(1)
Stability: Unstable
3 / 12
M Owaish Bhada
owaishbhada@gmail.com
Insertion Sort
Space Complexity: O(1)
Stability: Stable
4 / 12
M Owaish Bhada
owaishbhada@gmail.com
04
Heap Sort
Space Complexity: O(1)
Stability: Unstable
5 / 12
M Owaish Bhada
owaishbhada@gmail.com
05
Bucket Sort
Space Complexity: O(n + k)
Stability: Stable
6 / 12
M Owaish Bhada
owaishbhada@gmail.com
06
Merge Sort
Space Complexity: O(n)
Stability: Stable
7 / 12
M Owaish Bhada
owaishbhada@gmail.com
Shell Sort
Space Complexity: O(1)
Stability: Unstable
8 / 12
M Owaish Bhada
owaishbhada@gmail.com
Quick Sort
Space Complexity: O(log n)
Stability: Unstable
9 / 12
M Owaish Bhada
owaishbhada@gmail.com
Comb Sort
Space Complexity: O(1)
Stability: Unstable
10 / 12
M Owaish Bhada
owaishbhada@gmail.com
10
Radix Sort
Space Complexity: O(n + k)
Stability: Stable
11 / 12
M Owaish Bhada
owaishbhada@gmail.com
Save for
Later!
12 / 12