796 research outputs found

    Abelian-Square-Rich Words

    Full text link
    An abelian square is the concatenation of two words that are anagrams of one another. A word of length nn can contain at most Θ(n2)\Theta(n^2) distinct factors, and there exist words of length nn containing Θ(n2)\Theta(n^2) distinct abelian-square factors, that is, distinct factors that are abelian squares. This motivates us to study infinite words such that the number of distinct abelian-square factors of length nn grows quadratically with nn. More precisely, we say that an infinite word ww is {\it abelian-square-rich} if, for every nn, every factor of ww of length nn contains, on average, a number of distinct abelian-square factors that is quadratic in nn; and {\it uniformly abelian-square-rich} if every factor of ww contains a number of distinct abelian-square factors that is proportional to the square of its length. Of course, if a word is uniformly abelian-square-rich, then it is abelian-square-rich, but we show that the converse is not true in general. We prove that the Thue-Morse word is uniformly abelian-square-rich and that the function counting the number of distinct abelian-square factors of length 2n2n of the Thue-Morse word is 22-regular. As for Sturmian words, we prove that a Sturmian word sαs_{\alpha} of angle α\alpha is uniformly abelian-square-rich if and only if the irrational α\alpha has bounded partial quotients, that is, if and only if sαs_{\alpha} has bounded exponent.Comment: To appear in Theoretical Computer Science. Corrected a flaw in the proof of Proposition

    Words with the Maximum Number of Abelian Squares

    Full text link
    An abelian square is the concatenation of two words that are anagrams of one another. A word of length nn can contain Θ(n2)\Theta(n^2) distinct factors that are abelian squares. We study infinite words such that the number of abelian square factors of length nn grows quadratically with nn.Comment: To appear in the proceedings of WORDS 201

    On a generalization of Abelian equivalence and complexity of infinite words

    Full text link
    In this paper we introduce and study a family of complexity functions of infinite words indexed by k \in \ints ^+ \cup {+\infty}. Let k \in \ints ^+ \cup {+\infty} and AA be a finite non-empty set. Two finite words uu and vv in A∗A^* are said to be kk-Abelian equivalent if for all x∈A∗x\in A^* of length less than or equal to k,k, the number of occurrences of xx in uu is equal to the number of occurrences of xx in v.v. This defines a family of equivalence relations ∼k\thicksim_k on A∗,A^*, bridging the gap between the usual notion of Abelian equivalence (when k=1k=1) and equality (when k=+∞).k=+\infty). We show that the number of kk-Abelian equivalence classes of words of length nn grows polynomially, although the degree is exponential in k.k. Given an infinite word \omega \in A^\nats, we consider the associated complexity function \mathcal {P}^{(k)}_\omega :\nats \rightarrow \nats which counts the number of kk-Abelian equivalence classes of factors of ω\omega of length n.n. We show that the complexity function P(k)\mathcal {P}^{(k)} is intimately linked with periodicity. More precisely we define an auxiliary function q^k: \nats \rightarrow \nats and show that if Pω(k)(n)<qk(n)\mathcal {P}^{(k)}_{\omega}(n)<q^k(n) for some k \in \ints ^+ \cup {+\infty} and n≥0,n\geq 0, the ω\omega is ultimately periodic. Moreover if ω\omega is aperiodic, then Pω(k)(n)=qk(n)\mathcal {P}^{(k)}_{\omega}(n)=q^k(n) if and only if ω\omega is Sturmian. We also study kk-Abelian complexity in connection with repetitions in words. Using Szemer\'edi's theorem, we show that if ω\omega has bounded kk-Abelian complexity, then for every D\subset \nats with positive upper density and for every positive integer N,N, there exists a kk-Abelian NN power occurring in ω\omega at some position $j\in D.
    • …
    corecore