Skip to main content

Homomorphic Characterization of Tree Languages Based on Comma-Free Encoding

  • Conference paper
  • First Online:
Language and Automata Theory and Applications (LATA 2021)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12638))

Abstract

A classic result in language theory is Medvedev’s theorem for trees, stating that any regular tree language can be defined by the projection of a local tree language, i.e., of a language defined by its tiles of height 2, a.k.a. di-grams. The simple proof of the statement is based on a local alphabet whose size (linearly) depends on the number of states of the tree automaton recognizing the original language. We prove a new extended version of Medvedev’s theorem for trees, by using a k-locally testable tree language defined by tiles of height \(k\ge 2\) (k-grams). The size of the local alphabet is just the double of the original one, hence it is independent from the complexity of the tree automaton. This result relies on an encoding of the states traversed by a tree automaton, by means of binary comma-free codes carefully laid on tree paths. We thus generalize from words to trees our recent extended Medvedev’s theorem for word languages that was based on strictly locally testable word languages. By applying the result to the syntax trees of context-free grammars, we characterize them by k-locally testable, binary-labeled trees .

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

References

  1. Anselmo, M., Madonia, M.: Two-dimensional comma-free and cylindric codes. Theor. Comput. Sci. 658, 4–17 (2017)

    Article  MathSciNet  Google Scholar 

  2. Berstel, J., Perrin, D., Reutenauer, C.: Codes and Automata, volume 129 of Encyclopedia of Mathematics and its Applications. CUP (2009)

    Google Scholar 

  3. Comon, H., et al.: Tree automata techniques and applications (2007). http://www.grappa.univ-lille3.fr/tata

  4. Crespi-Reghizzi, S., Guida, G., Mandrioli, D.: Noncounting context-free languages. J. ACM 25(4), 571–580 (1978)

    Article  MathSciNet  Google Scholar 

  5. Crespi-Reghizzi, S., San Pietro, P.: From regular to strictly locally testable languages. Int. J. Found. Comput. Sci. 23(8), 1711–1728 (2012)

    Article  MathSciNet  Google Scholar 

  6. Engelfriet, J.: Tree automata and tree grammars. CoRR, abs/1510.02036 (2015)

    Google Scholar 

  7. Gécseg, F., Steinby, M.: Tree languages. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, pp. 1–68. Springer, Heidelberg (1997). https://doi.org/10.1007/978-3-642-59126-6_1

    Chapter  Google Scholar 

  8. Giammarresi, D., Restivo, A.: Two-dimensional languages. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, pp. 215–267. Springer, Heidelberg (1997). https://doi.org/10.1007/978-3-642-59126-6_4

    Chapter  Google Scholar 

  9. McNaughton, R., Papert, S.: Counter-Free Automata. MIT Press, Cambridge (1971)

    MATH  Google Scholar 

  10. Medvedev, Y.T.: On the class of events representable in a finite automaton. In: Moore, E.F. (ed.) Sequential Machines - Selected Papers, pp. 215–227. Addison-Wesley (1964)

    Google Scholar 

  11. Perrin, D., Reutenauer, C.: Hall sets, Lazard sets and comma-free codes. Discret. Math. 341(1), 232–243 (2018)

    Article  MathSciNet  Google Scholar 

  12. Place, T., Segoufin, L.: A decidable characterization of locally testable tree languages. Log. Methods Comput. Sci. 7(4), 1–25 (2011)

    Article  MathSciNet  Google Scholar 

  13. Thomas, W.: Classifying regular events in symbolic logic. J. Comput. Syst. Sci. 25(3), 360–376 (1982)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgment

We thank an anonymous reviewer for pointing out the relevance of reference [13].

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Pierluigi San Pietro .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Crespi Reghizzi, S., San Pietro, P. (2021). Homomorphic Characterization of Tree Languages Based on Comma-Free Encoding. In: Leporati, A., Martín-Vide, C., Shapira, D., Zandron, C. (eds) Language and Automata Theory and Applications. LATA 2021. Lecture Notes in Computer Science(), vol 12638. Springer, Cham. https://doi.org/10.1007/978-3-030-68195-1_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-68195-1_19

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-68194-4

  • Online ISBN: 978-3-030-68195-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics