A comprehensive collection of competitive programming and computer science algorithms and data structures implemented in C++.
Advanced containers for efficient data management.
- Fibonacci Heap β Fast mergeable priority queue.
- Lazy Binomial Heap β Efficient heap operations with lazy meld.
- Lazy Segment Tree β Range updates (add) and range queries (sum).
- Trie Tree β Prefix tree for fast string retrieval.
- Traversal:
BFS,DFS,Topological Sort. - Shortest Path:
Dijkstra. - Spanning Tree:
Kruskal (MST). - Connectivity:
Kosaraju (SCC),Union Find.
- Prime Numbers:
Sieve of Eratosthenes. - Fast Operations:
Fast Exponentiation,FFT (Fast Fourier Transform). - Number Theory:
GCD (Euclidean),Modular Division,Fibonacci (Logarithmic time).
- Pattern Matching:
KMP (Knuth-Morris-Pratt).