Smoothed Analysis of Trie Height by Star-like PFAs

03/09/2020
by   Stefan Eckhardt, et al.
0

Tries are general purpose data structures for information retrieval. The most significant parameter of a trie is its height H which equals the length of the longest common prefix of any two string in the set A over which the trie is built. Analytical investigations of random tries suggest that E(H)∈ O(log(A)), although H is unbounded in the worst case. Moreover, sharp results on the distribution function of H are known for many different random string sources. But because of the inherent weakness of the modeling behind average-case analysis—analyses being dominated by random data—these results can utterly explain the fact that in many practical situations the trie height is logarithmic. We propose a new semi-random string model and perform a smoothed analysis in order to give a mathematically more rigorous explanation for the practical findings. The perturbation functions which we consider are based on probabilistic finite automata (PFA) and we show that the transition probabilities of the representing PFA completely characterize the asymptotic growth of the smoothed trie height. Our main result is of dichotomous nature—logarithmic or unbounded—and is certainly not surprising at first glance, but we also give quantitative upper and lower bounds, which are derived using multivariate generating function in order to express the computations of the perturbing PFA. A direct consequence is the logarithmic trie height for edit perturbations(i.e., random insertions, deletions and substitutions).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/09/2020

A Tale of Two Trees: New Analysis for AVL Tree and Binary Heap

In this paper, we provide new insights and analysis for the two elementa...
research
07/19/2021

Sensitivity of string compressors and repetitiveness measures

The sensitivity of a string compression algorithm C asks how much the ou...
research
12/12/2020

String Attractors for Automatic Sequences

We show that it is decidable, given an automatic sequence s and a consta...
research
08/15/2019

Homotopy height, grid-major height and graph-drawing height

It is well-known that both the pathwidth and the outer-planarity of a gr...
research
05/01/2022

Dynamic data structures for parameterized string problems

We revisit classic string problems considered in the area of parameteriz...
research
11/03/2018

Smoothed Analysis of the Art Gallery Problem

In the Art Gallery Problem we are given a polygon P⊂ [0,L]^2 on n vertic...
research
01/28/2021

Type-Based Analysis of Logarithmic Amortised Complexity

We introduce a novel amortised resource analysis couched in a type-and-e...

Please sign up or login with your details

Forgot password? Click here to reset