arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1407.0950cs.DScs.CC
收藏

带通配符的模式匹配的平均情况复杂度

On the Average-case Complexity of Pattern Matching with Wildcards

Carl Barton

摘要:

使用通配符的模式匹配是找到长度为$n$的文本$t$的与长度为$m$的模式$x$匹配的所有因子的问题,其中可能存在通配符(匹配所有内容的字符)。在本文中,我们提出了一些快速的平均情况下的模式匹配的通配符被限制在模式或文本的算法,然而,结果很容易适应的情况下,通配符都是允许的。我们分析了这些算法的\textit{average-case}复杂度,并给出了第一个非平凡时间界。这些是第一个结果的平均情况下的复杂性模式匹配与通配符,作为一个产品,提供了第一个可证明的分离之间的复杂性精确模式匹配和模式匹配与通配符在字RAM模型。

英文摘要:

Pattern matching with wildcards is the problem of finding all factors of a text $t$ of length $n$ that match a pattern $x$ of length $m$, where wildcards (characters that match everything) may be present. In this paper we present a number of fast average-case algorithms for pattern matching where wildcards are restricted to either the pattern or the text, however, the results are easily adapted to the case where wildcards are allowed in both. We analyse the \textit{average-case} complexity of these algorithms and show the first non-trivial time bounds. These are the first results on the average-case complexity of pattern matching with wildcards which, as a by product, provide with first provable separation in complexity between exact pattern matching and pattern matching with wildcards in the word RAM model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