Skip to main content

On Matching Generalised Repetitive Patterns

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

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

Included in the following conference series:

Abstract

A pattern is a string with terminals and variables (which can be uniformly replaced by terminal words). Given a class \(\mathcal {C}\) of patterns (with variables), we say a pattern \(\alpha \) is a \(\mathcal {C}\)-(pseudo-)repetition if its skeleton – the result of removing all terminal symbols to leave only the variables – is a (pseudo-)repetition of a pattern from \(\mathcal {C}\). We introduce a large class of patterns which generalises several known classes such as the k-local and bounded scope coincidence degree patterns, and show that for this class, \( \mathcal {C}\)-(pseudo-)repetitions can be matched in polynomial time. We also show that for most classes \(\mathcal {C}\), the class of \(\mathcal {C}\)-(pseudo-)repetitions does not have bounded treewidth. Finally, we show that if the notion of repetition is relaxed, so that in each occurrence the variables may occur in a different order, the matching problem is NP-complete, even in severely restricted cases.

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

Notes

  1. 1.

    The matching problem is the same as the membership problem for pattern languages.

  2. 2.

    The difference of whether variables can be substituted by \(\varepsilon \) may seem negligible but is crucial for some aspects of pattern languages (erasing versus non-erasing pattern languages). Since here we are concerned with the matching problem, we only point out whether results also apply to the erasing case, or how they can be extended.

References

  1. Amir, A., Nor, I.: Generalized function matching. J. Discrete Algorithms 5, 514–523 (2007)

    Article  MathSciNet  Google Scholar 

  2. Angluin, D.: Finding patterns common to a set of strings. J. Comput. Syst. Sci. 21, 46–62 (1980)

    Article  MathSciNet  Google Scholar 

  3. Barceló, P., Libkin, L., Lin, A.W., Wood, P.T.: Expressive languages for path queries over graph-structured data. ACM Trans. Database Syst. 37, 31 (2012)

    Article  Google Scholar 

  4. Câmpeanu, C., Salomaa, K., Yu, S.: A formal study of practical regular expressions. Int. J. Found. Comput. Sci. 14, 1007–1018 (2003)

    Article  MathSciNet  Google Scholar 

  5. Day, J.D., Fleischmann, P., Manea, F., Nowotka, D.: Local patterns. In: Proceedings of 37th FSTTCS, Volume 93 of LIPIcs, pp. 24:1–24:14 (2017)

    Google Scholar 

  6. Erlebach, T., Rossmanith, P., Stadtherr, H., Steger, A., Zeugmann, T.: Learning one-variable pattern languages very efficiently on average, in parallel, and by asking queries. Theor. Comput. Sci. 261, 119–156 (2001)

    Article  MathSciNet  Google Scholar 

  7. Fernau, H., Manea, F., Mercaş, R., Schmid, M.L.: Pattern matching with variables: fast algorithms and new hardness results. In: Proceedings of 32nd STACS, Volume 30 of LIPIcs, pp. 302–315 (2015)

    Google Scholar 

  8. Fernau, H., Schmid, M.L.: Pattern matching with variables: a multivariate complexity analysis. In: Fischer, J., Sanders, P. (eds.) CPM 2013. LNCS, vol. 7922, pp. 83–94. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-38905-4_10

    Chapter  MATH  Google Scholar 

  9. Fernau, H., Schmid, M.L.: Pattern matching with variables: a multivariate complexity analysis. Inf. Comput. 242, 287–305 (2015)

    Article  MathSciNet  Google Scholar 

  10. Fernau, H., Schmid, M.L., Villanger, Y.: On the parameterised complexity of string morphism problems. Theory Comput. Syst. 59(1), 24–51 (2016)

    Article  MathSciNet  Google Scholar 

  11. Freydenberger, D.D.: Extended regular expressions: succinctness and decidability. Theory Comput. Syst. 53, 159–193 (2013)

    Article  MathSciNet  Google Scholar 

  12. Friedl, J.E.F.: Mastering Regular Expressions, 3rd edn. O’Reilly, Sebastopol (2006)

    Google Scholar 

  13. Gawrychowski, P., Tomohiro, I., Inenaga, S., Köppl, D., Manea, F.: Tighter bounds and optimal algorithms for all maximal \(\alpha \)-gapped repeats and palindromes. Theory Comput. Syst. 62(1), 162–191 (2018)

    Article  MathSciNet  Google Scholar 

  14. Gawrychowski, P., Manea, F., Nowotka, D.: Testing generalised freeness of words. In: Proceedings of 31st STACS, Volume 25 of LIPIcs, pp. 337–349 (2014)

    Google Scholar 

  15. Karhumäki, J., Plandowski, W., Mignosi, F.: The expressibility of languages and relations by word equations. J. ACM 47, 483–505 (2000)

    Article  MathSciNet  Google Scholar 

  16. Kearns, M., Pitt, L.: A polynomial-time algorithm for learning \(k\)-variable pattern languages from examples. In: Proceedings of 2nd COLT, pp. 57–71 (1989)

    Google Scholar 

  17. Lothaire, M.: Combinatorics on Words. Cambridge University Press, Cambridge (1997)

    Book  Google Scholar 

  18. Manea, F., Müller, M., Nowotka, D., Seki, S.: The extended equation of Lyndon and Schützenberger. J. Comput. Syst. Sci. 85, 132–167 (2017)

    Article  Google Scholar 

  19. Manea, F., Nowotka, D., Schmid, M.L.: On the solvability problem for restricted classes of word equations. In: Brlek, S., Reutenauer, C. (eds.) DLT 2016. LNCS, vol. 9840, pp. 306–318. Springer, Heidelberg (2016). https://doi.org/10.1007/978-3-662-53132-7_25

    Chapter  Google Scholar 

  20. Mateescu, A., Salomaa, A.: Finite degrees of ambiguity in pattern languages. RAIRO Informatique Théoretique et Appl. 28, 233–253 (1994)

    Article  MathSciNet  Google Scholar 

  21. Ng, Y.K., Shinohara, T.: Developments from enquiries into the learnability of the pattern languages from positive data. Theor. Comput. Sci. 397, 150–165 (2008)

    Article  MathSciNet  Google Scholar 

  22. Ordyniak, S., Popa, A.: A parameterized study of maximum generalized pattern matching problems. In: Cygan, M., Heggernes, P. (eds.) IPEC 2014. LNCS, vol. 8894, pp. 270–281. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-13524-3_23

    Chapter  MATH  Google Scholar 

  23. Reidenbach, D.: Discontinuities in pattern inference. Theor. Comput. Sci. 397, 166–193 (2008)

    Article  MathSciNet  Google Scholar 

  24. Reidenbach, D., Schmid, M.L.: Patterns with bounded treewidth. Inf. Comput. 239, 87–99 (2014)

    Article  MathSciNet  Google Scholar 

  25. Shinohara, T.: Polynomial time inference of pattern languages and its application. In: Proceedings of 7th IBM MFCS, pp. 191–209 (1982)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Florin Manea .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Day, J.D., Fleischmann, P., Manea, F., Nowotka, D., Schmid, M.L. (2018). On Matching Generalised Repetitive Patterns. In: Hoshi, M., Seki, S. (eds) Developments in Language Theory. DLT 2018. Lecture Notes in Computer Science(), vol 11088. Springer, Cham. https://doi.org/10.1007/978-3-319-98654-8_22

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-98654-8_22

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-98653-1

  • Online ISBN: 978-3-319-98654-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics