🛠️ Steven Gong

Search

SearchSearch
  • Centroid Decomposition
  • Related

Sep 13, 2024, 1 min read

Centroid Decomposition

A centroid of a tree is defined as a node such that when the tree is rooted at it, no other nodes have a subtree of size greater than 2N​.

Resources

  • https://usaco.guide/plat/centroid?lang=cpp
  • https://codeforces.com/blog/entry/81661 by Colin Galen

Related

Graph View

Backlinks

  • Heavy-Light Decomposition

Created with Quartz, © 2025

  • Blog
  • LinkedIn
  • Twitter
  • GitHub