Skip to main content
Log in

One-sided random context grammars

  • Original Article
  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract

The notion of a one-sided random context grammar is defined as a context-free-based regulated grammar, in which a set of permitting symbols and a set of forbidding symbols are attached to every rule, and its set of rules is divided into the set of left random context rules and the set of right random context rules. A left random context rule can rewrite a nonterminal if each of its permitting symbols occurs to the left of the rewritten symbol in the current sentential form while each of its forbidding symbols does not occur there. A right random context rule is applied analogically except that the symbols are examined to the right of the rewritten symbol. The paper demonstrates that without erasing rules, one-sided random context grammars characterize the family of context-sensitive languages, and with erasing rules, these grammars characterize the family of recursively enumerable languages. In fact, these characterization results hold even if the set of left random context rules coincides with the set of right random context rules. Several special cases of these grammars are considered, and their generative power is established. In its conclusion, some important open problems are suggested to study in the future.

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

Access this article

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. Atcheson B., Ewert S., Shell D.: A note on the generative capacity of random context. S. Afr. Comput. J. 36, 95–98 (2006)

    Google Scholar 

  2. Bordihn, H., Holzer, M.: Random context in regulated rewriting versus cooperating distributed grammar systems. In: LATA’08: Proceedings of the 2nd International Conference on Language and Automata Theory and Applications, pp. 125–136. Springer (2008)

  3. Cremers A.B., Maurer H.A., Mayer O.: A note on leftmost restricted random context grammars. Inf. Process. Lett. 2(2), 31–33 (1973)

    Article  MATH  MathSciNet  Google Scholar 

  4. Csuhaj-Varjú E., Masopust T., Vaszil G.: Cooperating distributed grammar systems with permitting grammars as components. Romanian J. Inf. Sci. Technol. 12(2), 175–189 (2009)

    Google Scholar 

  5. Dassow J., Păun G.: Regulated Rewriting in Formal Language Theory. Springer, New York (1989)

    Google Scholar 

  6. Goldefus F., Masopust T., Meduna A.: Left-forbidding cooperating distributed grammar systems. Theor. Comput. Sci. 20(3), 1–11 (2010)

    MathSciNet  Google Scholar 

  7. Greibach S.A., Hopcroft J.E.: Scattered context grammars. J. Comput. Syst. Sci. 3(3), 233–247 (1969)

    Article  MATH  MathSciNet  Google Scholar 

  8. Meduna A.: Automata and Languages: Theory and Applications. Springer, London (2000)

    Google Scholar 

  9. Meduna A., Techet J.: Scattered Context Grammars and their Applications. WIT Press, Southampton (2010)

    MATH  Google Scholar 

  10. Meduna A., Švec M.: Grammars with Context Conditions and Their Applications. Wiley, New Jersey (2005)

    Book  MATH  Google Scholar 

  11. Penttonen M.: One-sided and two-sided context in formal grammars. Inf. Control 25(4), 371–392 (1974)

    Article  MATH  MathSciNet  Google Scholar 

  12. Păun G.: A variant of random context grammars: semi-conditional grammars. Theor. Comput. Sci. 41(1), 1–17 (1985)

    Article  MATH  Google Scholar 

  13. Rozenberg, G., Salomaa, A. (eds): Handbook of Formal Languages. Linear Modeling: Background and Application chap. 3, vol. 2, pp. 101–154. Springer, Berlin (1997)

    Google Scholar 

  14. Salomaa A.: Formal Languages. Academic Press, London (1973)

    MATH  Google Scholar 

  15. van der Walt, A.P.J.: Random context grammars. In: Proceedings of Symposium on Formal Languages, pp. 163–165 (1970)

  16. van der Walt A.P.J., Ewert S.: A shrinking lemma for random forbidding context languages. Theor. Comput. Sci. 237(1–2), 149–158 (2000)

    Article  MATH  Google Scholar 

  17. van der Walt A.P.J., Ewert S.: A pumping lemma for random permitting context languages. Theor. Comput. Sci. 270(1–2), 959–967 (2002)

    MATH  Google Scholar 

  18. Zetzsche, G.: On erasing productions in random context grammars. In: ICALP’10: Proceedings of the 37th International Colloquium on Automata, Languages and Programming, pp. 175–186. Springer (2010)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alexander Meduna.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Meduna, A., Zemek, P. One-sided random context grammars. Acta Informatica 48, 149–163 (2011). https://doi.org/10.1007/s00236-011-0134-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00236-011-0134-y

Keywords

Navigation