Dynamic LCA Queries on Trees

Richard Cole, Ramesh Hariharan · SIAM Journal on Computing · 2005

We show how to maintain a data structure on trees which allows for the following operations, all in worst-case constant time: insertion of leaves and internal nodes,deletion of leaves,deletion of internal nodes with only one child,determining the least common ancestor of any two nodes. We also generalize the Dietz--Sleator "cup-filling" scheduling methodology, which may be of independent interest.

Read the paper · More papers on PaperTik