My own templates and implementation of important algorithms and data structures for competitive programming purposes
My profile: Codeforces, Dunjudge.me
- Graph Traversing (DFS, BFS)
- Flood Fill
- Minimum Spanning Tree (Kruskal, Prim)
- Single-Source Shortest Paths (Dijkstra, Bellman-Ford)
- All-Pair Shortest Paths (Floyd Warshall)
- Strongly Connected Components (Tarjan, Kosaraju)
- Bipartite Matching
- Topological Sort
- Maximum FLow (Edmonds-Karp)
- Lowest Common Ancestor (Binary Lifting, RMQ)
- 0-1 Knapsack
- Coin Change
- Max Sum Subarray (Kadane's Alogorithm): 1D, 2D
- Longest Common Subsequence
- Longest Increasing Subsequence
- Matrix Chain Multiplication
- Travelling Salesman Problem
- Sparse Table
- Fenwick Tree
- Segment Tree
- SQRT Decomposition + Mo's Algoithm
- Union-Find Disjoint Sets
- Policy-based data structures C++ STL
- Pattern Searching (KMP, Z-Algorithm)
- Sieve of Eratosthenes
- Greatest Common Divisor (Euclidean Algorithm)
- Quick Exponentiation
- Fibonancci
- Binomial Coefficients
- Sweep Line
- Convex Hull