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

上下文无关语言的最优测试集

Optimal Test Sets for Context-Free Languages

Mikaël Mayer, Jad Hamza

摘要:

一个形式语言(字符串集)L的测试集是L的子集T,使得对于定义在L上的任意两个字符串同态f和g,如果f和g在T上的限制是相同的函数,则f和g在整个L上是相同的。以前,它表明,有上下文无关文法的最小测试集是立方的语法的大小,这给出了测试集大小的下限。现有的上限是更高的次数多项式,我们在这里给出的第一个算法来计算测试集的立方大小的所有上下文无关文法,解决之间的差距上限和下限。

英文摘要:

A test set for a formal language (set of strings) L is a subset T of L such that for any two string homomorphisms f and g defined on L, if the restrictions of f and g on T are identical functions, then f and g are identical on the entire L. Previously, it was shown that there are context-free grammars for which smallest test sets are cubic in the size of the grammar, which gives a lower bound on tests set size. Existing upper bounds were higher degree polynomials; we here give the first algorithm to compute test sets of cubic size for all context-free grammars, settling the gap between the upper and lower bound.

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

↑