Sorting algorithms
Table of Contents
TODO https://www.geeksforgeeks.org/sorting-algorithms/
Elementary sorting algorithms
While these algorithms are simple to understand and implement, they are not efficient for large datasets due to their O(n^2) time complexity. They are often used for educational purposes or when dealing with small datasets where efficiency is not a major concern.
Non-elementary sorting algorithms
More sophisticated algorithms like Merge Sort and Quick Sort are preferred for larger datasets due to their O(n log n) time complexity.
- Bucket Sort
- Counting Sort
- Heap Sort
- Merge Sort
- Quick Sort
- Radix Sort
- Shell Sort
- Quick sort vs Merge sort