Skip to main content

Formal Grammars for Turn-Bounded Deterministic Context-Free Languages

  • Conference paper
  • First Online:
Theoretical Aspects of Computing – ICTAC 2022 (ICTAC 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13572))

Included in the following conference series:

  • 286 Accesses

Abstract

As its computation proceeds, a one-way deterministic pushdown automaton (or a 1dpda) changes the height (or volume) of its stack (or pushdown store) by switching between a non-decreasing phase and a decreasing phase. Such a changing of the two different phases is referred to as a “turn” of the machine. Languages that are recognized by k-turn 1dpda’s for each fixed number k are succinctly called k-turn deterministic context-free (dcf) languages. We first discuss closure properties of k-turn dcf languages. Such closure properties help us prove that finite-turn dcf languages are precisely characterized by a deterministic analogue of ultralinear grammars, called LR(1)-ultralinear grammars. In particular, when a 1dpda is further required to empty its stack at the beginning of each turn, the associated languages are characterized in terms of LR(1)-metalinear grammars. As an immediate application of these grammar characterizations, we prove a structural lemma, known as a pumping lemma, for finite-turn dcf languages.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    A tape is said to be read-once if its tape head never moves back to the left and, whenever it scans a non-blank symbol, it must move to the right.

  2. 2.

    Slightly differing from [8], in this paper, we define the number of “turns” by counting the times when a stack height changes from a nondecreasing phase to a decreasing phase (see [6, 13]). The details will be given in Sect. 2.2.

  3. 3.

    These languages coincide with quasi-rational languages and are also characterized by context-free grammars of finite “indices”, where the index of a derivation refers to the maximum number of occurrences of variables in the sentential forms used in the derivation (see, e.g., [1]).

  4. 4.

    The use of endmarkers and a halting set pair \((Q_{acc},Q_{rej})\) does not change the computational power of 1dpda’s. In particular, the right endmarker helps a machine empty its stack at the end of its computation.

  5. 5.

    This grammar is also categorized to an expansive grammar (see, e.g., [1]).

