MCPcopy Create free account

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

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

↓ 1 callersMethodget
Graph Theory/Chromatic Polynoimial.cpp:125
↓ 1 callersMethodget_all
Graph Theory/Three Edge Connectivity.cpp:23
↓ 1 callersMethodget_centers
Graph Theory/Tree Isomorphism.cpp:63
↓ 1 callersFunctionget_centroids
Graph Theory/Centroids.cpp:16
↓ 1 callersFunctionget_continued_fraction
(ans, x)
Number Theory/Pells Equation.py:6
↓ 1 callersMethodget_count
sum of occurrences of all patterns in this string
Strings/Aho Corasick Dynamic.cpp:112
↓ 1 callersFunctionget_divisors
Basics/Divisors.cpp:6
↓ 1 callersFunctionget_frac
returns the continued fraction of p / q [a[0]; a[1], ..., a[n]] = a[0] + 1 / (a[1] + 1 / (a[2] + ...) + 1 / (a[n - 1] + 1 / a[n])))) a[0] is integer n
Number Theory/Continued Fractions.cpp:9
↓ 1 callersFunctionget_h
h(p^k) = -p^k / (k * (k - 1))
Number Theory/Powerful Number Sieve.cpp:67
↓ 1 callersMethodget_mex
Miscellaneous/MEX of all Subarrays.cpp:38
↓ 1 callersMethodget_pos
returns index of node curr
Data Structures/Implicit Treap.cpp:301
↓ 1 callersMethodget_sum
Data Structures/Segment Tree with Arithmetic Progression.cpp:41
↓ 1 callersMethodget_val
get the ith value of the rth array
Data Structures/Persistent Queue.cpp:29
↓ 1 callersMethodget_val
get the ith value of the rth array
Data Structures/Persistent Array.cpp:29
↓ 1 callersFunctionget_var
Math/Gaussian Elimination Modulo 2.cpp:57
↓ 1 callersMethodgo
Data Structures/Persistent Trie.cpp:18
↓ 1 callersFunctiongomory_hu_tree
all nodes are from 1 to n returns edges of the gomory hu tree
Graph Theory/Gomory Hu Tree.cpp:85
↓ 1 callersFunctiongt
Geometry/Point Location.cpp:15
↓ 1 callersFunctionhalf_plane_intersection
consider half-plane of counter-clockwise side of each line if lines are not bounded add infinity rectangle returns a convex polygon, a point can occur
Geometry/Geometry 2D.cpp:1075
↓ 1 callersFunctionhalf_plane_intersection
consider half-plane of counter-clockwise side of each line if lines are not bounded add infinity rectangle returns a convex polygon, a point can occur
Geometry/Half Plane Intersection.cpp:85
↓ 1 callersFunctioninit
Miscellaneous/Bitset Custom.cpp:13
↓ 1 callersFunctioninit
Number Theory/Number of Solutions to x^2 = 1 mod m.cpp:45
↓ 1 callersFunctioninit
Number Theory/Miller Rabin.cpp:41
↓ 1 callersFunctioninit
Number Theory/Dirichlet Convolution.cpp:55
↓ 1 callersFunctioninit
Number Theory/Pollard Rho.cpp:45
↓ 1 callersFunctioninit
Number Theory/Pisano Period.cpp:55
↓ 1 callersFunctioninit
Number Theory/Prime Counting Function.cpp:31
↓ 1 callersMethodinit
Miscellaneous/Parallel Binary Search.cpp:22
↓ 1 callersMethodinit
Data Structures/Dynamic Connectivity Problem.cpp:37
↓ 1 callersMethodinit
Data Structures/Wavelet Tree.cpp:21
↓ 1 callersMethodinit
Data Structures/Interval Set.cpp:10
↓ 1 callersMethodinit
Graph Theory/Manhattan MST.cpp:19
↓ 1 callersMethodinit
Graph Theory/Dynamic MST Offline.cpp:9
↓ 1 callersMethodinit
Graph Theory/Chromatic Polynoimial.cpp:121
↓ 1 callersFunctioninitialize
Data Structures/Augmented DSU.cpp:14
↓ 1 callersFunctioninsert
Data Structures/Persistent Trie.cpp:36
↓ 1 callersFunctioninsert
Data Structures/Treap persistent.cpp:66
↓ 1 callersMethodinsert
Math/Basis Vector Reduced Row Echelon Form.cpp:12
↓ 1 callersMethodinsert
Math/Basis Vector ft Weighted Linearly Independent Vectors.cpp:13
↓ 1 callersMethodinsert
Strings/Aho Corasick All Pair Occurrence Relation.cpp:17
↓ 1 callersMethodinsert
Data Structures/Treap.cpp:55
↓ 1 callersMethodinsert
insert val in position a[pos] so all previous values from pos to last will be right shifted
Data Structures/Implicit Treap.cpp:207
↓ 1 callersFunctioninside
Geometry/Convex Hull Dynamic.cpp:21
↓ 1 callersFunctionintegrate
integrate in range [l, r]
Math/Integration (Simpsons).cpp:30
↓ 1 callersFunctionintegrate
Math/Integration (Romberg).cpp:17
↓ 1 callersMethodintegrate
Math/Polynomial.cpp:233
↓ 1 callersMethodintegrate
Math/Subset Sum Problem.cpp:205
↓ 1 callersMethodintegrate
Math/Faulhaber Formula Fastest.cpp:210
↓ 1 callersMethodintegrate
Number Theory/Bell Number.cpp:233
↓ 1 callersMethodinterpolate
Math/Polynomial.cpp:488
↓ 1 callersFunctionintersect
intersecting AP of two APs: (a1 + d1x) and (a2 + d2x)
Number Theory/Intersection of Arithmetic Progressions.cpp:31
↓ 1 callersFunctioninv
Miscellaneous/Schreier–Sims algorithm.cpp:11
↓ 1 callersFunctioninverse
permanent after inverting mat[i][j] = mat[i][j] ^ inv[j][i]
Math/Inverse of A Matrix modulo 2.cpp:8
↓ 1 callersFunctioninverse
Number Theory/Linear Congruence Equation.cpp:17
↓ 1 callersFunctioninverse
Number Theory/Extended Euclid.cpp:16
↓ 1 callersMethodinverse
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:238
↓ 1 callersFunctionis_chordal
Graph Theory/Chordal Graph.cpp:55
↓ 1 callersFunctionis_even
Checks if x is even or odd
Basics/Bitwise Operations.cpp:31
↓ 1 callersFunctionis_op
Miscellaneous/Expression Parsing.cpp:8
↓ 1 callersFunctionis_parallel
0 if not parallel, 1 if parallel, 2 if collinear
Geometry/Geometry 2D.cpp:166
↓ 1 callersFunctionis_point_in_polygon
-1 if strictly inside, 0 if on the polygon, 1 if strictly outside
Geometry/Voronoi Diagram.cpp:224
↓ 1 callersFunctionis_point_in_triangle
-1 if strictly inside, 0 if on the polygon, 1 if strictly outside
Geometry/Geometry 2D.cpp:559
↓ 1 callersFunctionis_point_on_polygon
Geometry/Voronoi Diagram.cpp:201
↓ 1 callersFunctionis_point_on_polygon
Geometry/Geometry 2D.cpp:688
↓ 1 callersFunctionis_point_on_seg
returns true if point p is on line segment ab
Geometry/Voronoi Diagram.cpp:193
↓ 1 callersMethodis_reachable
Graph Theory/DAG Reachability Dynamic.cpp:16
↓ 1 callersFunctionis_unary
Miscellaneous/Expression Parsing.cpp:12
↓ 1 callersFunctionis_var
Math/Gaussian Elimination Modulo 2.cpp:56
↓ 1 callersMethodis_zero
Beware!! p[i] = k won't change the value of p.a[i]
Math/Subset Sum Problem.cpp:145
↓ 1 callersMethodis_zero
Beware!! p[i] = k won't change the value of p.a[i]
Math/Faulhaber Formula Fastest.cpp:145
↓ 1 callersMethodis_zero
Beware!! p[i] = k won't change the value of p.a[i]
Number Theory/Bell Number.cpp:165
↓ 1 callersMethodis_zero
Beware!! p[i] = k won't change the value of p.a[i]
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:165
↓ 1 callersFunctionisanc
Graph Theory/Virtual Tree.cpp:36
↓ 1 callersMethodiso
Graph Theory/Tree Isomorphism.cpp:85
↓ 1 callersFunctionjohnson
Graph Theory/Johnson's Algorithm.cpp:58
↓ 1 callersFunctionkmp
returns matches in vector ans in 0-indexed
Strings/KMP.cpp:26
↓ 1 callersFunctionkth
Data Structures/HLD.cpp:82
↓ 1 callersFunctionkth
Graph Theory/Path Intersection.cpp:26
↓ 1 callersFunctionkth
Graph Theory/Path Union.cpp:25
↓ 1 callersMethodkth
kth smallest subset xor, 1st is 0
Math/Basis Vector.cpp:44
↓ 1 callersMethodkth
kth smallest element in [l, r] for array [1,2,1,3,5] 2nd smallest is 1 and 3rd smallest is 2
Data Structures/Wavelet Tree.cpp:49
↓ 1 callersMethodkth_digit
assuming this number is >= 0, find the kth digit in the base b
Miscellaneous/Trygub Num.cpp:43
↓ 1 callersFunctionlattice_cnt
number of integer solutions to ax + by <= c s.t. x, y >= 0 number of nonnegative integer lattice points under or on the line ax + by = c
Number Theory/Number of Nonnegative Integer Solutions to ax+by less than or equal to c.cpp:8
↓ 1 callersFunctionlca
Data Structures/HLD.cpp:75
↓ 1 callersFunctionlca
Graph Theory/Block Cut Tree.cpp:39
↓ 1 callersFunctionlca
Graph Theory/Path Union.cpp:18
↓ 1 callersMethodlift
Data Structures/Reachability Tree.cpp:52
↓ 1 callersFunctionline_line_intersection
Geometry/Voronoi Diagram.cpp:180
↓ 1 callersFunctionline_line_intersection
Geometry/Delaunay Triangulation.cpp:129
↓ 1 callersFunctionline_line_intersection
intersection point between ab and cd assuming unique intersection exists
Geometry/Half Plane Intersection Dynamic.cpp:52
↓ 1 callersFunctionlinear_sieve
Number Theory/Prime Number System.cpp:8
↓ 1 callersMethodlog
Math/Subset Sum Problem.cpp:218
↓ 1 callersMethodlog
Number Theory/Bell Number.cpp:246
↓ 1 callersFunctionlog2Up
Data Structures/SQRT Tree.cpp:18
↓ 1 callersFunctionlucas
returns nCr modulo mod where mod is a prime Complexity: log(n)
Number Theory/Lucas Theorem.cpp:55
↓ 1 callersFunctionmain
()
Number Theory/Pells Equation.py:34
↓ 1 callersMethodmake_unit
Math/Determinant of Sparse Matrix.cpp:65
↓ 1 callersMethodmake_unit
Math/Matrix Exponentiation.cpp:12
↓ 1 callersMethodmake_unit
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:56
↓ 1 callersMethodmake_unit
Math/Freivalds Algorithm.cpp:12
← previousnext →1,001–1,100 of 3,514, ranked by callers