Skip to main content

On the Simon’s Congruence Neighborhood of Languages

  • Conference paper
  • First Online:
Developments in Language Theory (DLT 2023)

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

Included in the following conference series:

Abstract

Given an integer k, Simon’s congruence relation says that two strings u and v are \(\sim _k\)-congruent if they have the same set of subsequences of length at most k. We extend Simon’s congruence to languages. First, we define the Simon’s congruence neighborhood of a language L to be a set of strings that have a \(\sim _k\)-congruent string in L. Next, we define two languages \(L_1\) and \(L_2\) to be \(\equiv _k\)-congruent if both have the same Simon’s congruence neighborhood. We prove that it is PSPACE-complete to check \(\equiv _k\)-congruence of two regular languages and decidable up to recursive languages. Moreover, we tackle the problem of computing the maximum k that makes two given languages \(\equiv _k\)-congruent. This problem is PSPACE-complete for two regular languages, and undecidable for context-free 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 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.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. Barker, L., Fleischmann, P., Harwardt, K., Manea, F., Nowotka, D.: Scattered factor-universality of words. In: Jonoska, N., Savchuk, D. (eds.) DLT 2020. LNCS, vol. 12086, pp. 14–28. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-48516-0_2

    Chapter  Google Scholar 

  2. Fleischer, L., Kufleitner, M.: Testing Simon’s congruence. In: 43rd International Symposium on Mathematical Foundations of Computer Science, pp. 62:1–62:13 (2018)

    Google Scholar 

  3. Garel, E.: Minimal separators of two words. In: Apostolico, A., Crochemore, M., Galil, Z., Manber, U. (eds.) CPM 1993. LNCS, vol. 684, pp. 35–53. Springer, Heidelberg (1993). https://doi.org/10.1007/BFb0029795

    Chapter  Google Scholar 

  4. Gawrychowski, P., Kosche, M., Koß, T., Manea, F., Siemer, S.: Efficiently testing Simon’s congruence. In: 38th International Symposium on Theoretical Aspects of Computer Science, vol. 187, pp. 34:1–34:18 (2021)

    Google Scholar 

  5. Hall, P.A.V., Dowling, G.R.: Approximate string matching. ACM Comput. Surv. 12(4), 381–402 (1980)

    Article  MathSciNet  Google Scholar 

  6. Hébrard, J.: An algorithm for distinguishing efficiently bit-strings by their subsequences. Theor. Comput. Sci. 82(1), 35–49 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  7. Hopcroft, J.E.: An \(n \log n\) algorithm for minimizing states in a finite automaton. In: Theory of Machines and Computations, pp. 189–196. Academic Press (1971)

    Google Scholar 

  8. Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation, 3rd edn. Pearson International Edition. Addison-Wesley (2007)

    Google Scholar 

  9. Karandikar, P., Kufleitner, M., Schnoebelen, P.: On the index of Simon’s congruence for piecewise testability. Inf. Process. Lett. 115(4), 515–519 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  10. Kim, H., Han, Y.-S.: Space-efficient approximate string matching allowing inversions in fast average time. In: Chen, J., Hopcroft, J.E., Wang, J. (eds.) FAW 2014. LNCS, vol. 8497, pp. 141–150. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-08016-1_13

    Chapter  Google Scholar 

  11. Kim, S., Han, Y.-S., Ko, S.-K., Salomaa, K.: On Simon’s congruence closure of a string. In: Han, Y.S., Vaszil, G. (eds.) DCFS 2022. LNCS, vol. 13439, pp. 127–141. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-13257-5_10

    Chapter  Google Scholar 

  12. Kim, S., Ko, S.-K., Han, Y.-S.: Simon’s congruence pattern matching. In: 33rd International Symposium on Algorithms and Computation, ISAAC 2022, Seoul, Korea, 19–21 December 2022, vol. 248, pp. 60:1–60:17 (2022)

    Google Scholar 

  13. Klíma, O., Polák, L.: Alternative automata characterization of piecewise testable languages. In: Béal, M.-P., Carton, O. (eds.) DLT 2013. LNCS, vol. 7907, pp. 289–300. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-38771-5_26

    Chapter  Google Scholar 

  14. Ko, S.-K., Han, Y.-S., Salomaa, K.: Approximate matching between a context-free grammar and a finite-state automaton. Inf. Comput. 247, 278–289 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  15. Masopust, T., Thomazo, M.: On the complexity of k-piecewise testability and the depth of automata. In: Potapov, I. (ed.) DLT 2015. LNCS, vol. 9168, pp. 364–376. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-21500-6_29

    Chapter  Google Scholar 

  16. Pin, J.E.: Varieties of Formal Languages. North Oxford Academic (1989). Trans. by A. Howie

    Google Scholar 

  17. Ruiz, J., García, P.: Learning k-piecewise testable languages from positive data. In: Miclet, L., de la Higuera, C. (eds.) ICGI 1996. LNCS, vol. 1147, pp. 203–210. Springer, Heidelberg (1996). https://doi.org/10.1007/BFb0033355

    Chapter  Google Scholar 

  18. Savitch, W.J.: Relationships between nondeterministic and deterministic tape complexities. J. Comput. Syst. Sci. 4(2), 177–192 (1970)

    Article  MathSciNet  MATH  Google Scholar 

  19. Schöniger, M., Waterman, M.S.: A local algorithm for DNA subsequence alignment with inversions. Bull. Math. Biol. 54, 521–536 (1992)

    Article  MATH  Google Scholar 

  20. Simon, I.: Piecewise testable events. In: Brakhage, H. (ed.) GI-Fachtagung 1975. LNCS, vol. 33, pp. 214–222. Springer, Heidelberg (1975). https://doi.org/10.1007/3-540-07407-4_23

    Chapter  Google Scholar 

  21. Stern, J.: Complexity of some problems from the theory of automata. Inf. Control 66(3), 163–176 (1985)

    Article  MathSciNet  MATH  Google Scholar 

  22. Ukkonen, E.: Algorithms for approximate string matching. Inf. Control 64(1–3), 100–118 (1985)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

We thank the reviewers that pointed us to the book “Varieties of Formal Languages”. Kim, Han and Ko were supported by the NRF grant (RS-2023-00208094) and Salomaa was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sang-Ki Ko .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

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

Kim, S., Han, YS., Ko, SK., Salomaa, K. (2023). On the Simon’s Congruence Neighborhood of Languages. In: Drewes, F., Volkov, M. (eds) Developments in Language Theory. DLT 2023. Lecture Notes in Computer Science, vol 13911. Springer, Cham. https://doi.org/10.1007/978-3-031-33264-7_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-33264-7_14

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-33263-0

  • Online ISBN: 978-3-031-33264-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics