Skip to main content

Most Pseudo-copy Languages Are Not Context-Free

  • Conference paper
  • First Online:
Book cover Computing and Combinatorics (COCOON 2021)

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

Included in the following conference series:

Abstract

It is well known that the copy language \(L = \{ww \mid w \in \varSigma ^*\}\) is not context-free despite its simplicity. We study pseudo-copy languages that are defined to be sets of catenations of two similar strings, and prove non-context-freeness of these languages. We consider the Hamming distance and the edit-distance for the error measure of the two similar strings in pseudo-copy languages. When the error has an upper bound or a fixed value, we show that the pseudo-copy languages are not context-free. Similarly, if the error has a lower bound of at least four, then such languages are not context-free, either. Finally, we prove that all these pseudo-copy languages are context-sensitive.

H. Cheon and J. Hahn—The first two authors contributed equally to this work.

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 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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 only consider even-length strings for the Hamming distance between two halves.

  2. 2.

    https://cs.stackexchange.com/q/11585.

References

  1. Anderson, T., Rampersad, N., Santean, N., Shallit, J.: Finite automata, palindromes, powers, and patterns. In: Proceedings of the 2nd International Conference on Language and Automata Theory and Applications, pp. 52–63 (2008)

    Google Scholar 

  2. Apostolico, A., Preparata, F.: Optimal off-line detection of repetitions in a string. Theor. Comput. Sci. 22(3), 297–315 (1983)

    Article  MathSciNet  Google Scholar 

  3. Bordihn, H., Mitrana, V., Păun, A., Păun, M.: Hairpin completions and reductions: semilinearity properties. Nat. Comput. 20(2), 193–203 (2020). https://doi.org/10.1007/s11047-020-09797-0

    Article  MathSciNet  Google Scholar 

  4. Bordihn, H., Shallit, J.: Personal communication

    Google Scholar 

  5. Crochemore, M.: Recherche linéaire d’un carré dans un mot. Comptes rendus de l’Académie des sciences. Série I, Mathématique 296(18), 781–784 (1983)

    Google Scholar 

  6. Ehrenfeucht, A., Rozenberg, G.: On the separating power of EOL systems. RAIRO Theor. Inform. Appl. 17(1), 13–22 (1983)

    Article  MathSciNet  Google Scholar 

  7. Gusfield, D.: Algorithms on Strings, Trees, and Sequences: Computer Science and Computational Biology. Cambridge University Press, USA (1997)

    Book  Google Scholar 

  8. Hamming, R.W.: Error detecting and error correcting codes. Bell Syst. Tech. J. 29(2), 147–160 (1950)

    Article  MathSciNet  Google Scholar 

  9. Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation, 3rd edn. Pearson Education Inc, Boston, MA, USA (2006)

    MATH  Google Scholar 

  10. Kolpakov, R., Kucherov, G.: Finding approximate repetitions under Hamming distance. Theor. Comput. Sci. 303(1), 135–156 (2003)

    Article  MathSciNet  Google Scholar 

  11. Kutrib, M., Malcher, A., Wendlandt, M.: Queue automata: foundations and developments. In: Adamatzky, A. (ed.) Reversibility and Universality. ECC, vol. 30, pp. 385–431. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-73216-9_19

    Chapter  MATH  Google Scholar 

  12. Landau, G.M., Schmidt, J.P., Sokol, D.: An algorithm for approximate tandem repeats. J. Comput. Biol. 8(1), 1–18 (2001)

    Article  Google Scholar 

  13. Levenshtein, V.I.: Binary codes capable of correcting deletions, insertions, and reversals. Sov. Phys. Doklady 10(8), 707–710 (1966)

    MathSciNet  Google Scholar 

  14. Lischke, G.: Squares of regular languages. Math. Log. Q. 51(3), 299–304 (2005)

    Article  MathSciNet  Google Scholar 

  15. Lothaire, M.: Combinatorics on Words, 2nd ed. Cambridge University Press, Cambridge (1997)

    Google Scholar 

  16. Main, M.G., Lorentz, R.J.: An \({O}(n \log n)\) algorithm for finding all repetitions in a string. J. Algorithms 5(3), 422–432 (1984)

    Article  MathSciNet  Google Scholar 

  17. Ogden, W.F., Ross, R.J., Winklmann, K.: An “interchange lemma’’ for context-free languages. SIAM J. Comput. 14(2), 410–415 (1985)

    Article  MathSciNet  Google Scholar 

  18. Ross, R.J., Winklmann, K.: Repetitive strings are not context-free. RAIRO Theor. Inform. Appl. 16(3), 191–199 (1982)

    Article  MathSciNet  Google Scholar 

  19. Sipser, M.: Introduction to the Theory of Computation, 3rd edn. Cengage Learning, Boston, MA, USA (2013)

    MATH  Google Scholar 

  20. Stoye, J., Gusfield, D.: Simple and flexible detection of contiguous repeats using a suffix tree. Theor. Comput. Sci. 270(1), 843–856 (2002)

    Article  MathSciNet  Google Scholar 

  21. Vollmar, R.: Über einen automaten mit pufferspeicherung. Computing 5(1), 57–70 (1970)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgments

We wish to thank the referees for valuable suggestions that improve the presentation of the paper.

This research was supported by the NRF grant funded by MIST (NRF-2020R1A4A3079947, NRF-2018R1D1A1A09084107).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yo-Sub Han .

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

Cheon, H., Hahn, J., Han, YS., Ko, SK. (2021). Most Pseudo-copy Languages Are Not Context-Free. In: Chen, CY., Hon, WK., Hung, LJ., Lee, CW. (eds) Computing and Combinatorics. COCOON 2021. Lecture Notes in Computer Science(), vol 13025. Springer, Cham. https://doi.org/10.1007/978-3-030-89543-3_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-89543-3_16

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-89542-6

  • Online ISBN: 978-3-030-89543-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics