Patricia tries again revisited
- 1 October 1990
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 37 (4) , 691-711
- https://doi.org/10.1145/96559.214080
Abstract
The Patricia trie is a simple modification of a regular trie. By eliminating unary branching nodes, the Patricia achieves better performance than regular tries. However, the question is: how much on the average is the Patricia better? This paper offers a thorough answer to this question by considering some statistics of the number of nodes examined in a successful search and an unsuccessful search in the Patricia tries. It is shown that for the Patricia containing n records the average of the successful search length S n asymptotically becomes 1/ h 1 · ln n + O (1), and the variance of S n is either var S n = c · ln n + 0 (1) for an asymmetric Patricia or var S n = 0 (1) for a symmetric Patricia, where h 1 is the entropy of the alphabet over which the Patricia is built and c is an explicit constant. Higher moments of S n are also assessed. The number of nodes examined in an unsuccessful search U n is studied only for binary symmetric Patricia tries. We prove that the m th moment of the unsuccessful search length EU m n satisfies lim n →∞ EU m n /log m 2 n = 1, and the variance of U n is var U n = 0.87907. These results suggest that Patricia tries are very well balanced trees in the sense that a random shape of Patriciatries resembles the shape of complete trees that are ultimately balanced trees.Keywords
This publication has 12 references indexed in Scilit:
- Some results on V-ary asymmetric triesJournal of Algorithms, 1988
- The evaluation of an alternative sum with applications to the analysis of some data structuresInformation Processing Letters, 1988
- Solution of a Linear Recurrence Equation Arising in the Analysis of Some AlgorithmsSIAM Journal on Algebraic Discrete Methods, 1987
- On a recurrence equation arising in the analysis of conflict resolution algorithmsCommunications in Statistics. Stochastic Models, 1987
- The complexity of generating an exponentially distributed variateJournal of Algorithms, 1986
- Digital Search Trees RevisitedSIAM Journal on Computing, 1986
- Some further results on digital search treesLecture Notes in Computer Science, 1986
- Asymptotical Growth of a Class of Random TreesThe Annals of Probability, 1985
- On the performance evaluation of extendible hashing and trie searchingActa Informatica, 1983
- Extendible hashing—a fast access method for dynamic filesACM Transactions on Database Systems, 1979