Algorithms for Anti-Powers in Strings

05/25/2018
by   Golnaz Badkobeh, et al.
0

A string S[1,n] is a power (or tandem repeat) of order k and period n/k if it can decomposed into k consecutive equal-length blocks of letters. Powers and periods are fundamental to string processing, and algorithms for their efficient computation have wide application and are heavily studied. Recently, Fici et al. (Proc. ICALP 2016) defined an anti-power of order k to be a string composed of k pairwise-distinct blocks of the same length (n/k, called anti-period). Anti-powers are a natural converse to powers, and are objects of combinatorial interest in their own right. In this paper we initiate the algorithmic study of anti-powers. Given a string S, we describe an optimal algorithm for locating all substrings of S that are anti-powers of a specified order. The optimality of the algorithm follows form a combinatorial lemma that provides a lower bound on the number of distinct anti-powers of a given order: we prove that a string of length n can contain Θ(n^2/k) distinct anti-powers of order k.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/29/2018

Abelian Anti-Powers in Infinite Words

An abelian anti-power of order k (or simply an abelian k-anti-power) is ...
research
06/29/2020

The Number of Repetitions in 2D-Strings

The notions of periodicity and repetitions in strings, and hence these o...
research
02/01/2023

Order-Preserving Squares in Strings

An order-preserving square in a string is a fragment of the form uv wher...
research
12/17/2019

New Bounds on Antipowers in Binary Words

Fici et al. defined a word to be a k-power if it is the concatenation of...
research
03/13/2023

Optimal Square Detection Over General Alphabets

Squares (fragments of the form xx, for some string x) are arguably the m...
research
09/20/2019

Formations and generalized Davenport-Schinzel sequences

An (r, s)-formation is a concatenation of s permutations of r distinct l...
research
03/05/2018

String Attractors: Verification and Optimization

String attractors [STOC 2018] are combinatorial objects recently introdu...

Please sign up or login with your details

Forgot password? Click here to reset