This repository contains Swift implementations of algorithms and data structures covered in MIT's Introduction to Algorithms course.
Please, open issue for bugs, missing parts and requests.
- Binary search
- Peak finding, Array2D
- Document distance
- Heap
- Sort algorithms: insertion, merge, quick, heap
- Binary Search Tree
- AVL Tree
- Linear sorting algorithms: counting, radix, bucket
- Hashing with chaining
- Table doubling
- Rolling hash, Karp-Robin
- Open adressing
- Karatsuba multiplication
- Newton's method
- Breadth-first search (BFS)
- Depth-first search (DFS), topological sorting
- Single source shortest paths problems
- Dijkstra
- Bellman-Ford
- Text justification
- Crazy8
- Edit distance
- Knapsack
- Longest sorted sub-sequence