Fast context-free grammar parsing requires fast boolean matrix multiplication
Journal of the ACM (JACM)(2002)
摘要
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(gn3-∈), 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 × m Boolean matrices in time O(m3-∈/3). Given that practical, substantially subcubic Boolean matrix multiplication algorithms have been quite difficult to find, we thus explain why there has been little progress in developing practical, substantially subcubic general CFG parsers. In proving this result, we also develop a formalization of the notion of parsing.
更多查看译文
关键词
time complexity,matrix multiplication,context free grammar
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络