Skip to content

Corei13/contest-programming-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Hierarchy

  • Graph.cpp

    • SCC (Tarjan)
    • TopSort
    • Minimum Spanning Tree
    • Dijkstra
    • Articulation Point, Bridge, Biconnected Components [partially tested]
    • Hofcroft-Karp Matching + Minimum Vertex Cover (Maximum Independent Set)
    • Stable Matching
    • Euler Tour
    • Push Relabel Flow
    • 2-Connected Component
    • Min Cost Max Flow
    • Global Min Cut
    • Edmond's Blossom Algorithm
    • Bellman-Ford
    • Heavy-Light Decomposition
    • Suurballe's Algorithm
    • Directed MST
    • Array Represtation Of Adj. List
  • Geometry.cpp

    • Common Geometry Routines
    • Fraction
    • Convex Hull
    • Triangulation
    • Closest Pair of Points
    • Rotating Calipers
  • Math.cpp

    • FFT
    • Simplex
    • Gauss-Jordan
    • Extended Euclid
    • Diophantine Equation
    • Reduced Row Echelon Form
  • String.cpp

    • Lexicographically Smallest Rotation (Booth's Algorithm)
    • Longest palindromic substring
    • Suffix Array
    • Automata
    • KMP
  • DS.cpp

    • LIS
    • Union Find
    • Trie [#TODO: Implement delete function]
    • Static Trie
    • Matrix [#TODO: add doc + functional plus/multiplication? + add move constructors]
    • BIT
    • Segment Tree
    • 2D Segment Tree
    • Sparse Segment Tree
    • LCA
    • Dates
    • BigInt
    • RMQ, RMedianQ
    • Splay Tree
    • Link/Cut Tree
    • Treap
    • AVL Tree
  • DP.cpp

    • Monotonous Queue [ min (j < i) { a[j] + b[j] * c[i] } ]
    • Dynamic Monotonous Queue
    • Knuth Optimization [ dp[i][j] = C[i][j] + min (i < k < j) { dp[i][k] + dp[k][j] }, C concave ]
    • Divide and Conquer [ dp[i][j] = min (k < j) { dp[i - 1][k] + C[k][j] } ]
    • dp[i] = min (j < i) { f( dp[j] ) + C[i][j] }, C concave, f = O(1)
  • Parser.cpp

    • Postfix, Infix, Prefix Converter
    • Context-Free Grammer
    • RegEx
  • Misc.cpp

    • lambda functions
    • STL cheatsheet
    • Kahan Summation Algorithm
    • Hacks, Tweaks, Tips and Formulas
    • Write down usefull templates