pith. sign in

arxiv: 1211.5389 · v2 · pith:THNME6WDnew · submitted 2012-11-22 · 💻 cs.DS · cs.DM· math.CO

Algorithms for Computing Abelian Periods of Words

classification 💻 cs.DS cs.DMmath.CO
keywords abelianperiodssigmawordalgorithmalgorithmsbrute-forcetimes
0
0 comments X
read the original 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 $n$ over an alphabet of size $\sigma$ can have $\Theta(n^{2})$ distinct Abelian periods. The Brute-Force algorithm computes all the Abelian periods of a word in time $O(n^2 \times \sigma)$ using $O(n \times \sigma)$ space. We present an off-line algorithm based on a $\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 $w$.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.