MCPcopy Create free account

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

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

↓ 4 callersMethodrot
Data Structures/Top Tree.cpp:162
↓ 4 callersFunctionsign
Geometry/Point Location.cpp:17
↓ 4 callersMethodsize
Data Structures/Square Root Decomposition With Reverse Update.cpp:28
↓ 4 callersFunctionsplit
split (l, ...) so that rb[l] = r
Data Structures/Segment Tree Merging.cpp:75
↓ 4 callersMethodsum
sum of numbers in [l ,r] less than or equal to k
Strings/Number of Palindromes in Range.cpp:106
↓ 4 callersFunctiontry_voronoi_edge
Geometry/Voronoi Diagram.cpp:262
↓ 4 callersMethodupd
update the ith value if the rth array by x and return the new root of the array
Data Structures/Persistent UnionFind.cpp:39
↓ 4 callersFunctionyo
par = parity of the number of kth bits which are on f = if we have offed any kth bit
Miscellaneous/XOR Equation Arbitrary Range.cpp:31
↓ 3 callersFunctionC
Data Structures/Segment Tree with Arithmetic Progression.cpp:96
↓ 3 callersMethodF
Geometry/Voronoi Diagram.cpp:31
↓ 3 callersMethodF
Geometry/Delaunay Triangulation.cpp:32
↓ 3 callersFunctionPOW
Number Theory/Stirling Number of the First Kind for Fixed n.cpp:9
↓ 3 callersFunctionadd
Math/Finite Field Arithmetic Binary.cpp:9
↓ 3 callersFunctionadd
Math/Hafnian of a Matrix.cpp:36
↓ 3 callersFunctionadd
Data Structures/MOs with DSU.cpp:136
↓ 3 callersMethodadd
(!u | v | !w) -> (u, 0, v, 1, w, 0)
Graph Theory/3 SAT.cpp:30
↓ 3 callersMethodadd_edge
Graph Theory/Min Cost Max Flow.cpp:40
↓ 3 callersMethodadd_edge
Graph Theory/Edge Coloring Bipartite Graph Faster.cpp:30
↓ 3 callersFunctionbuild
leaf node is a cut node
Data Structures/Permutation Tree.cpp:81
↓ 3 callersFunctioncalc
given an odd prime p returns (a, b) s.t. a^2 + b^2 = p p % 4 = 1, otherwise no solution exists
Number Theory/Fermats Theorem on Sum of Two Squares.cpp:42
↓ 3 callersFunctioncheck_kth_bit
Checks if kth bit of x is set (1) or not (0)
Basics/Bitwise Operations.cpp:5
↓ 3 callersFunctioncircle
Geometry/Voronoi Diagram.cpp:186
↓ 3 callersFunctioncombine
Math/BerleKamp Massey.cpp:58
↓ 3 callersFunctioncompute
Geometry/Voronoi Diagram.cpp:249
↓ 3 callersFunctioncross
Dynamic Programming Optimizations/DP on Convex Hulls.cpp:26
↓ 3 callersFunctioncross
Geometry/Geometry 3D.cpp:39
↓ 3 callersFunctioncut
returns a vector with the vertices of a polygon with everything to the left of the line going from a to b cut away.
Geometry/Geometry 2D.cpp:821
↓ 3 callersFunctiondfs
Graph Theory/Maximum Density Subgraph.cpp:81
↓ 3 callersFunctiondist
Geometry/Geometry 3D.cpp:38
↓ 3 callersFunctiondist2
Geometry/Closest Pair of Points.cpp:7
↓ 3 callersFunctiondistance_from_segment_to_point
segment ab to point c
Geometry/Geometry 3D.cpp:260
↓ 3 callersMethoddo_flip_path
Data Structures/Top Tree.cpp:39
↓ 3 callersMethoddo_path_increment
Data Structures/Top Tree.cpp:55
↓ 3 callersFunctiondot
Geometry/Half Plane Intersection.cpp:33
↓ 3 callersFunctiondot
Geometry/All Pair Segment Intersection.cpp:66
↓ 3 callersMethodexpose
Data Structures/Top Tree.cpp:354
↓ 3 callersFunctionextreme_vertex
id of the vertex having maximum dot product with z polygon must need to be convex top - upper right vertex for minimum dot product negate z and return
Geometry/Geometry 2D.cpp:719
↓ 3 callersFunctionf
Miscellaneous/Fraction Binary Search.cpp:10
↓ 3 callersFunctionfactmod
returns n! % mod without taking all the multiple factors of p into account that appear in the factorial mod = multiple of p O(mod) * log(n)
Number Theory/nCr Modulo Any Mod.cpp:36
↓ 3 callersFunctionfactoradic_order
Number Theory/Factoradic Number System.cpp:43
↓ 3 callersFunctionfarthest
Graph Theory/Tree Diameter.cpp:7
↓ 3 callersFunctionfft
Math/Cyclic Convolution.cpp:17
↓ 3 callersFunctionfft
Strings/String Matching With FFT.cpp:22
↓ 3 callersFunctionfft
Graph Theory/Number of Paths of Each Length in a Tree.cpp:20
↓ 3 callersMethodfind
Graph Theory/Boruvka's Algorithm.cpp:48
↓ 3 callersMethodfind
Graph Theory/Gomory Hu Tree.cpp:108
↓ 3 callersFunctionfloor_sum
\sum_{i = 0}^{n - 1}{(a + d * i) / m}, O(log m)
Number Theory/Linear Diophantine Equation Three Variables with Nonnegative Solutions.cpp:26
↓ 3 callersMethodget_min
Miscellaneous/MEX of all Subarrays.cpp:30
↓ 3 callersFunctiongo
kth node from u to v, 0th node is u
Graph Theory/LCA.cpp:35
↓ 3 callersFunctioninit
Number Theory/K Divisors.cpp:30
↓ 3 callersMethodinsert
Data Structures/Static to Dynamic Trick.cpp:11
↓ 3 callersMethodinv
Dynamic Programming Optimizations/x2 +1 trick.cpp:19
↓ 3 callersMethodinv
Math/Characteristic Polynomial Faster.cpp:19
↓ 3 callersMethodinv
Math/Subset Sum Problem.cpp:122
↓ 3 callersMethodinv
Math/Lagrange Interpolation Brute.cpp:26
↓ 3 callersMethodinv
Math/Vandermonde Matrix.cpp:25
↓ 3 callersMethodinv
Math/BerleKamp Massey.cpp:25
↓ 3 callersMethodinv
Math/Determinant of Sparse Matrix.cpp:26
↓ 3 callersMethodinv
Number Theory/Bell Number.cpp:142
↓ 3 callersMethodinv
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:60
↓ 3 callersMethodinv
Number Theory/Generalized Floor Sum of Arithmetic Progressions.cpp:31
↓ 3 callersMethodinv
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:260
↓ 3 callersMethodinv
Number Theory/Sum of Arithmetic Progression Powers Divided.cpp:30
↓ 3 callersMethodinv
Graph Theory/Number of Arborescence.cpp:19
↓ 3 callersMethodis_bipartite
Data Structures/DSU with Rollbacks.cpp:21
↓ 3 callersMethodis_bipartite
Data Structures/Queue Undo Trick.cpp:21
↓ 3 callersFunctionis_equal
Miscellaneous/Negative Base (Binary).cpp:47
↓ 3 callersFunctionisanc
Graph Theory/Path Union.cpp:29
↓ 3 callersFunctionmake_edge
Geometry/Voronoi Diagram.cpp:41
↓ 3 callersFunctionmake_edge
Geometry/Delaunay Triangulation.cpp:42
↓ 3 callersFunctionmark
Strings/Suffix Automaton Distinct Substring Queries in Range.cpp:102
↓ 3 callersMethodmax_flow
Graph Theory/L R Flow with Dinic.cpp:62
↓ 3 callersFunctionmerge
merge adjacent substr a and b to a (ty[a] should be edited manually)
Data Structures/Segment Tree Merging.cpp:88
↓ 3 callersMethodmod_xk
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:206
↓ 3 callersFunctionmul
multiply by x^e - 1
Math/Polynomial Factorization.cpp:33
↓ 3 callersFunctionmul_mod
Number Theory/Miller Rabin.cpp:9
↓ 3 callersMethodmul_xk
modulo by x^k
Math/Polynomial.cpp:207
↓ 3 callersFunctionmultiplicity
Number Theory/nCr Modulo Any Mod.cpp:51
↓ 3 callersFunctionmultiply
eq = 0: 4 FFTs in total eq = 1: 3 FFTs in total
Math/Linear Recurrence Fastest.cpp:53
↓ 3 callersFunctionmultiply
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:37
↓ 3 callersFunctionmultiply
Strings/String Matching With FFT.cpp:41
↓ 3 callersFunctionmultiply_mint
Math/Lagrange Interpolation with Polynomial Extraction.cpp:155
↓ 3 callersMethodnorm2
Dynamic Programming Optimizations/DP on Convex Hulls.cpp:21
↓ 3 callersFunctionntt
Math/q Binomial.cpp:21
↓ 3 callersFunctionntt
Math/NTT Online.cpp:21
↓ 3 callersFunctionntt
Math/NTT.cpp:21
↓ 3 callersFunctionntt
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:21
↓ 3 callersFunctionntt
Number Theory/Sum of nCi over a Fixed Congruence Class.cpp:22
↓ 3 callersFunctionntt
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:21
↓ 3 callersFunctionntt
Number Theory/Stirling Number of the First Kind for Fixed k.cpp:21
↓ 3 callersFunctionntt_dit4
Number Theory/Sum of nCi for a Fixed Large n.cpp:126
↓ 3 callersFunctionorient_by_normal
returns orientation of p to q to r on the plane perpendicular to n assuming p, q, r are on the plane
Geometry/Geometry 3D.cpp:88
↓ 3 callersFunctionpath_union_light
Graph Theory/Path Intersection.cpp:48
↓ 3 callersMethodpop
Graph Theory/Directed MST.cpp:12
↓ 3 callersMethodpop
Graph Theory/Eppsteins Algorithm.cpp:33
↓ 3 callersFunctionpower
Math/Determinant of Permutant Matrix.cpp:6
↓ 3 callersFunctionpower
Math/Determinant of Cyclic Matrix.cpp:6
↓ 3 callersFunctionpower
Number Theory/Pisano Period.cpp:6
↓ 3 callersFunctionprocess_op
Miscellaneous/Expression Parsing.cpp:26
↓ 3 callersFunctionq_binom
number of r dimensional subspaces of n dimensional vector space [n]! / ([r]! * [n - r]!)
Math/q Binomial.cpp:105
← previousnext →301–400 of 3,514, ranked by callers