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 (p, t) 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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
Since we can w.l.o.g. assume that \(\sigma \le m\), the \(\log \sigma \) term is negligible here.
References
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
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
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
Constantinescu, S., Ilie, L.: Fine and Wilf’s theorem for Abelian periods. Bull. EATCS 89, 167–170 (2006)
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)
Cummings, L.J., Smyth, W.F.: Weak repetitions in strings. J. Comb. Math. Comb. Comput. 24, 33–48 (1997)
Erdős, P.: Some unsolved problems. Hungarian Academy of Sciences Mat. Kutató Intézet Közl 6, 221–254 (1961)
Fici, G., Lecroq, T., Lefebvre, A., Prieur-Gaston, É.: Algorithms for computing Abelian periods of words. Discrete Appl. Math. 163, 287–297 (2014)
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)
Grabowski, S.: A note on the longest common Abelian factor problem. CoRR abs/1503.01093 (2015)
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)
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
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
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG, part of Springer Nature
About this paper
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)