FINDING LEVEL-ANCESTORS IN TREES

被引:61
作者
BERKMAN, O
VISHKIN, U
机构
[1] UNIV MARYLAND,INST ADV COMP STUDIES,COLLEGE PK,MD 20742
[2] UNIV MARYLAND,DEPT ELECT ENGN,COLLEGE PK,MD 20742
[3] TEL AVIV UNIV,IL-69978 TEL AVIV,ISRAEL
基金
美国国家科学基金会;
关键词
D O I
10.1016/S0022-0000(05)80002-9
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The level-ancestor problem is considered. Suppose a rooted tree T is given for preprocessing. Answer quickly queries of the following form. Given a vertex v and an integer i > 0, find the i th vertex on the path from v to the root. Given any m, 1 less-than-or-equal-to m less-than-or-equal-to log* n, we achieve the following results: (1) O(log(m) n)1 time using an optimal number of processors for preprocessing and constant time using a single processor for processing a query if m is constant. (2) O(log* n) time using an optimal number of processors for preprocessing and O(log* n) time using a single processor for processing a query. These results assume that the Euler tour of the tree and the level (distance from the root) of each vertex are given. Without these assumptions, the only change in result (1) above is that preprocessing time increases to O(log n) An immediate corollary is a serial linear-time bound for preprocessing and a constant-time bound for processing a query. (C) 1994 Academic Press, Inc.
引用
收藏
页码:214 / 230
页数:17
相关论文
共 20 条
[1]  
ANDERSON RJ, 1988, LECT NOTES COMPUT SC, V319, P81
[2]  
BERKMAN O, IBM RC14128 COMP SCI
[3]  
BERKMAN O, 1989, 30TH P ANN S F COMP, P196
[4]  
BERKMAN O, 1991, UMIACSTR91103 U MAR
[5]  
BERKMAN O, 1990, UMIACSTR9040 U MAR I
[6]  
BERKMAN O, 1988, UMIACSTR8879 U MAR I
[7]  
BERKMAN O, IN PRESS SIAM J COMP
[8]   COMPUTING ON A FREE TREE VIA COMPLEXITY-PRESERVING MAPPINGS [J].
CHAZELLE, B .
ALGORITHMICA, 1987, 2 (03) :337-361
[9]  
Cole R., 1986, 27th Annual Symposium on Foundations of Computer Science (Cat. No.86CH2354-9), P478, DOI 10.1109/SFCS.1986.10
[10]   FASTER OPTIMAL PARALLEL PREFIX SUMS AND LIST RANKING [J].
COLE, R ;
VISHKIN, U .
INFORMATION AND COMPUTATION, 1989, 81 (03) :334-352