IMPROVED BEHAVIOR OF TRIES BY ADAPTIVE BRANCHING

被引:46
作者
ANDERSSON, A [1 ]
NILSSON, S [1 ]
机构
[1] LUND UNIV,DEPT COMP SCI,BOX 118,S-22100 LUND,SWEDEN
关键词
ALGORITHMS; DATA STRUCTURES; TRIE; DIGITAL SEARCH TREE; LEVEL-COMPRESSED TRIE;
D O I
10.1016/0020-0190(93)90068-K
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We introduce and analyze a method to reduce the search cost in tries. Traditional trie structures use branching factors at the nodes that are either fixed or a function of the number of elements. Instead, we let the distribution of the elements guide the choice of branching factors. This is accomplished in a strikingly simple way: in a binary trie, the i highest complete levels are replaced by a single node of degree 2i; the compression is repeated in the subtries. This structure, the level-compressed trie, inherits the good properties of binary tries with respect to neighbour and range searches, while the external path length is significantly decreased. It also has the advantage of being easy to implement. Our analysis shows that the expected depth of a stored element is THETA(log*n) for uniformly distributed data.
引用
收藏
页码:295 / 300
页数:6
相关论文
共 17 条
[1]  
CATER JL, 1979, J COMPUT SYST SCI, V18, P143
[2]   LAWS OF THE ITERATED LOGARITHM FOR ORDER-STATISTICS OF UNIFORM SPACINGS [J].
DEVROYE, L .
ANNALS OF PROBABILITY, 1981, 9 (05) :860-867
[3]   A NOTE ON THE AVERAGE DEPTH OF TRIES [J].
DEVROYE, L .
COMPUTING, 1982, 28 (04) :367-371
[4]  
FLAJOLET P, 1983, ACTA INFORM, V20, P345, DOI 10.1007/BF00264279
[5]   DIGITAL SEARCH-TREES REVISITED [J].
FLAJOLET, P ;
SEDGWICK, R .
SIAM JOURNAL ON COMPUTING, 1986, 15 (03) :748-767
[6]   TRIE MEMORY [J].
FREDKIN, E .
COMMUNICATIONS OF THE ACM, 1960, 3 (09) :490-499
[7]  
GONNET GH, 1991, HDB ALGORITHMS DATA
[8]   A GUIDED TOUR OF CHERNOFF BOUNDS [J].
HAGERUP, T ;
RUB, C .
INFORMATION PROCESSING LETTERS, 1990, 33 (06) :305-308
[9]   ON THE BALANCE PROPERTY OF TRIES,PATRICIA - EXTERNAL PATH-LENGTH VIEWPOINT [J].
KIRSCHENHOFER, P ;
PRODINGER, H ;
SZPANKOWSKI, W .
THEORETICAL COMPUTER SCIENCE, 1989, 68 (01) :1-17
[10]  
Knuth D.E., 1997, ART COMPUTER PROGRAM, V3