MCPcopy Create free account

hub / github.com/ShahjalalShohag/code-library / functions

Functions3,514 in github.com/ShahjalalShohag/code-library

↓ 2 callersMethodperform_reverse
Data Structures/Square Root Decomposition With Reverse Update.cpp:31
↓ 2 callersFunctionpeth_root
Number Theory/Discrete Root Faster.cpp:36
↓ 2 callersFunctionpivot
Math/Simplex Algorithm.cpp:117
↓ 2 callersFunctionpoint_poly_tangent
Geometry/Geometry 2D.cpp:897
↓ 2 callersMethodpow
better for small k k < 100000 || n > 100000
Math/Faulhaber Formula Fastest.cpp:266
↓ 2 callersMethodpow
Math/Lagrange Interpolation Brute.cpp:18
↓ 2 callersMethodpow
Math/Determinant of Sparse Matrix.cpp:112
↓ 2 callersMethodpow
Math/Lagrange Interpolation with Polynomial Extraction.cpp:115
↓ 2 callersMethodpow
Number Theory/Phi Field.cpp:65
↓ 2 callersFunctionpow_mod
Number Theory/Sum of nCi for a Fixed Large n.cpp:436
↓ 2 callersFunctionpow_sum
returns pair {b^n % mod, (1 + b + ... + b^{n-1}) % mod}
Number Theory/Sqrt Decomposition of Mod of Arithmetic Progression.cpp:18
↓ 2 callersFunctionpower
Math/Gaussian Elimination Modular.cpp:6
↓ 2 callersFunctionpower
Math/Inverse of A Matrix.cpp:5
↓ 2 callersFunctionpower
Strings/String Hashing With Updates and Reverse.cpp:6
↓ 2 callersFunctionpower
Strings/String Hashing.cpp:6
↓ 2 callersFunctionpower
Number Theory/nCr Modulo Any Mod.cpp:7
↓ 2 callersFunctionpower
Number Theory/Multiplicative Order.cpp:5
↓ 2 callersFunctionpower
Number Theory/Sum of C(a(i), k) for each k from 1 to n.cpp:102
↓ 2 callersFunctionpower
Number Theory/Powerful Number Sieve.cpp:38
↓ 2 callersFunctionprecompute
Number Theory/Stirling Number of the First Kind for Fixed n.cpp:13
↓ 2 callersMethodprepare
prepare the oracle for the current independent set
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:71
↓ 2 callersMethodprepare
prepare the oracle for the current independent set
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:63
↓ 2 callersMethodproj
orthogonal projection of point p onto plane
Geometry/Geometry 3D.cpp:115
↓ 2 callersMethodpush
Data Structures/DSU with Rollbacks.cpp:81
↓ 2 callersMethodpush
Data Structures/Queue Undo Trick.cpp:87
↓ 2 callersMethodpush
Graph Theory/Min Cost Max Flow with Negative Cycles.cpp:87
↓ 2 callersMethodquad
Geometry/Half Plane Intersection Dynamic.cpp:65
↓ 2 callersFunctionquery
Number Theory/Mobius Function.cpp:24
↓ 2 callersFunctionquery
Data Structures/Centroid Decomposition Persistent.cpp:112
↓ 2 callersFunctionquery
Data Structures/Binarizing a Tree.cpp:107
↓ 2 callersMethodquery
Data Structures/Segment Tree NonRecursive.cpp:35
↓ 2 callersMethodquery
k -th sorted element in cur segment tree
Data Structures/Segment Tree Merging.cpp:60
↓ 2 callersMethodquery
how many numbers <= x
Data Structures/Static to Dynamic Trick.cpp:20
↓ 2 callersMethodquery
Data Structures/HLD.cpp:52
↓ 2 callersMethodquery
max sum of the union of $path_cnt paths such that their union contains the node u so just take the longest 2 * path_cnt leaves
Graph Theory/Long Path Decomposition.cpp:73
↓ 2 callersMethodquery_segment
Dynamic Programming Optimizations/Li Chao Tree.cpp:45
↓ 2 callersFunctionquery_up
Data Structures/HLD.cpp:97
↓ 2 callersFunctionrat
calculates the area of the union of n polygons (not necessarily convex). the points within each polygon must be given in CCW order. complexity: O(N^2)
Geometry/Geometry 2D.cpp:1002
↓ 2 callersFunctionread
Math/Gaussian Elimination Modulo 2.cpp:48
↓ 2 callersMethodreal
Miscellaneous/BigInt.cpp:33
↓ 2 callersFunctionrebuild
Data Structures/Square Root Decomposition With Reverse Update.cpp:49
↓ 2 callersFunctionreduce
Math/q Binomial.cpp:8
↓ 2 callersFunctionreduce
Math/NTT Online.cpp:8
↓ 2 callersFunctionreduce
Math/NTT.cpp:8
↓ 2 callersFunctionreduce
Math/NTT 2D.cpp:9
↓ 2 callersFunctionreduce
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:8
↓ 2 callersFunctionreduce
Number Theory/Stirling Number of the First Kind for Fixed n.cpp:8
↓ 2 callersFunctionreduce
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:8
↓ 2 callersFunctionreduce
Number Theory/Stirling Number of the First Kind for Fixed k.cpp:8
↓ 2 callersMethodreduce
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:126
↓ 2 callersFunctionrem_left
Data Structures/MOs Algorithm.cpp:25
↓ 2 callersFunctionrem_right
Data Structures/MOs Algorithm.cpp:30
↓ 2 callersFunctionreorder_polygon
rotate the polygon such that the (bottom, left)-most point is at the first position
Geometry/Geometry 2D.cpp:1104
↓ 2 callersMethodreplace
replace all the values from a[qL] to a[qR] by v
Data Structures/Implicit Treap.cpp:269
↓ 2 callersMethodreset
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:23
↓ 2 callersFunctionrestore
Miscellaneous/K-th Root of a Permutation.cpp:23
↓ 2 callersMethodreverse_it
Math/Polynomial.cpp:220
↓ 2 callersMethodreverse_it
Math/Faulhaber Formula Fastest.cpp:197
↓ 2 callersMethodrollback
Data Structures/MOs with DSU.cpp:86
↓ 2 callersMethodroot
Graph Theory/Directed MST.cpp:31
↓ 2 callersFunctionrotatecw90
Geometry/Voronoi Diagram.cpp:148
↓ 2 callersFunctionrotatecw90
Geometry/Delaunay Triangulation.cpp:128
↓ 2 callersFunctionseg_seg_intersection
intersection point between segment ab and segment cd assuming unique intersection exists
Geometry/Geometry 2D.cpp:201
↓ 2 callersMethodset
Miscellaneous/Bitset Custom.cpp:32
↓ 2 callersMethodset
Strings/Bit LCS.cpp:17
↓ 2 callersMethodshift
Data Structures/Segment Tree with Arithmetic Progression.cpp:40
↓ 2 callersMethodside
positive if on the same side as the normal, negative if on the opposite side, 0 if on the plane
Geometry/Geometry 3D.cpp:107
↓ 2 callersMethodsnapshot
Data Structures/MOs with DSU.cpp:82
↓ 2 callersFunctionsolve
Dynamic Programming Optimizations/Digit DP.cpp:28
↓ 2 callersFunctionsolve
number of paths of length i = ans[i]
Graph Theory/Number of Paths of Each Length in a Tree.cpp:84
↓ 2 callersMethodsolve
returns {maxflow, mincost}
Graph Theory/L R Flow with MCMF.cpp:81
↓ 2 callersMethodsplit
split cur into cur and b so that cur contains k smallest elements
Data Structures/Segment Tree Merging.cpp:49
↓ 2 callersFunctionsumsq
Sums of arithmetic progressions. mod_sum(n, a, d, m) = \sum_{i = 0}^{n - 1}{(a + d * i) % m}. floor_sum(n, a, d, m) = \sum_{i = 0}^{n - 1}{(a + d *
Number Theory/Sum of Arithmetic Progression Modular and Divided.cpp:11
↓ 2 callersFunctionsumsq
Number Theory/Floor Sum of Arithmetic Progressions.cpp:5
↓ 2 callersFunctionsuspect
Number Theory/Prime Factorization Fastest.cpp:29
↓ 2 callersMethodtour
Graph Theory/Edge Coloring Bipartite Graph Faster.cpp:56
↓ 2 callersFunctiontranspositions
minimum swaps to obtain this perm from unit perm
Miscellaneous/K-th Root of a Permutation.cpp:97
↓ 2 callersMethodundo
Data Structures/DSU with Rollbacks.cpp:54
↓ 2 callersFunctionunit
Geometry/Geometry 3D.cpp:78
↓ 2 callersFunctionupd
Data Structures/Centroid Decomposition Persistent.cpp:99
↓ 2 callersFunctionupd
Data Structures/Dynamic Connectivity Problem.cpp:86
↓ 2 callersFunctionupd
Data Structures/Reachability Tree.cpp:82
↓ 2 callersFunctionupd
Data Structures/Binarizing a Tree.cpp:96
↓ 2 callersMethodupd
Strings/Suffix Automaton Distinct Substring Queries in Range.cpp:29
↓ 2 callersMethodupd
Data Structures/Dynamic Diameter Online.cpp:46
↓ 2 callersMethodupd
update the ith value if the rth array by x and return the new array root
Data Structures/Persistent Queue.cpp:38
↓ 2 callersMethodupd
Data Structures/BIT 2D with Range Update and Range Query.cpp:26
↓ 2 callersMethodupd
update the ith value if the rth array by x and return the new root of the array
Data Structures/Persistent Array.cpp:38
↓ 2 callersMethodupd
Graph Theory/Path Union.cpp:76
↓ 2 callersFunctionupdate
Number Theory/Maximum Coprime Product.cpp:21
↓ 2 callersFunctionvalidSegment
Assume that the sphere is centered at the origin We will call a segment [AB] valid if A and B are not opposite each other on the sphere
Geometry/Geometry 3D.cpp:574
↓ 2 callersFunctionyo
returns the number of integers less or equal n which are not divisible by any of the first k primes recurrence --> yo(n, k) = yo(n, k-1) - yo(n / p_k
Number Theory/K Divisors.cpp:44
↓ 2 callersFunctionyo
returns the number of integers less or equal n which are not divisible by any of the first k primes recurrence --> yo(n, k) = yo(n, k-1) - yo(n / p_k
Number Theory/Prime Counting Function.cpp:45
↓ 2 callersFunctionyo
ans_k = sum_(C(a_i, k))
Number Theory/Sum of C(a(i), k) for each k from 1 to n.cpp:123
↓ 2 callersFunctionyo
Graph Theory/Dominator Tree.cpp:52
↓ 2 callersMethodzero
Miscellaneous/BigInt.cpp:454
↓ 1 callersFunctionBerlekampMassey
Math/Generating Function of a Linear Recurrence.cpp:41
↓ 1 callersFunctionBerlekampMassey
Math/Determinant of Sparse Matrix.cpp:41
↓ 1 callersFunctionBernoulli
x / (e^x - 1) = 1 / sum{x^i / (i + 1)!} = sum_{i=0}^{\infty} B[i]/i! * x^i so p[i] = B[i] / i!
Math/Faulhaber Formula Fastest.cpp:398
↓ 1 callersFunctionBronKerbosch
3 ^ (n / 3)
Graph Theory/Maximum Clique.cpp:10
← previousnext →601–700 of 3,514, ranked by callers