多系列事件匹配
Multiple serial episode matching
摘要:
在前一篇文章中,我们推广了Knuth-Morris-Pratt(KMP)模式匹配算法,定义了一种非常规的RAM--MP-RAM(带有额外操作的RAM),并设计了一个O(n)的在线算法来解决MP-RAM上只有一个单集时的串行集匹配问题。我们在这里给出了两个扩展的情况下,我们同时搜索几个模式,并比较它们。更精确地,给定$q+1$字符串(长度为$n$和$q$模式$m\_1,...,m\_q$的文本$t$)和自然数$w$,{ \em多系列情节匹配问题}在于找到包含模式$m\_1,...,m\_q$作为连续性的文本$t$的大小$w$窗口的数量,即对于每个$m\_i$,如果$m\_i=p\_1,..., p\_k$,则字母$p\_1,..., p\_k$出现在窗口中,与$m\_i$中的顺序相同,但不必连续(它们可以与其他字母交错)。}本文的主要贡献是提出了一种实时在线求解该问题的算法$O(nq)$。
英文摘要:
In a previous paper we generalized the Knuth-Morris-Pratt (KMP) pattern matching algorithm and defined a non-conventional kind of RAM, the MP--RAMs (RAMS equipped with extra operations), and designed an O(n) on-line algorithm for solving the serial episode matching problem on MP--RAMs when there is only one single episode. We here give two extensions of this algorithm to the case when we search for several patterns simultaneously and compare them. More preciseley, given $q+1$ strings (a text $t$ of length $n$ and $q$ patterns $m\_1,...,m\_q$) and a natural number $w$, the {\em multiple serial episode matching problem} consists in finding the number of size $w$ windows of text $t$ which contain patterns $m\_1,...,m\_q$ as subsequences, i.e. for each $m\_i$, if $m\_i=p\_1,..., p\_k$, the letters $p\_1,..., p\_k$ occur in the window, in the same order as in $m\_i$, but not necessarily consecutively (they may be interleaved with other letters).} The main contribution is an algorithm solving this problem on-line in time $O(nq)$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。