Expand description
tree algorithms
ModulesΒ§
- centroid_
decomposition π - depth π
- distance_
frequencies π - euler_
tour π - generator π
- heavy_
light_ πdecomposition - level_
ancestor π - link_
cut_ πtree - rerooting π
- dynamic programming on all-rooted trees
- static_
top_ πtree - top_
tree π - tree_
center π - tree_
centroid π - tree_dp π
- tree_
hash π - tree_
order π - xor_
linked_ πtree
StructsΒ§
- Children
- Contour
Query Range - DfsPreorder
- Heavy
Light Decomposition - Heavy
Light Path Fold - Level
Ancestor - Link
CutTree - A link-cut forest with stable insertion-order node identifiers.
- Lowest
Common Ancestor - Mixed
Tree - NoTop
Tree Action - Path
Tree - Prufer
Sequence - Generate Tree with PrΓΌfer sequence
- ReRooting
- dynamic programming on all-rooted trees
- Star
Tree - Static
TopTree - Static
TopTree Dp - TopTree
- A self-adjusting top tree, also called a strong link-cut tree.
- Tree
Hasher - XorLinked
Rooted Tree - XorLinked
Rooted Tree Builder - XorLinked
Rooted Tree Scanner
EnumsΒ§
- EIndexed
- NoDepth
- NoDfs
Preorder - NoEIndexed
- NoEdge
Child - NoParent
- NoParent
Edge - NoXor
Bottom UpOrder - Record
Depth - Record
DfsPreorder - Record
Edge Child - Record
Parent - Record
Parent Edge - Record
XorBottom UpOrder - Tree
Center
TraitsΒ§
- Build
XorBottom UpOrder - Cluster
- Depth
Component - DfsPreorder
Component - Edge
Child Component - Link
CutTree Path Fold - Link
CutTree Path Update - Link
CutTree Spec - Link
CutTree Subtree Fold - Link
CutTree Subtree Update - Pending updates must be propagated through
top_down,attach_virtual,detach_virtual, andtransfer_path_parent. - Monoid
Cluster - Parent
Component - Parent
Edge Component - TopTree
Action act_pathapplies the heavy contribution andact_path_lightapplies the light contribution represented in the same path aggregate.- TopTree
Spec compressmust be associative andrakemust be associative and commutative.reversemust be an involution and reverse the operand order ofcompress.- XorBottom
UpOrder Buffer - XorBottom
UpOrder Component
Type AliasesΒ§
- Path
Link CutTree L::act_aggmust returnSomefor every action.