Groups
Category
Level
Binary lifting precomputes 2^k ancestors for every node so we can jump upward in powers of two.
A Link-Cut Tree (LCT) maintains a dynamic forest and supports link, cut, and path queries in O(log n) amortized time.