Skip to content

vndee/algo-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm templates for competitive programing

Copyright 2018 Duy Huynh

Join the chat at https://gitter.im/cp-templates/Lobby Build Status

C++

  • bigint.cpp: Big number
  • BIT.cpp: Binary Index Tree
  • bitwise.cpp: Bitwise tricks
  • bst_splay.cpp: BST Splay tree demo
  • CAT.cpp: Catalan number
  • CD.cpp: Centroid decomposition
  • CONVEX.cpp: Convexhull
  • CPDAG.cpp: Dynamic programing DAG
  • datastruct.cpp: Some important data structure
  • dijk.cpp: Dijkstra algorithm
  • digitdp.cpp: Dynamic programing on digit
  • dinitz.cpp: Dinitz algorithm
  • DOPHANTINE.cpp: Solution for diophantine equation problems using extended gcd
  • dp.cpp: More basic dynamic programing problems
  • edmondkarp.cpp: Edmonds-Karp algorithm
  • EXPRESS.cpp: Calculate an express
  • geometry.cpp: Some of geometry
  • GRAHAM.cpp: Convexhull using graham scan
  • graph.cpp: Some important algorithm for graph
  • hopcroft_karp.cpp: Hopcroft - Karp algorithm
  • HUNGARY.cpp: Hungary algorithm
  • INFRPN.cpp: Cover RPN express from Infix express
  • input.cpp: Fast input template C++
  • IT.cpp: Segment Tree
  • IT2D.cpp: Segment Tree 2D
  • itline.cpp: Segement Tree for set of line
  • KAGAIN.cpp: Stack tricks
  • KHCA.cpp: Articulation point and bridge
  • KMP.cpp: Knuth - Pratt - Morris algorithm
  • MANACHER.h: Manacher algorithm for palindrome problems
  • MATCHING.h: Matching graph
  • MATCHINGMINCOST.h: Matching with min cost
  • match_flow.cpp: Matching use flow
  • MATEXP.cpp: Matrix exponential
  • matrix.cpp: Gaussian elimination implement
  • numtheory.cpp: Some tricks of number theory
  • parser.cpp: Recursive Descent Parser
  • PRIME.cpp: Some of prime number
  • QTREE.cpp: Heavy - Light decomposition
  • QTREE3.cpp: Another version of Heavy - Light decomposition
  • RMQ.cpp: Ranger Minimum Query using Sparse Table
  • splay.cpp: Splay Tree
  • strings.cpp: Some of string
  • TARJAN.cpp: Tarjan algorithm for strongly connected component
  • TEST.cpp: Test case generation
  • time.cpp: Some of time
  • TOPO.cpp: Topology sort
  • TRIE.h: Trie Tree
  • TWOSAT: 2-SAT problems
  • ZFUNC.h: Z - function