Skip to content

Latest commit

History

History
37 lines (33 loc) 路 4.32 KB

File metadata and controls

37 lines (33 loc) 路 4.32 KB

Topics


  • Data structure:

    • Binary indexed tree : < /> < />
    • Persistent segment tree : < />
    • Sliding window minimum : < /> 馃敆
    • Suffix array construction : < />
    • Trie implementation with 2D array : < />
  • Graph:

    • Hopcroft-Karp algorithm - maximum bipartite matching : < />
    • Strongly Connected Component (SCC) - Tarjan algorithm : < />
    • Topological sort : < />
    • Topological sort - using dfs : < />
  • Math:

    • Chinese remainder theorem (CRT) : < />
    • Euler totient or phi function : 馃敆
    • Fermat's last theorem : 馃敆
    • Fermat's little theorem : 馃敆
    • Josephus problem < />
    • Matrix expo : < /> 馃敆
    • Miller鈥揜abin primality test : < /> 馃敆 馃敆
    • Modular exponentiation : < />
    • Modular Multiplicative Inverse : < />
    • Segmented Sieve : < />
    • Sieve of Eratosthenes : < /> 馃敆
  • Sort:

  • String:

    • Knuth-Morris-Pratt (KMP) - Pattern search : < />
    • Rabin-Karp Algorithm (modified) - Pattern matching : < />
  • Others: