Algorithms for Competitive Programming (CP-Algorithms)
Provenance & compiled volume Details
Original source cp-algorithms.com/
Corpus totals 163 works · 816 pages · 275,618 words
Compiled PDF volume Algorithms for Competitive Programming (29.1 MB)
Content integrity (SHA-256)
- 01 Binary Exponentiation
- 02 Euclidean algorithm for computing the greatest common divisor
- 03 Extended Euclidean Algorithm
- 04 Linear Diophantine Equation
- 05 Fibonacci Numbers
- 06 Sieve of Eratosthenes
- 07 Linear Sieve
- 08 Primality tests
- 09 Integer factorization
- 10 Euler's totient function
- 11 Number of divisors / sum of divisors
- 12 Modular Multiplicative Inverse
- 13 Linear Congruence Equation
- 14 Chinese Remainder Theorem
- 15 Garner's algorithm
- 16 Factorial modulo $p$
- 17 Discrete Logarithm
- 18 Primitive Root
- 19 Discrete Root
- 20 Montgomery Multiplication
- 21 Balanced Ternary
- 22 Gray code
- 23 Bit manipulation
- 24 Submask Enumeration
- 25 Arbitrary-Precision Arithmetic
- 26 Fast Fourier transform
- 27 Operations on polynomials and series
- 28 Continued fractions
- 29 Binary Exponentiation by Factoring
- 30 Minimum stack / Minimum queue
- 31 Sparse Table
- 32 Disjoint Set Union
- 33 Fenwick Tree
- 34 Sqrt Decomposition
- 35 Segment Tree
- 36 Treap (Cartesian tree)
- 37 Sqrt Tree
- 38 Randomized Heap
- 39 Deleting from a data structure in $O(T(n)\log n)$
- 40 Introduction to Dynamic Programming
- 41 Knapsack Problem
- 42 Longest increasing subsequence
- 43 Divide and Conquer DP
- 44 Knuth's Optimization
- 45 Dynamic Programming on Broken Profile. Problem "Parquet"
- 46 Finding the largest zero submatrix
- 47 String Hashing
- 48 Rabin-Karp Algorithm for string matching
- 49 Prefix function. Knuth–Morris–Pratt algorithm
- 50 Z-function and its calculation