English

Complexity of Problems of Commutative Grammars

Formal Languages and Automata Theory 2015-07-01 v3

Abstract

We consider commutative regular and context-free grammars, or, in other words, Parikh images of regular and context-free languages. By using linear algebra and a branching analog of the classic Euler theorem, we show that, under an assumption that the terminal alphabet is fixed, the membership problem for regular grammars (given v in binary and a regular commutative grammar G, does G generate v?) is P, and that the equivalence problem for context free grammars (do G_1 and G_2 generate the same language?) is in Π2P\mathrm{\Pi_2^P}.

Keywords

Cite

@article{arxiv.1501.04245,
  title  = {Complexity of Problems of Commutative Grammars},
  author = {Eryk Kopczynski},
  journal= {arXiv preprint arXiv:1501.04245},
  year   = {2015}
}
R2 v1 2026-06-22T08:04:42.139Z