首页 | 本学科首页   官方微博 | 高级检索  
     


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)sim21og2n or E(Hn)=infin for all ngE2 according to whether intf2(x)dx is finite or infinite. Thus, the average height is asymptotically twice the average depth (which is simlog2n when intf2(x)dx>infin). 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 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号