Binary Lifting(emi-h.com)
10 points by emih | 2 comments
An illustrated tutorial explaining the binary lifting algorithm for finding the lowest common ancestor of two nodes in a tree, building from naive approaches and Shar's algorithm.
1 story tagged lowest-common-ancestor, newest first.
10 points by emih | 2 comments
An illustrated tutorial explaining the binary lifting algorithm for finding the lowest common ancestor of two nodes in a tree, building from naive approaches and Shar's algorithm.