arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.18220cs.FLcs.CYcs.PL
收藏

检测和解释上下文无关文法的(不)等价性

Detecting and Explaining (In-)equivalence of Context-Free Grammars

Ruhr University Bochum(波鸿鲁尔大学);University of Oxford(牛津大学)

Marko Schmellenkamp, Thomas Zeume, Sven Argo, Sandra Kiefer, Cedric Siems, Fynn Stebel

AI总结:

本文提出了一种可扩展框架,用于决定、证明和解释上下文无关文法的等价性。通过实现该框架并在教育支持系统中收集的大型数据集上进行评估,展示了其在处理大量数据时的有效性。

摘要:

我们提出了一种可扩展的框架,用于决定、证明和解释上下文无关文法的等价性。我们展示了该框架的实现,并在教育支持系统中收集的大型数据集上进行了评估。尽管上下文无关语言的等价性问题在一般情况下是不可判定的,该框架仍能处理大量数据集的大部分情况。它结合了多个领域的技术,如抽象文法转换语言以识别等价文法以及足够相似的非等价文法,基于理论的比较算法用于一大类上下文无关语言,以及受图论启发的文法规范化方法,允许高效识别同构文法。

英文摘要:

We propose a scalable framework for deciding, proving, and explaining (in-)equivalence of context-free grammars. We present an implementation of the framework and evaluate it on large data sets collected within educational support systems. Even though the equivalence problem for context-free languages is undecidable in general, the framework is able to handle a large portion of these datasets. It introduces and combines techniques from several areas, such as an abstract grammar transformation language to identify equivalent grammars as well as sufficiently similar inequivalent grammars, theory-based comparison algorithms for a large class of context-free languages, and a graph-theory-inspired grammar canonization that allows to efficiently identify isomorphic grammars.

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

↑