6 research outputs found

    Algorithms for anti-powers in strings

    Get PDF
    A string S[1,n] is a power (or tandem repeat) of order k and period n/k if it can be 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 Θ(n2/k) distinct anti-powers of order k.Peer reviewe

    Anti-Power jj-fixes of the Thue-Morse Word

    Full text link
    Recently, Fici, Restivo, Silva, and Zamboni introduced the notion of a kk-anti-power, which is defined as a word of the form w(1)w(2)w(k)w^{(1)} w^{(2)} \cdots w^{(k)}, where w(1),w(2),,w(k)w^{(1)}, w^{(2)}, \ldots, w^{(k)} are distinct words of the same length. For an infinite word ww and a positive integer kk, define APj(w,k)AP_j(w,k) to be the set of all integers mm such that wj+1wj+2wj+kmw_{j+1} w_{j+2} \cdots w_{j+km} is a kk-anti-power, where wiw_i denotes the ii-th letter of ww. Define also Fj(k)=(2Z+1)APj(t,k)\mathcal{F}_j(k) = (2 \mathbb{Z}^+ - 1) \cap AP_j(\mathbf{t},k), where t\mathbf{t} denotes the Thue-Morse word. For all kZ+k \in \mathbb{Z}^+, γj(k)=min(APj(t,k))\gamma_j(k) = \min (AP_j(\mathbf{t},k)) is a well-defined positive integer, and for kZ+k \in \mathbb{Z}^+ sufficiently large, Γj(k)=sup((2Z+1)Fj(k))\Gamma_j(k) = \sup ((2 \mathbb{Z}^+ -1) \setminus \mathcal{F}_j(k)) is a well-defined odd positive integer. In his 2018 paper, Defant shows that γ0(k)\gamma_0(k) and Γ0(k)\Gamma_0(k) grow linearly in kk. We generalize Defant's methods to prove that γj(k)\gamma_j(k) and Γj(k)\Gamma_j(k) grow linearly in kk for any nonnegative integer jj. In particular, we show that 1/10lim infk(γj(k)/k)9/10\displaystyle 1/10 \leq \liminf_{k \rightarrow \infty} (\gamma_j(k)/k) \leq 9/10 and 1/5lim supk(γj(k)/k)3/2\displaystyle 1/5 \leq \limsup_{k \rightarrow \infty} (\gamma_j(k)/k) \leq 3/2. Additionally, we show that lim infk(Γj(k)/k)=3/2\displaystyle \liminf_{k \rightarrow \infty} (\Gamma_j(k)/k) = 3/2 and lim supk(Γj(k)/k)=3\displaystyle \limsup_{k \rightarrow \infty} (\Gamma_j(k)/k) = 3.Comment: 19 page

    Powers and Anti-Powers in Binary Words

    Get PDF
    Fici et al. recently introduced the notion of anti-powers in the context of combinatorics on words. A power (also called tandem repeat) is a sequence of consecutive identical blocks. An anti-power is a sequence of consecutive distinct blocks of the same length. Fici et al. showed that the existence of powers or anti-powers is an unavoidable regularity for sufficiently long words. In this thesis we explore this notion further in the context of binary words and obtain new results
    corecore