Analytic Pattern Matching: From DNA to Twitter by Jacquet Philippe & Szpankowski Wojciech
Author:Jacquet, Philippe & Szpankowski, Wojciech [Jacquet, Philippe]
Language: eng
Format: azw3
Publisher: Cambridge University Press
Published: 2015-06-29T16:00:00+00:00
7.2.Moments
In this section we focus on evaluating the moments (mostly the mean and variance) of some shape parameters of tries and digital trees. We do our analysis for binary alphabets but all results can be extended easily to an arbitrary alphabet.
7.2.1.Average path length in a trie by Rice’s method
Let us consider a trie built over n strings generated by a binary memoryless source with p the probability of generating a zero and q = 1 − p. We first deal with the average depth E[Dn] and the average path length E[Ln]. Clearly, E[Ln] = nE[Dn], thus we need to evaluate only one of these parameters. It turns out that the average path length is easier to derive.
Let ln = E[Ln] in a binary trie. It should be easy to see that ln satisfies the following recurrence for n ≥ 2:
(7.5)
with l0 = l1 = 0. Indeed, n strings at the root are split into left and right subtrees according to whether the first symbol of these strings is 0 or 1. The probability that k out of n strings starts with 0 is binomially distributed, i.e., it is equal to
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(11895)
Hello! Python by Anthony Briggs(9373)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9343)
The Mikado Method by Ola Ellnestam Daniel Brolund(9307)
Dependency Injection in .NET by Mark Seemann(8859)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7852)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7323)
Grails in Action by Glen Smith Peter Ledbrook(7295)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7116)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5957)
Kotlin in Action by Dmitry Jemerov(4638)
Practical Vim (for Kathryn Amaral) by Drew Neil(3728)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3596)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3416)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3242)
Learning Java by Patrick Niemeyer & Daniel Leuck(2871)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2838)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(2680)
Mastering Java 9 by Dr. Edward Lavieri(2573)