🤖 AI Summary
This paper investigates the computational complexity of the uniform membership problem for hyperedge replacement grammars (HRGs), distinguishing two hypergraph semantics: attachment nodes allowed to repeat versus disallowed to repeat. Using carefully constructed polynomial-time reductions and deterministic Turing machine simulation techniques, we establish that the problem is EXPTIME-complete under the repeat-allowed semantics and NP-complete under the repeat-forbidden semantics. Furthermore, we prove that deciding HRG string generability is also EXPTIME-complete. This work provides the first precise complexity classification of the HRG uniform membership problem, revealing how subtle semantic differences—specifically, the treatment of node attachments—fundamentally affect computational hardness. By resolving long-standing ambiguities tied to semantic definitions, our results establish a key theoretical boundary for lightweight grammar-based modeling of context-sensitive languages.
📝 Abstract
We investigate complexity of the uniform membership problem for hyperedge replacement grammars in comparison with other mildly context-sensitive grammar formalisms. It turns out that the complexity of the problem considered depends heavily on how one defines a hypergraph. There are two commonly used definitions in the field which differ in whether repetitions of attachment nodes of a hyperedge are allowed in a hypergraph or not. We show that, if repetitions are allowed, then the problem under consideration is EXPTIME-complete even for string-generating hyperedge replacement grammars while it is NP-complete if repetitions are disallowed. We also prove that checking whether a hyperedge replacement grammar is string-generating is EXPTIME-complete.