Nearest common ancestors: A survey and a new algorithm for a distributed environment

被引:56
作者
Alstrup, S [1 ]
Gavoille, C
Kaplan, H
Rauhe, T
机构
[1] IT Univ Copenhagen, Dept Theory, DK-2400 Copenhagen, Denmark
[2] Univ Bordeaux, LaBRI, F-33405 Talence, France
[3] Tel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, Israel
关键词
D O I
10.1007/s00224-004-1155-5
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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.
引用
收藏
页码:441 / 456
页数:16
相关论文
共 73 条
[1]  
Abiteboul S, 2001, SIAM PROC S, P547
[2]  
Aho A. V., 1976, SIAM Journal on Computing, V5, P115, DOI 10.1137/0205011
[3]   INFERRING A TREE FROM LOWEST COMMON ANCESTORS WITH AN APPLICATION TO THE OPTIMIZATION OF RELATIONAL EXPRESSIONS [J].
AHO, AV ;
SAGIV, Y ;
SZYMANSKI, TG ;
ULLMAN, JD .
SIAM JOURNAL ON COMPUTING, 1981, 10 (03) :405-421
[4]   Optimal pointer algorithms for finding nearest common ancestors in dynamic trees [J].
Alstrup, S ;
Thorup, M .
JOURNAL OF ALGORITHMS, 2000, 35 (02) :169-188
[5]  
Alstrup S, 2002, SIAM PROC S, P947
[6]  
Alstrup S, 2003, SIAM PROC S, P689
[7]  
Alstrup S., 1999, Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, P499, DOI 10.1145/301250.301383
[8]  
Alstrup S, 2000, LECT NOTES COMPUT SC, V1853, P73
[9]  
Bender MA, 2001, SIAM PROC S, P845
[10]   The LCA problem revisited [J].
Bender, MA ;
Farach-Colton, M .
LATIN 2000: THEORETICAL INFORMATICS, 2000, 1776 :88-94