字符串中的反幂算法
Algorithms for Anti-Powers in Strings
摘要:
一个字符串$S[1,n]$是顺序$k$和周期$n/k$的幂(或串联重复),如果它可以分解成$k$连续的等长字母块。幂和周期是字符串处理的基础,有效计算它们的算法有着广泛的应用,并得到了大量的研究。最近,Fici等人(Proc. ICALP 2016)将$k$阶的{ \em反幂}定义为由相同长度的$k$成对不同块组成的字符串($n/k$,称为{ \em反周期})。反权力是权力的自然反面,并且本身就是组合利益的对象。在本文中,我们发起的算法研究的反权力。给定一个字符串$S$,我们描述了一个最优算法,用于定位所有的子串的$S$是一个指定的顺序的反幂。该算法的最优性如下形式的组合引理,提供了一个下界的数量不同的反幂的一个给定的顺序:我们证明了一个字符串的长度$n$可以包含$Θ(n^2/k)$不同的反幂的顺序$k$。
英文摘要:
A string $S[1,n]$ is a power (or tandem repeat) of order $k$ and period $n/k$ if it can 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 {\em anti-power} of order $k$ to be a string composed of $k$ pairwise-distinct blocks of the same length ($n/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 $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 $Θ(n^2/k)$ distinct anti-powers of order $k$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。