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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
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
Fleischer, L., Kufleitner, M.: Testing Simon’s congruence. In: 43rd International Symposium on Mathematical Foundations of Computer Science, pp. 62:1–62:13 (2018)
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
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)
Hall, P.A.V., Dowling, G.R.: Approximate string matching. ACM Comput. Surv. 12(4), 381–402 (1980)
Hébrard, J.: An algorithm for distinguishing efficiently bit-strings by their subsequences. Theor. Comput. Sci. 82(1), 35–49 (1991)
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)
Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation, 3rd edn. Pearson International Edition. Addison-Wesley (2007)
Karandikar, P., Kufleitner, M., Schnoebelen, P.: On the index of Simon’s congruence for piecewise testability. Inf. Process. Lett. 115(4), 515–519 (2015)
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
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
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)
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
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)
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
Pin, J.E.: Varieties of Formal Languages. North Oxford Academic (1989). Trans. by A. Howie
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
Savitch, W.J.: Relationships between nondeterministic and deterministic tape complexities. J. Comput. Syst. Sci. 4(2), 177–192 (1970)
Schöniger, M., Waterman, M.S.: A local algorithm for DNA subsequence alignment with inversions. Bull. Math. Biol. 54, 521–536 (1992)
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
Stern, J.: Complexity of some problems from the theory of automata. Inf. Control 66(3), 163–176 (1985)
Ukkonen, E.: Algorithms for approximate string matching. Inf. Control 64(1–3), 100–118 (1985)
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
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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)