计算机科学 > 形式语言与自动机理论
[提交于 2009年6月17日]
标题:Detecting patterns in finite regular and context-free languages
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Narad Rampersad[v1] 2009年6月17日 星期三 15:53:06 UTC