Back to Search Start Over

Smoothed heights of tries and patricia tries.

Authors :
Tong, Weitian
Goebel, Randy
Lin, Guohui
Source :
Theoretical Computer Science. Jan201 Part 3, Vol. 609, p620-626. 7p.
Publication Year :
2016

Abstract

Tries and patricia tries are two popular data structures for storing strings. Let H n denote the height of the trie (the patricia trie, respectively) on a set of n strings. Under the uniform distribution model on the strings, it is well known that H n / log ⁡ n → 2 for tries and H n / log ⁡ n → 1 for patricia tries, when n approaches infinity. Nevertheless, in the worst case, the height of a trie can be unbounded and the height of a patricia trie is in Θ ( n ) . To better understand the practical performance of both tries and patricia tries, we investigate these two classical data structures in a smoothed analysis model. Given a set S = { s 1 , s 2 , … , s n } of n binary strings, we perturb the set by adding an i.i.d. Bernoulli random noise to each bit of every string. We show that the resulting smoothed heights of the trie and the patricia trie are both in Θ ( log ⁡ n ) . [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
03043975
Volume :
609
Database :
Academic Search Index
Journal :
Theoretical Computer Science
Publication Type :
Academic Journal
Accession number :
111302859
Full Text :
https://doi.org/10.1016/j.tcs.2015.02.009