用概率算术自动机精确分析模式匹配算法
Exact Analysis of Pattern Matching Algorithms with Probabilistic Arithmetic Automata
摘要:
我们提出了一个基于窗口的模式匹配算法的精确概率分析框架,如Boyer-Moore,Horspool,Backward DAWG Matching,Backward Oracle Matching等。特别是,我们展示了如何有效地获得这样的算法的运行时间成本的分布,为任何给定的模式,在随机文本模型,这可以是相当普遍的,从简单的统一模型,高阶马尔可夫模型或隐马尔可夫模型(HALGORY)。此外,我们提供了一种技术来计算\emph{differences}的运行时间成本的两个算法的确切分布。与以前的工作相比,我们的方法既不限于简单的文本模型,也不渐近报表,也不矩计算,如期望和方差。在方法上,我们使用有限自动机的扩展,我们称之为确定性算术自动机(DAA)和概率算术自动机(PAA)[13]。据我们所知,这是第一次,子串或后缀为基础的模式匹配算法进行了准确的分析。在实验中,我们比较Horspool的算法,向后DAWG匹配,和向后Oracle匹配的原型模式的长度短,并提供统计数据的最小DAA的大小为这些计算。
英文摘要:
We propose a framework for the exact probabilistic analysis of window-based pattern matching algorithms, such as Boyer-Moore, Horspool, Backward DAWG Matching, Backward Oracle Matching, and more. In particular, we show how to efficiently obtain the distribution of such an algorithm's running time cost for any given pattern in a random text model, which can be quite general, from simple uniform models to higher-order Markov models or hidden Markov models (HMMs). Furthermore, we provide a technique to compute the exact distribution of \emph{differences} in running time cost of two algorithms. In contrast to previous work, our approach is neither limited to simple text models, nor to asymptotic statements, nor to moment computations such as expectation and variance. Methodically, we use extensions of finite automata which we call deterministic arithmetic automata (DAAs) and probabilistic arithmetic automata (PAAs) [13]. To our knowledge, this is the first time that substring- or suffix-based pattern matching algorithms are analyzed exactly. Experimentally, we compare Horspool's algorithm, Backward DAWG Matching, and Backward Oracle Matching on prototypical patterns of short length and provide statistics on the size of minimal DAAs for these computations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。