MCPcopy Create free account

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

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

Methodcan_exchange
can we insert elements[inserted_id] and remove elements[removed_id] without breaking independence?
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:102
Methodcan_insert
can we insert elements[id] without breaking independence?
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:98
Methodcan_insert
can we insert elements[id] without breaking independence?
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:95
Functioncentroid
centroid of a (possibly non-convex) polygon, assuming that the coordinates are listed in a clockwise or counterclockwise fashion. Note that the centr
Geometry/Geometry 2D.cpp:582
Methodcentroid
Geometry/Geometry 3D.cpp:532
Methodchirpz
O(nlogn)
Math/Polynomial.cpp:376
Methodchirpz
O(nlogn)
Math/Faulhaber Formula Fastest.cpp:327
Methodcircle
Geometry/Geometry 2D.cpp:272
Functioncircle_center
returns center of circle passing through three non-colinear and co-planer points a, b and c
Geometry/Geometry 3D.cpp:251
Functioncircle_circle_area
returns area of intersection between two circles
Geometry/Geometry 2D.cpp:411
Functioncircle_circle_relation
5 - outside and do not intersect 4 - intersect outside in one point 3 - intersect in 2 points 2 - intersect inside in one point 1 - inside and do not
Geometry/Geometry 2D.cpp:332
Functioncircle_line_relation
0 if outside, 1 if on circumference, 2 if inside circle
Geometry/Geometry 2D.cpp:309
Functioncircle_point_relation
0 if outside, 1 if on circumference, 2 if inside circle
Geometry/Geometry 2D.cpp:302
Methodcircumference
Geometry/Geometry 2D.cpp:299
Functioncircumscribed_sphere
returns the sphere passing through four points
Geometry/Geometry 3D.cpp:699
Functionclear
Graph Theory/Edge Coloring Bipartite Graph.cpp:12
Methodclear
Math/Basis Vector.cpp:10
Methodclear
Strings/Aho Corasick Dynamic.cpp:9
Methodclear
Data Structures/Static to Dynamic Trick.cpp:36
Functioncmp
Graph Theory/Dynamic MST Offline.cpp:43
Methodcmp_by_projection
compare two points by their orthogonal projection on this line a projection point comes before another if it comes first according to vector v
Geometry/Geometry 2D.cpp:119
Methodcmp_points
Data Structures/KD Tree.cpp:25
Methodcmp_proj
compare points by their projection on the line so you can sort points on the line using this
Geometry/Geometry 3D.cpp:180
Methodcmplx
Math/FWHT in Ternary Base.cpp:40
Methodcnt
Strings/Suffix Automaton.cpp:82
Methodcombi
Math/Faulhaber Formula Fastest.cpp:366
Methodcombi
Math/Lagrange Interpolation with Polynomial Extraction.cpp:139
Methodcombi
Number Theory/Combinatorics Basics.cpp:35
Methodcombi
Number Theory/Lucas Theorem.cpp:37
Methodcombine
Strings/Suffix Automaton Distinct Substring Queries in Range.cpp:23
Methodcombine
Data Structures/Segment Tree NonRecursive.cpp:19
Methodcombine
Data Structures/Permutation Tree.cpp:20
Methodcombine
Data Structures/HLD.cpp:23
Methodcombine
combine node l and r to form t by updating corresponding queries
Data Structures/Implicit Treap.cpp:123
Methodcombine
Data Structures/Segment Tree Lazy.cpp:23
Methodcomponent_size
Data Structures/Link Cut Tree.cpp:158
Methodcomponent_sum
Data Structures/Link Cut Tree.cpp:171
Methodcomposition
p(g(x)) O(nlogn * sqrt(nlogn))
Math/Polynomial.cpp:429
Methodcomposition_brute
p(g(x)) O(n^2 logn)
Math/Polynomial.cpp:414
Methodcone
radius and height
Geometry/Geometry 3D.cpp:815
Methodconnected
Data Structures/Dynamic Connectivity Problem.cpp:45
Methodconnected
Data Structures/MOs with DSU.cpp:63
Methodconnected
Data Structures/Link Cut Tree.cpp:140
Methodconvert
Math/FWHT in Ternary Base.cpp:100
Methodconvert_base
Miscellaneous/BigInt.cpp:303
Functionconvex_hull
Geometry/Geometry 2D.cpp:633
Functionconvex_line_intersection
given a convex polygon p, and a line ab and the top vertex of the polygon returns the intersection of the line with the polygon it returns the indices
Geometry/Geometry 2D.cpp:872
Methodconvolution
Miscellaneous/BigInt.cpp:399
Methodcoords
From three points P, Q, R on the plane
Geometry/Geometry 3D.cpp:137
Methodcostruct_lcp
Strings/Suffix Array Isomorphic.cpp:56
Methodcostruct_lcp
Strings/Suffix Array Isomorphic.cpp:149
Methodcostruct_lcp
Strings/Suffix Array.cpp:105
Methodcount
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:34
Methodcount
count of numbers in [l, r] equal to k
Strings/Number of Palindromes in Range.cpp:97
Methodcount
Graph Theory/Boruvka's Algorithm.cpp:51
Methodcount
Graph Theory/Gomory Hu Tree.cpp:117
Functioncount_basis
number of length n sequences with elements in [0, 2^k) such that its basis has size r same as the above function
Math/q Binomial.cpp:130
Functioncount_basis_general
ways to select k vectors of length n having basis size r
Math/q Binomial.cpp:123
Functioncount_except_xor_1_for_all_n
number of length i sequences with elements in [0, 2^k) such that no subset has xor 1 for all 1 <= i <= n O(n logn)
Math/q Binomial.cpp:161
Methodcount_lt
number of subsets having xor < x
Math/Basis Vector.cpp:70
Methodcplx
Miscellaneous/BigInt.cpp:13
Methodcreate_hull
building a 3D convex hull
Geometry/Geometry 3D.cpp:436
Functioncross
Geometry/Delaunay Triangulation.cpp:127
Methodcross
Geometry/Geometry 3D.cpp:389
Methodcross
Geometry/Delaunay Triangulation.cpp:121
Functioncross2
Geometry/Half Plane Intersection Dynamic.cpp:50
Methodcrt
Math/Reeds Sloane Algorithm.cpp:55
Methodcut
Data Structures/Top Tree.cpp:436
Methodcylinder
radius and height
Geometry/Geometry 3D.cpp:801
MethoddPT
Geometry/Delaunay Triangulation.cpp:114
FunctiondateToInt
Miscellaneous/Dates.cpp:2
Methoddblcmp
positive: p3 in the same direction
Geometry/Geometry 3D.cpp:399
Methoddeal
Geometry/Geometry 3D.cpp:405
Methoddebug
Number Theory/Sum of nCi for a Fixed Large n.cpp:75
Methoddecomp
Graph Theory/Long Path Decomposition.cpp:32
Functiondeg_to_rad
Geometry/Voronoi Diagram.cpp:153
Functiondeg_to_rad
Geometry/Geometry 2D.cpp:51
Functiondeg_to_rad
Geometry/Geometry 3D.cpp:48
Functiondeg_to_rad
Geometry/Half Plane Intersection.cpp:45
Functiondeg_to_rad
Geometry/Half Plane Intersection Dynamic.cpp:45
Functiondeg_to_rad
Geometry/All Pair Segment Intersection.cpp:105
Methoddel
Data Structures/Trie.cpp:62
Methoddepth
depth in the rep. tree
Data Structures/Link Cut Tree.cpp:144
Functiondfs
Data Structures/DSU on Tree.cpp:8
Methoddfs
recursively search all faces that should be removed from the convex hull
Geometry/Geometry 3D.cpp:421
Methoddfs
Miscellaneous/Maximum of Sum of All Pair Distances of K nodes in a Tree.cpp:103
Methoddfs
Data Structures/Treap.cpp:71
Methoddfs
Data Structures/Reachability Tree.cpp:14
Methoddfs
Graph Theory/Articulation Bridges.cpp:11
Methoddfs
Graph Theory/Randomized Matching Unweighted.cpp:25
Methoddfs
Graph Theory/Dinics Algorithm.cpp:45
Methoddfs
Graph Theory/Long Path Decomposition.cpp:13
Methoddfs
Graph Theory/Unique Min Cut.cpp:45
Methoddfs
Graph Theory/L R Flow with Dinic.cpp:45
Methoddfs
Graph Theory/LCA in O(1).cpp:33
Methoddfs
Graph Theory/HopCroft Karp Algorithm.cpp:41
Methoddfs
Graph Theory/Maximum Closure Problem.cpp:45
Methoddfs
Graph Theory/Gomory Hu Tree.cpp:45
Methoddfs
Graph Theory/Maximum Density Subgraph.cpp:45
Methoddfs1
Graph Theory/2 SAT.cpp:58
← previousnext →1,701–1,800 of 3,514, ranked by callers