English

Algorithms for Anti-Powers in Strings

Data Structures and Algorithms 2018-05-28 v1 Discrete Mathematics Formal Languages and Automata Theory

Abstract

A string S[1,n]S[1,n] is a power (or tandem repeat) of order kk and period n/kn/k if it can decomposed into kk 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 {\em anti-power} of order kk to be a string composed of kk pairwise-distinct blocks of the same length (n/kn/k, called {\em 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 SS, we describe an optimal algorithm for locating all substrings of SS 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 nn can contain Θ(n2/k)\Theta(n^2/k) distinct anti-powers of order kk.

Keywords

Cite

@article{arxiv.1805.10042,
  title  = {Algorithms for Anti-Powers in Strings},
  author = {Golnaz Badkobeh and Gabriele Fici and Simon J. Puglisi},
  journal= {arXiv preprint arXiv:1805.10042},
  year   = {2018}
}
R2 v1 2026-06-23T02:08:07.463Z