Overview
Link-Cut Tree is a dynamic trees method for dynamic tree path queries. It works by using splay trees to expose and update root-to-node paths.
Link-Cut Tree addresses dynamic tree path queries by using splay trees to expose and update root-to-node paths.
Compact metadata for implementation and discovery.
Link-Cut Tree is a dynamic trees method for dynamic tree path queries. It works by using splay trees to expose and update root-to-node paths.
Quick facts
Runtime and memory behavior at a glance.
Best
O(V + E)
Average
O((V + E) log V)
Worst
O(V^2 + E)
Space
O(V + E)
Show using splay trees to expose and update root-to-node paths on a small dynamic tree path queries example.
Link-Cut Tree operates in O((V + E) log V) time and O(V + E) space within the Dynamic Trees family. Often compared with Persistent Segment Tree and Union-Find.
What each reference supports for this entry.
Original reference for link-cut trees, preferred paths, and dynamic tree path operations.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Link-cut trees and Euler tour trees are alternative dynamic-tree structures.
Link-cut trees use splay trees to represent preferred paths in dynamic forests.