TY - JOUR

T1 - Nearest common ancestors

T2 - A survey and a new algorithm for a distributed environment

AU - Alstrup, Stephen

AU - Gavoille, Cyril

AU - Kaplan, Haim

AU - Rauhe, Theis

PY - 2004/5

Y1 - 2004/5

N2 - Several papers describe linear time algorithms to preprocess a tree, in order to answer subsequent nearest common ancestor queries in constant time. Here, we survey these algorithms and related results. Whereas previous algorithms produce a linear space data structure, in this paper we address the problem of distributing the data structure into short labels associated with the nodes. Localized data structures received much attention recently as they play an important role for distributed applications such as routing. We conclude our survey with a new simple algorithm that labels in O(n) time all the nodes of an n-node rooted tree such that from the labels of any two nodes alone one can compute in constant time the label of their nearest common ancestor. The labels assigned by our algorithm are of size O(log n) bits.

AB - Several papers describe linear time algorithms to preprocess a tree, in order to answer subsequent nearest common ancestor queries in constant time. Here, we survey these algorithms and related results. Whereas previous algorithms produce a linear space data structure, in this paper we address the problem of distributing the data structure into short labels associated with the nodes. Localized data structures received much attention recently as they play an important role for distributed applications such as routing. We conclude our survey with a new simple algorithm that labels in O(n) time all the nodes of an n-node rooted tree such that from the labels of any two nodes alone one can compute in constant time the label of their nearest common ancestor. The labels assigned by our algorithm are of size O(log n) bits.

UR - http://www.scopus.com/inward/record.url?scp=7444235539&partnerID=8YFLogxK

U2 - 10.1007/s00224-004-1155-5

DO - 10.1007/s00224-004-1155-5

M3 - ???researchoutput.researchoutputtypes.contributiontojournal.article???

AN - SCOPUS:7444235539

SN - 1432-4350

VL - 37

SP - 441

EP - 456

JO - Theory of Computing Systems

JF - Theory of Computing Systems

IS - 3

ER -