基于星形PFAs的Trie树高平滑分析
Smoothed Analysis of Trie Height by Star-like PFAs
摘要:
Tries是用于信息检索的通用数据结构。trie的最重要的参数是它的高度$H$,它等于trie所建立的集合$A$中任意两个字符串的最长公共前缀的长度。随机尝试的分析研究表明,尽管$H$在最差情况下是无界的,但${\bf E}(H)\in O(\log(\|A\|))$。此外,$H$的分布函数的尖锐的结果是已知的许多不同的随机字符串源。但由于平均案例分析背后的建模固有的弱点-分析被随机数据所主导-这些结果完全可以解释在许多实际情况下特里高度是对数的事实。我们提出了一个新的半随机字符串模型,并进行了平滑分析,以给出一个数学上更严格的解释的实际结果。我们考虑的扰动函数是基于概率有限自动机(PFA),我们表明,代表PFA的转移概率完全表征的平滑trie高度的渐近增长。我们的主要结果是二分法的性质-对数或无界-当然是不奇怪的第一眼看,但我们也给出了定量的上限和下限,这是来自使用多元生成函数,以表达计算的扰动PFA。直接结果是编辑扰动的对数trie高度(即,随机插入、缺失和取代)。
英文摘要:
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 ${\bf E}(H)\in 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).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。