Skip to main content

Row-Column Combination of Dyck Words

  • Conference paper
  • First Online:
SOFSEM 2024: Theory and Practice of Computer Science (SOFSEM 2024)

Abstract

We lift the notion of Dyck language from words to 2-dimensional arrays of symbols, i.e., pictures. We define the Dyck crossword language \(DC_k\) as the row-column combination of Dyck word languages, which prescribes that each column and row is a Dyck word over an alphabet of size 4k. The standard relation between matching parentheses is represented in \(DC_k\) by an edge of the matching graph situated on the picture array. Such edges form a circuit, of path length multiple of four, where row and column matches alternate. Length-four circuits are rectangular patterns, while longer ones exhibit a large variety of patterns. \(DC_k\) languages are not recognizable by the Tiling Systems of Giammarresi and Restivo. \(DC_k\) contains pictures where circuits of unbounded length occur, and where any Dyck word occurs in a row or in a column. We prove that the only Hamiltonian circuits of the matching graph of \(DC_k\) have length four. A proper subset of \(DC_k\), called quaternate, includes only the rectangular patterns; we define a proper subset of quaternate pictures that (unlike the general ones) preserves a characteristic property of Dyck words: availability of a cancellation rule based on a geometrical partial order relation between rectangular circuits. Open problems are mentioned.

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 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.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.

    We just know of a particular example, the Chinese box language in [3], that intuitively consists of embedded or concatenated rectangles, and was proposed to illustrate the expressiveness of the grammars there introduced. But that language is not a satisfactory proposal, since it is in the family REC, hence “regular” rather than “context-free”.

  2. 2.

    More general definitions of Dyck crosswords are possible if the component languages have different alphabets.

  3. 3.

    In [4] the property of well nesting of parentheses is also reformulated for quaternate pictures.

References

  1. Chomsky, N., Schützenberger, M.: The algebraic theory of context-free languages. In: Brafford, H. (ed.) Computer Programming and Formal Systems, pp. 118–161. North-Holland, Amsterdam (1963)

    Chapter  Google Scholar 

  2. Crespi Reghizzi, S., Giammarresi, D., Lonati, V.: Two-dimensional models. In: Pin, J. (ed.) Handbook of Automata Theory, pp. 303–333. European Mathematical Society Publishing House (2021)

    Google Scholar 

  3. Crespi-Reghizzi, S., Pradella, M.: Tile rewriting grammars and picture languages. Theor. Comput. Sci. 340(1), 257–272 (2005). https://doi.org/10.1016/j.tcs.2005.03.041

    Article  MathSciNet  Google Scholar 

  4. Crespi Reghizzi, S., Restivo, A., San Pietro, P.: Two-dimensional Dyck words. CoRR abs/2307.16522 (2023)

    Google Scholar 

  5. Drewes, F.: Grammatical Picture Generation: A Tree-Based Approach. Springer, Heidelberg (2006). https://doi.org/10.1007/3-540-32507-7

    Book  Google Scholar 

  6. Fenner, S.A., Padé, D., Thierauf, T.: The complexity of regex crosswords. Inf. Comput. 286, 104777 (2022). https://doi.org/10.1016/j.ic.2021.104777

    Article  MathSciNet  Google Scholar 

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

    Chapter  Google Scholar 

  8. Latteux, M., Simplot, D.: Recognizable picture languages and domino tiling. Theor. Comput. Sci. 178(1–2), 275–283 (1997). https://doi.org/10.1016/S0304-3975(96)00283-6

    Article  MathSciNet  Google Scholar 

  9. Matz, O.: Regular expressions and context-free grammars for picture languages. In: Reischuk, R., Morvan, M. (eds.) STACS 1997. LNCS, vol. 1200, pp. 283–294. Springer, Heidelberg (1997). https://doi.org/10.1007/BFb0023466

    Chapter  Google Scholar 

  10. Nivat, M., Saoudi, A., Subramanian, K.G., Siromoney, R., Dare, V.R.: Puzzle grammars and context-free array grammars. Int. J. Pattern Recogn. Artif. Intell. 5, 663–676 (1991)

    Article  Google Scholar 

  11. Průša, D.: Two-dimensional Languages. Ph.D. thesis, Charles University, Faculty of Mathematics and Physics, Czech Republic (2004)

    Google Scholar 

  12. Siromoney, R., Subramanian, K.G., Dare, V.R., Thomas, D.G.: Some results on picture languages. Pattern Recogn. 32(2), 295–304 (1999)

    Article  Google Scholar 

Download references

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

© 2024 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

Crespi Reghizzi, S., Restivo, A., San Pietro, P. (2024). Row-Column Combination of Dyck Words. In: Fernau, H., Gaspers, S., Klasing, R. (eds) SOFSEM 2024: Theory and Practice of Computer Science. SOFSEM 2024. Lecture Notes in Computer Science, vol 14519. Springer, Cham. https://doi.org/10.1007/978-3-031-52113-3_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-52113-3_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-52112-6

  • Online ISBN: 978-3-031-52113-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics