Skip to main content

5 docs tagged with "segment trees"

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.

Persistent Segment Tree

A Persistent Segment Tree keeps every previous version of itself accessible after an update, enabling efficient queries on historical states of an array.

Segment Trees

In this blog post, we'll explore Segment Trees, a powerful data structure for efficiently solving range query problems.