A probabilistic analysis of the height of tries and of the complexity of triesort (Q760797)

From MaRDI portal
scientific article
Language Label Description Also known as
English
A probabilistic analysis of the height of tries and of the complexity of triesort
scientific article

    Statements

    A probabilistic analysis of the height of tries and of the complexity of triesort (English)
    0 references
    0 references
    1984
    0 references
    We consider binary tries formed by using the binary fractional expansions of \(X_ 1,...,X_ n\), a sequence of independent random variables with common density f on [0,1]. For \(H_ n\), the height of the trie, we show that either \(E(H_ n)\sim 2 \log_ 2 n\) or \(E(H_ n)=\infty\) for all \(n\geq 2\) according to whether \(\int f^ 2(x)dx\) is finite or infinite. Thus, the average height is asymptotically twice the average depth (which is \(\sim \log_ 2 n\) when \(\int f^ 2(x)dx<\infty)\). The asymptotic distribution of \(H_ n\) is derived as well. If f is square integrable, then the average number of bit comparisons in triesort is n log\({}_ 2n+O(n)\), and the average number of nodes in the trie is O(n).
    0 references
    0 references
    binary tries
    0 references
    average height
    0 references
    triesort
    0 references
    0 references