Centroid Decomposition
Centroid Decomposition
Introduction to Centroid Decomposition
Centroid Decomposition is a technique used to decompose a tree into a set of subtrees by repeatedly removing centroid nodes.
Definition of a Centroid
A centroid in a tree is a node that, after removing it, splits the tree into subtrees such that no subtree has more than half of the total nodes of the original tree.
Formally, a node is a centroid if every subtree formed by removing has at most nodes, where is the total number of nodes in the tree.


