Representing trees of higher degree

被引:133
作者
Benoit, D
Demaine, ED
Munro, JI
Raman, R
Raman, V
Rao, SS
机构
[1] Invio Bioinformat Inc, Halifax, NS B4A 1E6, Canada
[2] MIT, Comp Sci & Artificial Intelligence Lab, Cambridge, MA 02139 USA
[3] Univ Waterloo, Sch Comp Sci, Waterloo, ON N2L 3G1, Canada
[4] Univ Leicester, Dept Comp Sci, Leicester LE1 7RH, Leics, England
[5] Inst Math Sci, Madras 600113, Tamil Nadu, India
关键词
data structures; analysis of algorithms; succinct data structures; data compression; information theory; cardinal trees; ordinal trees; tries; digital search trees; dictionary; hashing;
D O I
10.1007/s00453-004-1146-6
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper focuses on space efficient representations of rooted trees that permit basic navigation in constant time. While most of the previous work has focused on binary trees, we turn our attention to trees of higher degree. We consider both cardinal trees (or k-ary tries), where each node has k slots, labelled {1,..., k}, each of which may have a reference to a child, and ordinal trees, where the children of each node are simply ordered. Our representations use a number of bits close to the information theoretic lower bound and support operations in constant time. For ordinal trees we support the operations of finding the degree, parent, ith child, and subtree size. For cardinal trees the structure also supports finding the child labelled i of a given node apart from the ordinal tree operations. These representations also provide a mapping from the n nodes of the tree onto the integers (1,..., n), giving unique labels to the nodes of the tree. This labelling can be used to store satellite information with the nodes efficiently.
引用
收藏
页码:275 / 292
页数:18
相关论文
共 24 条
[1]  
Beame P., 1999, Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, P295, DOI 10.1145/301250.301323
[2]  
Benoit D, 1999, LECT NOTES COMPUT SC, V1663, P169
[3]   Membership in constant time and almost-minimum space [J].
Brodnik, A ;
Munro, JI .
SIAM JOURNAL ON COMPUTING, 1999, 28 (05) :1627-1640
[4]  
Chiang YT, 2001, SIAM PROC S, P506
[5]  
Clark DR, 1996, PROCEEDINGS OF THE SEVENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P383
[6]   BONSAI - A COMPACT REPRESENTATION OF TREES [J].
DARRAGH, JJ ;
CLEARY, JG ;
WITTEN, IH .
SOFTWARE-PRACTICE & EXPERIENCE, 1993, 23 (03) :277-291
[7]   IMPLICIT O(1) PROBE SEARCH [J].
FIAT, A ;
NAOR, M .
SIAM JOURNAL ON COMPUTING, 1993, 22 (01) :1-10
[8]   NONOBLIVIOUS HASHING [J].
FIAT, A ;
NAOR, M ;
SCHMIDT, JP ;
SIEGEL, A .
JOURNAL OF THE ACM, 1992, 39 (04) :764-782
[9]   STORING A SPARSE TABLE WITH O(1) WORST CASE ACCESS TIME [J].
FREDMAN, ML ;
KOMLOS, J ;
SZEMEREDI, E .
JOURNAL OF THE ACM, 1984, 31 (03) :538-544
[10]   SURPASSING THE INFORMATION-THEORETIC BOUND WITH FUSION TREES [J].
FREDMAN, ML ;
WILLARD, DE .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1993, 47 (03) :424-436