Lower bounds on the size of deterministic parsers

作者:

Highlights:

摘要

Worst-case lower bounds on the size of deterministic parsers as a function of the size of the grammar are studied. It is shown first that there is no recursive function bounding the succinctness gained using parsable content-free grammars instead of parsers. Also is shown that there exists an infinite family of LL(2) grammars such that the size of every left or right parser for these grammars must be ⩾2cm for some c > 0, where m is the size of the grammar. Similarly, it is shown that there exists an infinite family of LR(0) grammars such that the size of every right parser for these grammars must be ⩾2cm. Hence for all k ⩾ 0, the class of the LR(k) grammars cannot be parsed using right parsers whose size is polynomially bounded in the size of the grammar, and for all k ⩾ 2, the class of the LL(k) grammars cannot be parsed using left parsers whose size is polynomially bounded in the size of the grammar.

论文关键词:

论文评审过程:Received 27 January 1982, Revised 20 October 1982, Available online 2 December 2003.

论文官网地址:https://doi.org/10.1016/0022-0000(83)90010-7