Skip to main content
Log in

On the equivalence and containment problems for context-free languages

  • Published:
Mathematical systems theory Aims and scope Submit manuscript

Abstract

LetG andG 0 be context-free grammars. Necessary and sufficient conditions onG 0 are obtained for the decidability ofL(G 0)\( \subseteq \) L((G) It is also shown that it is undecidable for whichG 0,L(G) \( \subseteq \) is decidable. Furthermore, given thatL(G) \( \subseteq \) is decidable for a fixedG 0, there is no effective procedure to determine the algorithm which decidesL(G) \( \subseteq \) IfL(G 0) is a regular set,L(G) = L(G 0) is decidable if and only ifL(G 0) is bounded. However, there exist non-regular, unboundedL(G 0) for whichL(G) = L(G 0) is decidable.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. S. Greibach, A note on undecidable properties of formal languages. SDC Document TM-738/038/00, August 1967.

  2. S. Ginsburg andE. H. Spanier, BoundedAlgol-like languages,Trans. Amer. Math. Soc. 113 (1964), 333–368.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Hopcroft, J.E. On the equivalence and containment problems for context-free languages. Math. Systems Theory 3, 119–124 (1969). https://doi.org/10.1007/BF01746517

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01746517

Keywords