- Notifications
You must be signed in to change notification settings - Fork78
kaidul/Data_Structure_and_Algorithms_Library
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Coin Change and variants
- Knapsack Problem and variants
- Matrix Chain Multiplication
- Longest Increasing Subsequence( O(n^2) )
- Longest Increasing Subsequence( O(nlogn) )
- Travelling Salesman Problem
- Maximum Sum Subarray( O(n^4) and O(n^3) )
- Kadane Algorithm
- Maximum Sum Subarray using Kadane( O(n^3) )
- Optimal Binary Search Tree
- Subset Sum
- Catalan Number
- DAG Minimum Path
- Minimum Cost Path
- Digit Dp I
- Digit Dp II
- Digit Dp III
- Digit Dp IV
- Aho-Corasick Algorithm
- Knuth-Morris-Pratt’s Algorithm
- Rabin Karp Pattern Searching
- Z Algorithm
- Finite Automata Pattern Searching
- Trie (Prefix/Radix Tree)
- Longest Common Subsequence
- Edit Distance
- Longest Palindromic Subsequence
- Suffix Array
- Longest Common Prefix
- Minimum Expression
- Suffix Automata
- Floyd Warshall’s
- Loop Detection
- Topological Sort
- Bipartite Graph Check
- Strongly Connected Component (Kosaraju)
- Lowest Common Ancestor(sparse table)
- Articulation Point
- Bridge
- Breadth First Search
- Dijkstra
- Bellman Ford's
- Kruskal Minimum Spanning Tree
- Minimum Vertex Cover
- Maximum Flow (Edmonds Karp’s) I
- Maximum Flow (Edmonds Karp’s) II
- Maximum Bipartite Matching
- Stable Marriage Problem
- Heavy Light Decomposition
- Power Function(Big mod)
- Modular Mutiplicative Inverse(using Big mod)
- Prime(Sieve of Erathonesis)
- Segmented Sieve of Erathonesis
- Prime factorization(using Sieve)
- Prime factorization
- Primality Test(School method)
- Miller–Rabin Primality Test
- Euler Totient (Phi Function)
- Extended Euclid
- Linear Diophatine Equation
- Modular Mutiplicative Inverse(using Extended Euclid)
- Matrix Exponentiation
- Floyd Cycle Finding Algorithm
- Big Integer
- Josephus Recurrence
- Fast Fourier Transform
- Game Tree(Memorization)
- Nim
- Misère Nim
- Nimble Nim
- Poker Nim
- Prime Power Nim
- Spagrue Grundy Problem
- Grundy Variant: Zero Nim Game
- Grundy Variant: Coins on Chessboard
- Green HackenBush(Colon Principle)
- Singly Linked List
- Doubly Linked List
- Vector
- Stack
- Queue
- List
- Hashtable
- HashMap
- HashSet
- Union Find(Disjoint Set)
- Binary Search Tree
- Segment Tree
- Segment Tree (Lazy Propagation)
- 2D Segment Tree (Quad tree)
- Binary Indexed Tree
- 2D Binary Indexed Tree
- (AVL Tree) Self Balanced BST
- (Splay Tree) Self Balanced BST
- Ternary Search Tree
- Heap (Min)
- Computational Geometry Template
- Convex Hull (Jarvis’s Algorithm or Wrapping)
- Convex Hull (Graham Scan)
About
A collection of classical algorithms and data-structures implementation in C++ for coding interview and competitive programming
Topics
c-plus-plus algorithm algorithms graph-algorithms mathematics competitive-programming data-structures sorting-algorithms computational-geometry game-theory tree-structure combinatorics dynamic-programming coding-interviews hashing-algorithms greedy-algorithms binary-search number-theory string-algorithms backtracking-algorithm
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.