References

  1. Autebert, J.-M., Berstel, J., Boasson, L.: Context-Free Languages and Pushdown Automata. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, pp. 111–174. Springer, Heidelberg (1997). https://doi.org/10.1007/978-3-642-59136-5_3

    Chapter  Google Scholar 

  2. Berstel, J.: Transductions and Context-Free Languages. Teubner Verlag, Wiesbaden (1979). https://doi.org/10.1007/978-3-663-09367-1

  3. Boasson, L.: Two iteration theorems for some families of languages. J. Comput. Syst. Sci. 7, 583–596 (1973)

    Article  MathSciNet  Google Scholar 

  4. Chan, T.: Reversal complexity of counter machines. In: Proceedings of the Thirteenth Annual ACM Symposium on Theory of Computing (STOC 1981), pp. 146–157 (1981)

    Google Scholar 

  5. Eremondi, J., Ibarra, O.H., McQuillan, I.: Insertion operations on deterministic reversal-bounded counter machines. J. Comput. Syst. Sci. 104, 244–257 (2019)

    Article  MathSciNet  Google Scholar 

  6. Fernau, H., Wolf, P., Yamakami, T.: Synchronizing deterministic push-down automata can be really hard. In: Proceedings of the MFCS 2020. LIPIcs, pp. 33:1–33:15 (2020)

    Google Scholar 

  7. Ginsburg, S., Greibach, S.: Deterministic context free languages. Inform. Control 9, 620–648 (1966)

    Article  MathSciNet  Google Scholar 

  8. Ginsburg, S., Spanier, E.H.: Finite-turn pushdown automata. SIAM J. Comput. 4, 429–453 (1966)

    MathSciNet  MATH  Google Scholar 

  9. Greibach, S.A.: The unsolvability of the recognition of linear context-free languages. J. ACM 13, 582–587 (1966)

    Article  MathSciNet  Google Scholar 

  10. Greibach, S.A.: An infinite hierarchy of context-free languages. J. ACM 16, 91–106 (1969)

    Article  MathSciNet  Google Scholar 

  11. Hopcroft, J. E., Ullman, J. D.: Formal Languages and Their Relation to Automata. Addison-Wesley Educational Publishers, Boston (1969)

    Google Scholar 

  12. Knuth, D.E.: On the translation of languages from left to right. Inform. Control 8, 607–639 (1965)

    Article  MathSciNet  Google Scholar 

  13. Kutrib, M., Malcher, A.: Finite turns and the regular closure of linear context-free languages. Discret. Appl. Math. 155, 2152–2164 (2007)

    Article  MathSciNet  Google Scholar 

  14. Malcher, A.: On recursive and non-recursive trade-offs between finite-turn pushdown automata. J. Autom. Lang. Comb. 12, 265–277 (2007)

    MathSciNet  MATH  Google Scholar 

  15. Magalini, E., Pighizzini, G.: A pumping condition for ultralinear languages. Int. J. Found. Comput. Sci. 18, 1303–1312 (2007)

    Article  MathSciNet  Google Scholar 

  16. Moriya, E., Tada, T.: On the space complexity of turn bounded pushdown automata. Int. J. Comput. Math. 80, 295–304 (2003)

    Article  MathSciNet  Google Scholar 

  17. La Torre, S., Madhusudan, P., Parlato, G.: The language theory of bounded context-switching. In: López-Ortiz, A. (ed.) LATIN 2010. LNCS, vol. 6034, pp. 96–107. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-12200-2_10

    Chapter  Google Scholar 

  18. Valiant, L.G.: Decision procedures for families of determinsitic pushdown automata. Ph.D. Dissertation, University of Warwick (1973)

    Google Scholar 

  19. Valiant, L.G.: The equivalence problem for determinsitic finite-turn pushdown automata. Inform. Control 25, 123–133 (1974)

    Article  Google Scholar 

  20. Yamakami, T.: Behavioral strengths and weaknesses of various models of limited automata. In: Catania, B., Královič, R., Nawrocki, J., Pighizzini, G. (eds.) SOFSEM 2019. LNCS, vol. 11376, pp. 519–530. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-10801-4_40

    Chapter  Google Scholar 

  21. Yamakami, T.: Intersection and union hierarchies of deterministic context-free languages and pumping lemmas. In: Leporati, A., Martín-Vide, C., Shapira, D., Zandron, C. (eds.) LATA 2020. LNCS, vol. 12038, pp. 341–353. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-40608-0_24

    Chapter  MATH  Google Scholar 

  22. Yamakami, T.: The no endmarker theorem for one-way probabilistic pushdown automata. Manuscript, available at arXiv:2111.02688 (2021)

  23. Yamakami, T., Mikami, E.: Synchronizing words for real-time deterministic pushdown automata. In: Giri, D., Raymond Choo, K.K., Ponnusamy, S., Meng, W., Akleylek, S., Prasad Maity, S. (eds.) Proceedings of the Seventh International Conference on Mathematics and Computing. AISC, vol. 1412, pp. 551–562. Springer, Singapore (2022). https://doi.org/10.1007/978-981-16-6890-6_41

  24. Yu, S.: A pumping lemma for deterministic context-free languages. Inform. Process. Lett. 31, 47–51 (1989)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tomoyuki Yamakami .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Yamakami, T. (2022). Formal Grammars for Turn-Bounded Deterministic Context-Free Languages. In: Seidl, H., Liu, Z., Pasareanu, C.S. (eds) Theoretical Aspects of Computing – ICTAC 2022. ICTAC 2022. Lecture Notes in Computer Science, vol 13572. Springer, Cham. https://doi.org/10.1007/978-3-031-17715-6_27

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-17715-6_27

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-17714-9

  • Online ISBN: 978-3-031-17715-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics