Graph Theory37 sections · 1633 units
Open in Course

The $O(\log n)$ Chain Property

(Why paths cross few chains)

Claim: Any path from the root to a node crosses at most O(logn)O(\log n) light edges. Proof: When you go down a light edge from vv to uu, you enter a subtree with size[u] <= size[v] / 2 because uu was not the heaviest child. Each light edge halves the subtree size.

Since subtree size starts at nn and ends at 11, you cross at most log2n\log_2 n light edges. Each light edge moves you to a new chain. So you visit at most O(logn)O(\log n) chains on any root-to-node path.

Space complexity is O(n)O(n) for the data structures used.