Abstract
The problem of computing the lowest common ancestors of all pairs of nodes in a rooted tree is central in a large number of practical applications. The purpose of this note is to propose a very simple cost-optimal parallel algorithm to solve the lowest common ancestor problem. More precisely, with an n-node rooted tree as input, our algorithm runs in O(log n) time using O(n2/log n) processors in the EREW-PRAM model.
Preview
Unable to display preview. Download preview PDF.
References
K. Abrahamson, N. Dadoun, D. G. Kirkpatrick, and T. Przytycka, A simple parallel tree contraction algorithm, Journal of Algorithms, 10 (1989) 287–302.
A. V. Aho, J. E. Hopcroft, and J. D. Ullman, On finding Lowest Common Ancestors in Trees, SIAM Journal on Computing, 5, (1976) 115–132.
R. Cole and U. Vishkin, Approximate parallel scheduling. Part I: The basic technique with applications to optimal parallel list ranking in logarithmic time, SIAM Journal on Computing, 17, (1988) 128–142.
D. Harel and R. E. Tarjan, Fast algorithms for finding nearest common ancestors, SIAM Journal on Computing, 13, (1984) 338–355.
J. JaJa and J. Simon, Parallel Algorithms in Graphs Theory: Planarity Testing, SIAM Journal on Computing, 11, (1982) 314–328.
D. Maier, An efficient method for storing ancestor information in trees, SIAM Journal on Computing, 8, (1979) 559–618.
C. D. Savage and J. JaJa, Fast, efficient parallel algorithms for some graph problems, SIAM Journal on Computing, 10, (1981) 682–691.
B. Schieber and U. Vishkin, On finding lowest common ancestors: simplification and parallellization, SIAM Journal on Computing, 17 (1988) 1253–1262.
R. E. Tarjan, and U. Vishkin, An efficient parallel biconnectivity algorithm, SIAM Journal on Computing, 14 (1985) 862–874.
Y. H. Tsin, Finding lowest common ancestors in parallel, IEEE Trans. on Computers, 35 (1986), 764–769.
Y. H. Tsin and F. Y. Chin, Efficient Parallel Algorithms for a class of Graph Theoretic Problems, SIAM Journal on Computing, 13, (1984) 580–599.
U. Vishkin, Synchronous parallel computation — a survey, TR. 71, Department of Computer Science, Courant Institute, NYU, 1983.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Lin, R., Olariu, S. (1991). A simple optimal parallel algorithm to solve the lowest common ancestor problem. In: Dehne, F., Fiala, F., Koczkodaj, W.W. (eds) Advances in Computing and Information — ICCI '91. ICCI 1991. Lecture Notes in Computer Science, vol 497. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-54029-6_194
Download citation
DOI: https://doi.org/10.1007/3-540-54029-6_194
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-54029-8
Online ISBN: 978-3-540-47359-6
eBook Packages: Springer Book Archive