Adhoc Combinatorics
Adhoc Combinatorics
STL
• Vector, Stack, Queue, Set, Map,
Priority Queue, Ordered Set
• Next Permutation
• Bitset
Graph
• DFS
• BFS
• Dijkstra
• Floyd Warshall
• Minimum Spanning Tree
String
• Hashing
• Trie
• Knuth-Morris-Patt String Matching
Algorithm
Data Structure
• Basic Segment Tree (w/o lazy, lazy,
merge sort tree)
• Sparse Table
• Disjoint Set Union
Number Theory
• Basic Divisibility
• Sieve