A probabilistic analysis of the height of tries and of the complexity of triesort |
| |
Authors: | Luc Devroye |
| |
Affiliation: | (1) School of Computer Science, McGill University, 805 Sherbrooke Street West, H3A 2K6 Montreal, Quebec, Canada |
| |
Abstract: | Summary We consider binary tries formed by using the binary fractional expansions of X1, ...,Xn, a sequence of independent random variables with common density f on [0,1]. For Hn, the height of the trie, we show that either E(Hn)21og2n or E(Hn)= for all n2 according to whether f2(x)dx is finite or infinite. Thus, the average height is asymptotically twice the average depth (which is log2n when f2(x)dx>). The asymptotic distribution of Hn is derived as well.If f is square integrable, then the average number of bit comparisons in triesort is nlog2n+0(n), and the average number of nodes in the trie is 0(n).Research of the author was supported in part by FCAC Grant EQ-1678 |
| |
Keywords: | |
本文献已被 SpringerLink 等数据库收录! |
|