• DocumentCode
    2176072
  • Title

    A linear time algorithm for the lowest common ancestors problem

  • Author

    Harel, Dov

  • fYear
    1980
  • fDate
    13-15 Oct. 1980
  • Firstpage
    308
  • Lastpage
    319
  • Abstract
    We investigate two lowest common ancestor (LCA) problems on trees. We give a linear time algorithm for the off-line problem, on a random access machine (RAM). The half-line problem is one in which LCA queries on a fixed tree are arriving on line. We extend our RAM algorithm to answer each individual query in 0(1) time, with 0(n) preprocessing time. Tarjan observed that this result helps to explicate the difference in power between RAM and pointer machines. We also show how to modify our algorithm to achieve a linear preprocessing time, optimal query time, algorithm on a reference machine.
  • Keywords
    Algorithm design and analysis; Binary trees; Computational modeling; Computer science; Indexing; Mathematics; Read-write memory; Tree graphs;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Foundations of Computer Science, 1980., 21st Annual Symposium on
  • Conference_Location
    Syracuse, NY, USA
  • ISSN
    0272-5428
  • Type

    conf

  • DOI
    10.1109/SFCS.1980.6
  • Filename
    4567832