Subquadratic-Time Algorithms for Abelian Stringology Problems

We propose the first subquadratic-time algorithms to a number of natural problems in abelian pattern matching also called jumbled pattern matching for strings over a constant-sized alphabet. Two strings are considered equivalent in this model if the numbers of occurrences of respective symbols in both of them, specified by their so-called Parikh vectors, are the same. We propose the following algorithms for a string of length n:Counting and finding longest/shortest abelian squares in $$On^2/\log ^2n$$ time. Abelian squares were first considered by Erdos 1961; Cummings and Smyth 1997 proposed an $$On^2$$-time algorithm for computing them.Computing all shortest general abelian periods in $$On^2/\sqrt{\log n}$$ time. Abelian periods were introduced by Constantinescu and Ilie 2006 and the previous, quadratic-time algorithms for their computation were given by Fici et al. 2011 for a constant-sized alphabet and by Crochemore et al. 2012 for a general alphabet.Finding all abelian covers in $$On^2/\log n$$ time. Abelian covers were defined by Matsuda et al. 2014.Computing abelian border array in $$On^2/\log ^2n$$ time. This work can be viewed as a continuation of a recent very active line of research on subquadratic space and time jumbled indexing for binary and constant-sized alphabets e.g., Moosa and Rahman, 2012. All our algorithms work in linear space.

[1]  Zsuzsanna Lipták,et al.  Searching for Jumbled Patterns in Strings , 2009, Stringology.

[2]  Arnaud Lefebvre,et al.  Quasi-linear Time Computation of the Abelian Periods of a Word , 2012, Stringology.

[3]  Moshe Lewenstein,et al.  Clustered Integer 3SUM via Additive Combinatorics , 2015, STOC.

[4]  Wojciech Rytter,et al.  Efficient Indexes for Jumbled Pattern Matching with Constant-Sized Alphabet , 2013, ESA.

[5]  Mohammad Sohel Rahman,et al.  Indexing permutations for binary strings , 2010, Inf. Process. Lett..

[6]  Arnaud Lefebvre,et al.  Computing Abelian Periods in Words , 2011, Stringology.

[7]  Zsuzsanna Lipták,et al.  On Table Arrangements, Scrabble Freaks, and Jumbled Pattern Matching , 2010, FUN.

[8]  Wojciech Rytter,et al.  Fast Algorithms for Abelian Periods in Words and Greatest Common Divisor Queries , 2013, STACS.

[9]  Gad M. Landau,et al.  Binary Jumbled Pattern Matching via All-Pairs Shortest Paths , 2014, ArXiv.

[10]  Lucian Ilie,et al.  Fine and Wilf's Theorem for Abelian Periods , 2006, Bull. EATCS.

[11]  Wojciech Rytter,et al.  A note on efficient computation of all Abelian periods in a string , 2013, Inf. Process. Lett..

[12]  P. Erdos Some unsolved problems. , 1957 .

[13]  Hideo Bannai,et al.  Computing Abelian Covers and Abelian Runs , 2014, Stringology.

[14]  Moshe Lewenstein,et al.  On Hardness of Jumbled Indexing , 2014, ICALP.

[15]  Mohammad Sohel Rahman,et al.  Sub-quadratic time and linear space data structures for permutation matching in binary strings , 2012, J. Discrete Algorithms.

[16]  William F. Smyth,et al.  Weak repetitions in strings , 1997 .