最佳模式匹配算法
Optimal pattern matching algorithms
摘要:
我们研究了一类有限状态机,称为\defi{$w$-matching machines},产量模拟的行为模式匹配算法,同时寻找一个模式$w$。它们可以用来计算渐近速度,即文本访问次数与文本长度的预期比率的极限,同时分析iid文本以找到模式$w$。将匹配机器或算法的顺序定义为搜索过程中当前位置和访问位置之间的最大差异(标准算法一般是$|w|$阶),我们证明了给定模式$w$,阶$k$和iid模型,存在最优的$w$ -匹配机,即,在所有$k$阶机器中,在该模型下具有最大的渐近速度,其中状态集属于有限且可重复的集。它表明,有可能确定:1)最大的渐近速度在一个大类的算法,关于模式和iid模型,和2)一个$w$匹配机,从而算法,实现这一速度。
英文摘要:
We study a class of finite state machines, called \defi{$w$-matching machines}, which yield to simulate the behavior of pattern matching algorithms while searching for a pattern $w$. They can be used to compute the asymptotic speed, i.e. the limit of the expected ratio of the number of text accesses to the length of the text, of algorithms while parsing an iid text to find the pattern $w$. Defining the order of a matching machine or of an algorithm as the maximum difference between the current and accessed positions during a search (standard algorithms are generally of order $|w|$), we show that being given a pattern $w$, an order $k$ and an iid model, there exists an optimal $w$-matching machine, i.e. with the greatest asymptotic speed under the model among all the machines of order $k$, of which the set of states belongs to a finite and enumerable set. It shows that it is possible to determine: 1) the greatest asymptotic speed among a large class of algorithms, with regard to a pattern and an iid model, and 2) a $w$-matching machine, thus an algorithm, achieving this speed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。