Skip to main content

Computing Abelian String Regularities Based on RLE

  • Conference paper
  • First Online:

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

Abstract

Two strings x and y are said to be Abelian equivalent if x is a permutation of y, or vice versa. If a string z satisfies \(z = xy\) with x and y being Abelian equivalent, then z is said to be an Abelian square. If a string w can be factorized into a sequence \(v_1, \ldots , v_s\) of strings such that \(v_1\), ..., \(v_{s-1}\) are all Abelian equivalent and \(v_s\) is a substring of a permutation of \(v_1\), then w is said to have a regular Abelian period (pt) where \(p = |v_1|\) and \(t = |v_s|\). If a substring \(w_1[i..i+\ell -1]\) of a string \(w_1\) and a substring \(w_2[j..j+\ell -1]\) of another string \(w_2\) are Abelian equivalent, then the substrings are said to be a common Abelian factor of \(w_1\) and \(w_2\) and if the length \(\ell \) is the maximum of such then the substrings are said to be a longest common Abelian factor of \(w_1\) and \(w_2\). We propose efficient algorithms which compute these Abelian regularities using the run length encoding (RLE) of strings. For a given string w of length n whose RLE is of size m, we propose algorithms which compute all Abelian squares occurring in w in O(mn) time, and all regular Abelian periods of w in O(mn) time. For two given strings \(w_1\) and \(w_2\) of total length n and of total RLE size m, we propose an algorithm which computes all longest common Abelian factors in \(O(m^2n)\) time.

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.

    Since we can w.l.o.g. assume that \(\sigma \le m\), the \(\log \sigma \) term is negligible here.

References

  1. Alatabbi, A., Iliopoulos, C.S., Langiu, A., Rahman, M.S.: Algorithms for longest common Abelian factors. Int. J. Found. Comput. Sci. 27(5), 529–544 (2016). http://dx.doi.org/10.1142/S0129054116500143

    Article  MathSciNet  Google Scholar 

  2. 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. In: Moura, E., Crochemore, M. (eds.) SPIRE 2014. LNCS, vol. 8799, pp. 45–51. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-11918-2_5

    Chapter  Google Scholar 

  3. 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). https://doi.org/10.1007/978-3-319-46049-9_24

    Chapter  Google Scholar 

  4. Constantinescu, S., Ilie, L.: Fine and Wilf’s theorem for Abelian periods. Bull. EATCS 89, 167–170 (2006)

    MathSciNet  MATH  Google Scholar 

  5. Crochemore, M., Iliopoulos, C.S., Kociumaka, T., Kubica, M., Pachocki, J., Radoszewski, J., Rytter, W., Tyczyński, W., Waleń, T.: A note on efficient computation of all Abelian periods in a string. Inf. Process. Lett. 113(3), 74–77 (2013)

    Article  MathSciNet  Google Scholar 

  6. Cummings, L.J., Smyth, W.F.: Weak repetitions in strings. J. Comb. Math. Comb. Comput. 24, 33–48 (1997)

    MathSciNet  MATH  Google Scholar 

  7. Erdős, P.: Some unsolved problems. Hungarian Academy of Sciences Mat. Kutató Intézet Közl 6, 221–254 (1961)

    MathSciNet  MATH  Google Scholar 

  8. Fici, G., Lecroq, T., Lefebvre, A., Prieur-Gaston, É.: Algorithms for computing Abelian periods of words. Discrete Appl. Math. 163, 287–297 (2014)

    Article  MathSciNet  Google Scholar 

  9. Fici, G., Lecroq, T., Lefebvre, A., Prieur-Gaston, É., Smyth, W.F.: A note on easy and efficient computation of full Abelian periods of a word. Discrete Appl. Math. 212, 88–95 (2016)

    Article  MathSciNet  Google Scholar 

  10. Grabowski, S.: A note on the longest common Abelian factor problem. CoRR abs/1503.01093 (2015)

    Google Scholar 

  11. Kociumaka, T., Radoszewski, J., Rytter, W.: Fast algorithms for Abelian periods in words and greatest common divisor queries. In: STACS 2013, pp. 245–256 (2013)

    Google Scholar 

  12. Kociumaka, T., Radoszewski, J., Wiśniewski, B.: Subquadratic-time algorithms for Abelian stringology problems. In: Kotsireas, I.S., Rump, S.M., Yap, C.K. (eds.) MACIS 2015. LNCS, vol. 9582, pp. 320–334. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-32859-1_27

    Chapter  Google Scholar 

  13. Sugimoto, S., Noda, N., Inenaga, S., Bannai, H., Takeda, M.: Computing Abelian regularities on RLE strings. CoRR abs/1701.02836 (2017). http://arxiv.org/abs/1701.02836

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shiho Sugimoto .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sugimoto, S., Noda, N., Inenaga, S., Bannai, H., Takeda, M. (2018). Computing Abelian String Regularities Based on RLE. In: Brankovic, L., Ryan, J., Smyth, W. (eds) Combinatorial Algorithms. IWOCA 2017. Lecture Notes in Computer Science(), vol 10765. Springer, Cham. https://doi.org/10.1007/978-3-319-78825-8_34

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-78825-8_34

  • Published:

  • Publisher Name: Springer, Cham

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

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

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics