Algorithm catalogue
Every algorithm, grouped by category.
Sorting
Arrange elements in order — from simple swaps to divide-and-conquer.
- Bubble Sort — O(n²)
- Selection Sort — O(n²)
- Insertion Sort — O(n²)
- Merge Sort — O(n log n)
- Quick Sort — O(n log n)
- Cocktail Shaker Sort — O(n²)
- Comb Sort — O(n²)
- Shell Sort — O(n²)
- Heap Sort — O(n log n)
Searching
Find a value fast — from a simple scan to logarithmic strategies.
- Linear Search — O(n)
- Binary Search — O(log n)
- Jump Search — O(√n)
- Interpolation Search — O(log log n)
- Exponential Search — O(log n)
- Ternary Search — O(log₃ n)