Self-embedded context-free grammars with regular counterparts

  • Authors:
  • Stefan Andrei;Wei-Ngan Chin;Valerio Cavadini

  • Affiliations:
  • ‘Al.I.Cuza’ University, Faculty of Computer Science, România and Singapore-MIT Alliance, National University of Singapore, CS Programme, 3 Science Drive 2, 117543, Singapore;National University of Singapore, School of Computing, Department of Computer Science, Singapore;Universidad Católica de Santiago del Estero, Facultad de Matemática Aplicada, Centro de Investigación y Desarrollo de Software , Argentina

  • Venue:
  • Acta Informatica
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

In general, it is undecidable if an arbitrary context-free grammar has a regular solution. Past work has focused on special cases, such as one-letter grammars, non self-embedded grammars and the finite-language grammars, for which regular counterparts have been proven to exist. However, little is known about grammars with the self-embedded property. Using systems of equations, we highlight a number of subclasses of grammars, with self-embeddedness terms, such as $X \alpha X$ and $\gamma X \gamma$, that can still have regular languages as solutions. Constructive proofs that allow these subclasses of context-free grammars to be transformed to regular expressions are provided. We also point out a subclass of context-free grammars that is inherently non-regular. Our latest results can help demarcate more precisely the known boundaries between the regular and non-regular languages, within the context-free domain.