arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0906.3220cs.FL
收藏

有限正则和上下文无关语言中的模式检测

Detecting patterns in finite regular and context-free languages

Narad Rampersad, Jeffrey Shallit

摘要:

我们考虑以下问题的变化:给定一个NFA M和一个模式p,在L(M)中是否存在一个x,使得p与x匹配?我们考虑M只接受有限语言的限制性问题。我们还考虑了模式p只需要匹配因子x的变化。我们证明了这两个问题都是NP完全的。我们也考虑上下文无关文法的相同问题;在这种情况下,问题变成PSPACE完备的。

英文摘要:

We consider variations on the following problem: given an NFA M and a pattern p, does there exist an x in L(M) such that p matches x? We consider the restricted problem where M only accepts a finite language. We also consider the variation where the pattern p is required only to match a factor of x. We show that both of these problems are NP-complete. We also consider the same problems for context-free grammars; in this case the problems become PSPACE-complete.

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

↑