English

Algorithms for Computing Abelian Periods of Words

Data Structures and Algorithms 2013-12-05 v2 Discrete Mathematics Combinatorics

Abstract

Constantinescu and Ilie (Bulletin EATCS 89, 167--170, 2006) introduced the notion of an \emph{Abelian period} of a word. A word of length nn over an alphabet of size σ\sigma can have Θ(n2)\Theta(n^{2}) distinct Abelian periods. The Brute-Force algorithm computes all the Abelian periods of a word in time O(n2×σ)O(n^2 \times \sigma) using O(n×σ)O(n \times \sigma) space. We present an off-line algorithm based on a \sel\sel function having the same worst-case theoretical complexity as the Brute-Force one, but outperforming it in practice. We then present on-line algorithms that also enable to compute all the Abelian periods of all the prefixes of ww.

Cite

@article{arxiv.1211.5389,
  title  = {Algorithms for Computing Abelian Periods of Words},
  author = {Gabriele Fici and Thierry Lecroq and Arnaud Lefebvre and Elise Prieur-Gaston},
  journal= {arXiv preprint arXiv:1211.5389},
  year   = {2013}
}

Comments

Accepted for publication in Discrete Applied Mathematics

R2 v1 2026-06-21T22:42:55.751Z