algorithm-study icon indicating copy to clipboard operation
algorithm-study copied to clipboard

Algorithm Notes and Templates (written in python,golang and typescript)

Algorithm

Algorithms Notes and Templates

English | δΈ­ζ–‡

Build Status


πŸ“– Templates

  1. String

    • Subsequence Matching
    • Rabin-Karp Algorithm
    • String Minimum Representation
    • KMP Algorithm
    • Z-Algorithm
    • Manacher Algorithm
    • Suffix Array
    • Aho-Corasick Automaton
  2. Stack

    • MonoStack
  3. Queue

    • Queue
    • PriorityQueue
    • Deque
      • ArrayDeque
      • LinkedList
    • MonoQueue
  4. LinkedList

    • LinkedListNode
    • LinkedList
    • PersistentStack
  5. Tree

    • DFS Order
    • Trie
    • 01 Trie
    • Fenwick Tree
    • LCA
    • Rerooting Dp
    • Segment Tree
    • Persistent Segment Tree
    • Heavy-Light Decomposition
    • Treap
    • Rope
    • TreeSet
    • SortedList (py) SortedList (ts)
    • SplayArray
    • PersistentArray
  6. Graph

    • TopoSort
    • Dijkstra
    • BellmanFord
    • SPFA
    • Floyd
    • Bipartition Check
    • Hungarian Algorithm
    • Kuhn-Munkres Algorithm
    • EulerLoop
    • EulerPath
    • MaxFlow (Dinic)
    • MinCostMaxFlow
    • Tarjan
  7. Disjoint Set

    • Disjoint Set
    • Disjoint Set with Dist to Root
  8. Bit Manipulation

    • Bloom Filter
    • BitSet
    • Powerset
  9. Math

    • Convex Hull
    • Polygon Area
    • Straight Line Equation
    • Stirling Number
    • Cantor Expansion
    • Primes
    • Combs
    • Linear Basis
    • Convolution
    • Quick Pow
    • Matrix Quick Pow
    • BSGS/EXBSGS
  10. Miscellaneous

    • 2D PreSum Matrix
    • 2D Diff Matrix
    • Sparse Table
    • Bisect
    • Trisect
    • Palindrome Generator
    • NextPermutation
    • MoAlgo (Without Modification)
    • Consistent Hashing
    • Geohash
    • SlopeTrick
    • Itertools
      • product
      • permutations
      • combinations
      • combinations_with_replacement

❀️ Credits

contest.js