Skip to main content

Regular Abelian Periods and Longest Common Abelian Factors on Run-Length Encoded Strings

  • Conference paper
  • First Online:
  • 584 Accesses

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

Abstract

Two strings are considered Abelian equivalent if one is a permutation of the other. We deal with two problems from Abelian stringology: computing regular Abelian periods of a given string and computing the longest common Abelian factor (LCAF) of two given strings. For the former problem our solution works in \(O(n\log m)\) time, where m is the length of the run-length encoded string, which improves the O(nm)-time result from [5]. For LCAF we propose two solutions, one working in \(O(n+m^4)\) time and O(n) space, the other requiring \(O(n^{3/2}\sigma \sqrt{m\log n})\) time and \(O(n\sigma )\) space (for \(m = O(n / \log n)\)).

This is a preview of subscription content, log in via an institution.

Buying options

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

Learn about institutional subscriptions

Notes

  1. 1.

    More precisely, their lemma allows to check in constant time if two prefixes of the given string w have proportional Parikh vectors, assuming that both prefixes contain all symbols from the alphabet for w. In our setting, in \(O(n\log \sigma )\) time we can compute the maximum q over the first positions of each alphabet symbol in S, and if \(j < q\), then j cannot be a period of S and is immediately discarded.

References

  1. Amir, A., Apostolico, A., Hirst, T., Landau, G.M., Lewenstein, N., Rozenberg, L.: Algorithms for jumbled indexing, jumbled border and jumbled square on run-length encoded strings. Theor. Comput. Sci. 656, 146–159 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  2. Badkobeh, G., Gagie, T., Grabowski, S., Nakashima, Y., Puglisi, S.J., Sugimoto, S.: Longest common Abelian factors and large alphabets. In: Inenaga, S., Sadakane, K., Sakai, T. (eds.) SPIRE 2016. LNCS, vol. 9954, pp. 254–259. Springer, Cham (2016). doi:10.1007/978-3-319-46049-9_24

    Chapter  Google Scholar 

  3. Hui, L.C.K.: Color set size problem with applications to string matching. In: Proceedings of the 3rd Annual Symposium on Combinatorial Pattern Matching, pp. 230–243. LNCS 644 (1992)

    Google Scholar 

  4. Kociumaka, T., Radoszewski, J., Rytter, W.: Fast algorithms for abelian periods in words and greatest common divisor queries. J. Comput. Syst. Sci. 84, 205–218 (2017)

    Article  MathSciNet  MATH  Google Scholar 

  5. Sugimoto, S., Noda, N., Inenaga, S., Bannai, H., Takeda, M.: Computing Abelian regularities on RLE strings. CoRR abs/1701.02836, accepted to IWOCA (2017)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Szymon Grabowski .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Grabowski, S. (2017). Regular Abelian Periods and Longest Common Abelian Factors on Run-Length Encoded Strings. In: Fici, G., Sciortino, M., Venturini, R. (eds) String Processing and Information Retrieval. SPIRE 2017. Lecture Notes in Computer Science(), vol 10508. Springer, Cham. https://doi.org/10.1007/978-3-319-67428-5_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-67428-5_17

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-67427-8

  • Online ISBN: 978-3-319-67428-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics