Context-free Grammar Empty (CFGempty)
Category: Formal Languages
Input
A context-free grammar $G = (N, T, P, S)$.
Problem
Is $L(G)$ empty?
Status
$\P$-complete (Jones and Laaser [1], Goldschlager [2]).
Remarks
Same reduction as for CFGmem suffices, but it may also be reduced from MCVP [3].
Note, this reduction and the one for CFGinf, have no $\epsilon$-productions yet remain complete. The original proof of Jones and Laaser reduced GEN to CFGempty. Their proof used the reduction for CFGmem, and instead checked if $L(G)$ is empty [1].
References
- N. D. Jones and W. T. Laaser (1976). Complete problems for deterministic polynomial time.
- L. M. Goldschlager (1981). ϵ-productions in context-free grammars.
- Greenlaw, R., Hoover, H. J., and Ruzzo, W. L. (1995). Limits to Parallel Computation: P-Completeness Theory. Oxford University Press. Problem A.7.2.