Binary Lifting
Binary lifting is an efficient algorithm for finding the lowest common ancestor (LCA) of two nodes in a tree, enabling O(log n) query time after O(n log n) preprocessing. The LCA is the deepest node that is an ancestor of both input nodes, and finding it allows solving shortest path problems in trees. While naive approaches require O(n) time per query, binary lifting optimizes this by preprocessing ancestor information at exponential distances.