Skip to main content

One doc tagged with "heavy-light decomposition"

View all tags

Heavy-Light Decomposition

Heavy-Light Decomposition breaks a tree into chains so that path queries and updates can be answered in O(log^2 n) using a Segment Tree.