arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0112018cs.CLcs.DS
收藏

快速上下文无关文法分析需要快速布尔矩阵乘法

Fast Context-Free Grammar Parsing Requires Fast Boolean Matrix Multiplication

Lillian Lee

摘要:

1975年,Valiant证明布尔矩阵乘法可以用于解析上下文无关文法(CFG),产生了已知的最快(尽管不实用)的CFG解析算法。我们证明了一个对偶结果:任何具有时间复杂度$O(g n^{3 - \epsilson})$的CFG解析器(其中$g$是语法的大小,$n$是输入串的长度)都可以被有效地转换成在时间上乘以$m \times m$布尔矩阵的算法$O(m^{3 - ε/3})$。鉴于实际的,基本上是次立方布尔矩阵乘法算法已经很难找到,因此,我们解释了为什么一直没有什么进展,在开发实用的,基本上是次立方一般的CFG解析器。在证明这一结果,我们还开发了一个形式化的概念解析。

英文摘要:

In 1975, Valiant showed that Boolean matrix multiplication can be used for parsing context-free grammars (CFGs), yielding the asympotically fastest (although not practical) CFG parsing algorithm known. We prove a dual result: any CFG parser with time complexity $O(g n^{3 - \epsilson})$, where $g$ is the size of the grammar and $n$ is the length of the input string, can be efficiently converted into an algorithm to multiply $m \times m$ Boolean matrices in time $O(m^{3 - ε/3})$. Given that practical, substantially sub-cubic Boolean matrix multiplication algorithms have been quite difficult to find, we thus explain why there has been little progress in developing practical, substantially sub-cubic general CFG parsers. In proving this result, we also develop a formalization of the notion of parsing.

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

↑