Dynamic LCA queries on trees

Richard Cole, Ramesh Hariharan

Research output: Contribution to journalArticle

Abstract

We show how to maintain a data structure on trees which allows for the following operations, all in worst-case constant time: 1. insertion of leaves and internal nodes, 2. deletion of leaves, 3. deletion of internal nodes with only one child, 4. 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.

Original languageEnglish (US)
Pages (from-to)894-923
Number of pages30
JournalSIAM Journal on Computing
Volume34
Issue number4
DOIs
Publication statusPublished - 2005

    Fingerprint

Keywords

  • "cup-filling" scheduling
  • Dynamic LCA
  • LCA

ASJC Scopus subject areas

  • Theoretical Computer Science
  • Computational Theory and Mathematics
  • Applied Mathematics

Cite this