Average-Case Parsing of Unambiguous Context-Free Grammars

arXiv:2611.38865 · cs.FL · Submitted 2026-11-28 · Read on arXiv

cs.FL

Submitted: 2026-11-28

Updated: 2026-12-01

Comments: 9 pages, under submission

License: http://creativecommons.org/licenses/by/4.0/

The gist: We show that every fixed unambiguous context-free grammar admits a deterministic parser with expected running time O(n 1.5) on a uniformly random word of length n.

Abstract

We show that every fixed unambiguous context-free grammar admits a deterministic parser with expected running time O(n 1.5) on a uniformly random word of length n. The parser utilizes a certain form of sparsity estimate supplied by the unambiguity itself.

Related papers