We initiate a comparative study of the properties of total palindrome complexity for binary words and arrays. From this point of view, the HV-palindrome complexity for arrays seems to be more appropriate than the C-palindrome one. We prove also a theorem for the average number of HVpalindromes in arrays.
Authors
Mira-Cristiana Anisiu Tiberiu Popoviciu Institute of Numerical Analysis, Romanian Academy
Valeriu Anisiu Faculty of Mathematics and Computer Science, Babes-Bolyai University,
Keywords
arrays; palindromes; total palindrome complexity.
Paper coordinates
M.-C. Anisiu, V. Anisiu, Two-dimensional total palindrome complexity, Annals of the Tiberiu Popoviciu Seminar of Functional Equations, Approximation and Convexity 6 (2008), 7-16
Annals of the Tiberiu Popoviciu Seminar
of Functional Equations, Approximation and Convexity
Publisher Name
DOI
Print ISSN
1584-4536,
Online ISSN
google scholar link
[1] J.-P. Allouche, M. Baake, J. Cassaigne and D. Damanik. Palindrome complexity, Theoret. Comput. Sci., 292 (2003) 9-31.
[2] M.-C. Anisiu, V. Anisiu and Z. K´asa. Total palindrome complexity of finite words, Preprint.
[3] M.-C. Anisiu, V. Anisiu and Z. K´asa. Properties of palindromes in finite words, Pure Math. Appl., 17 (2006) 183-195.
[4] V. Berthe and L. Vuillon. Palindromes and two-dimensional Sturmian sequences, J. Autom. Lang. Comb., 6 (2001), 121-138.
[5] J.-P. Borel and C. Reutenauer. Palindromic factors of billiard words, Theoret. Comput. Sci., 340 (2005) 334-348.
[6] E. B. Dagum and A. Luati. Asymmetric and symmetric weights of kernel smoothers and their spectral properties, Estadistica, J. Interamerican Statistical Institute, 53 (2001), 215-258.
[7] X. Droubay, J. Justin and G. Pirillo. Episturmian words and some constructions of de Luca and Rauzy, Theoret. Comput. Sci., 255 (2001), 539-553.
[8] S. Ferenczi and Z. K´asa. Complexity for finite factors of infinite sequences, Theoret. Comput. Sci., 218 (1999) 177–195.
[9] M. Giel-Pietraszuk, M. Hoffmann, S. Dolecka, J. Rychlewski and J. Barciszewski. Palindromes in proteins, J. Protein Chem., 22 (2003) 109-113.
[10] A. Ivany. On the d-complexity of words, Ann. Univ. Sci. Budapest. Sect. Comput., 8 (1987) 69–90.
[11] J. Jeuering. The derivation of on-line algorithms, with an application to finding palindromes, Algorithmica, 11 (1994), 146-184.
[12] Z. Kasa. On the d-complexity of strings, Pure Math. Appl., 9 1–2 (1998) 119–128.
[13] A. de Luca and Al. de Luca. Combinatorial properties of Sturmian palindromes, Int. J. Found. Comput. Sci., 17 (2006) 557-573.
2008-Anisiu-Anisiu-TwoDim.PDF
Annals of the Tiberiu Popoviciu Seminar of Functional Equations, Approximation and Convexity ISSN 1584-4536, vol 6, 2008, pp. 3-12.
We initiate a comparative study of the properties of total palindrome complexity for binary words and arrays. From this point of view, the HV-palindrome complexity for arrays seems to be more appropriate than the C-palindrome one. We prove also a theorem for the average number of HVpalindromes in arrays.
Key Words: arrays, palindromes, total palindrome complexity
MSC 2000: 68R15
1 Introduction
Several authors have studied the palindrome complexity of infinite words (see [1], [5], [13] and the references therein). Similar problems related to the number of palindromes are important for finite words too. One of the reasons is that palindromes occur in DNA sequences (over 4 letters) as well as in protein description (over 20 letters), and their role
qquad\qquad qquad\qquad
is under research ([9]). The values of the total palindrome complexity and the properties of the average number of palindromes have been investigated in [2], [3].
In section 2 we remind some facts related to the palindrome complexity of finite words. Section 3 contains some numerical results concerning the palindrome complexity of two-rows binary arrays, which show that these arrays have similar properties to words; a theorem for the average number of palindromes in arrays is proved.
2 Palindromes in words
Let a positive integer q >= 1q \geq 1 and an alphabet A={0,1,dots,q-1}A=\{0,1, \ldots, q-1\} be given. For the word w=a_(1)dotsa_(n)w=a_{1} \ldots a_{n} with a_(i)in A,1 <= i <= na_{i} \in A, 1 \leq i \leq n, the integer nn is the length of ww and is denoted by |w||w|. The length of the empty word epsi\varepsilon is 0 . The set of the words of length nn over AA will be denoted by A^(n)A^{n}. The word u=a_(i)dotsa_(j),1 <= i <= j <= nu=a_{i} \ldots a_{j}, 1 \leq i \leq j \leq n is a factor (or subword) of ww; if i=1i=1 it is called a prefix, and if j=nj=n a suffix of ww. The reversal (or the mirror image) of ww is denoted by widetilde(w)=a_(n)dotsa_(1)\widetilde{w}=a_{n} \ldots a_{1}. A word which is equal to its mirror image is called a palindrome. The empty word is considered a palindrome. We denote by a^(k)a^{k} the word a...aa . . . a ( kk times).
Let PAL_(w)\mathrm{PAL}_{w} be the set of all factors in the word ww which are nonempty palindromes, and PAL_(w)(n)=PAL_(w)nnA^(n)\mathrm{PAL}_{w}(n)=\mathrm{PAL}_{w} \cap A^{n} the set of the palindromes of length nn contained in ww. The (infinite) set of all palindromes over the alphabet AA is denoted by PAL_(A)\mathrm{PAL}_{A}, while PAL_(A)(n)=PAL_(A)nnA^(n)\mathrm{PAL}_{A}(n)=\mathrm{PAL}_{A} \cap A^{n} is the set of all palindromes of length nn over the alphabet AA. It is known that the number of all palindromes of length kk is q^(|~k//2~|)q^{\lceil k / 2\rceil}, where |~*~|\lceil\cdot\rceil denotes the ceil function (which returns the smallest integer that is greater than or equal to a specified number).
2.1 The total palindrome complexity
The palindrome complexity function pal_(w)\mathrm{pal}_{w} of a finite or infinite word ww attaches to each n inNn \in \mathbb{N} the number of palindrome factors of length nn
in ww, hence
This is similar to the total complexity of words, which was extensively studied in [10], [12] for finite words and in [8] for infinite ones.
An upper bound for P(w)P(w) was given in [7].
Theorem 2.1 The total palindrome complexity P(w)P(w) of any finite word ww satisfies P(w) <= |w|P(w) \leq|w|.
This result shows that the total number of palindromes in a word cannot be larger than the length of that word. There are words of length nn with P(w)=nP(w)=n, e. g. 0^(n)0^{n}, but also some which have few palindromes.
Beside the upper delimitation from Theorem 2.1, lower bounds for the number of palindromes contained in finite binary words were found. (In the trivial case of a 1 -letter alphabet it is obvious that, for any word w,P(w)=|w|w, P(w)=|w|.)
Theorem 2.2 [2] If ww is a finite word of length nn on a binary alphabet then P(w)=nP(w)=n for 1 <= n <= 7;7 <= P(w) <= 81 \leq n \leq 7 ; 7 \leq P(w) \leq 8 for n=8;8 <= P(w) <= nn=8 ; 8 \leq P(w) \leq n for n >= 9n \geq 9.
Remark 2.1 For all the short binary words (up to |w|=7|w|=7 ), the palindrome complexity takes the maximal possible value given in Theorem 2.1; from the words with |w|=8|w|=8, only four (out of 2^(8)2^{8} ) have P(w)=7P(w)=7, namely 00110100, 00101100 and their complemented words, and 252 have P(w)=8P(w)=8. There are 24 words of length 9 and 16 of length 10 with P(w)=8P(w)=8; based on several numerical results, we conjecture that there are precisely 12 words of length n >= 11n \geq 11 with P(w)=8P(w)=8. qquad\qquad qquad\qquad
It can be proved that for each n >= 8n \geq 8, the restriction of the total palindrome complexity function to A^(n)A^{n} takes all the values between 8 and nn.
Theorem 2.3 [2] For each nn and ii so that 8 <= i <= n8 \leq i \leq n, there exists always a binary word w_(n,i)w_{n, i} of length nn for which the total palindrome complexity is P(w_(n,i))=iP\left(w_{n, i}\right)=i.
2.2 The average number of palindromes
We consider an alphabet AA with q >= 2q \geq 2 letters. The average number of palindromes contained in all the words of length nn over AA is defined by
where P(w)P(w) is the total palindrome complexity of the word ww.
The following theorems proved in [2] show that, in fact, the palindrome subwords are rather rare in long words, whatever q >= 2q \geq 2 is.
Theorem 2.4 For an alphabet AA with q >= 2q \geq 2 letters, the average number of palindromes E_(q)(n)E_{q}(n) satisfies
The order of convergence for the sequence E_(q)(n)//nE_{q}(n) / n can be obtained with the aid of a more elaborate estimation of the upper bound of E_(q)(n)E_{q}(n).
Remark 2.2 From Theorem 2.5 it follows that E_(q)(n)=O(n^(1//2))E_{q}(n)=O\left(n^{1 / 2}\right). For a binary alphabet ( q=2q=2 ) we have E_(q)(n) < 9n^(1//2)E_{q}(n)<9 n^{1 / 2}. More generally, E_(q)(n) < 6q^(3//4)n^(1//2)E_{q}(n)<6 q^{3 / 4} n^{1 / 2}.
3 Palindromes in arrays
For a positive integer q >= 1q \geq 1 and an alphabet A={0,1,dots,q-1}A=\{0,1, \ldots, q-1\}, let A^(M xx N)A^{M \times N} denote the set of the M xx NM \times N arrays with entries from AA ( MM, N >= 1N \geq 1 positive integers).
Let mm and nn be positive integers with 1 <= m <= M1 \leq m \leq M and 1 <= n <= N1 \leq n \leq N. An array V=[v_(ij)]inA^(m xx n)V=\left[v_{i j}\right] \in A^{m \times n} is a subarray of the array W=[w_(kℓ)]inA^(M xx N)W=\left[w_{k \ell}\right] \in A^{M \times N} if there exist indices r,sr, s such that r+m-1 <= M,s+n-1 <= Nr+m-1 \leq M, s+n-1 \leq N and v_(ij)=w_(r+i-1,s+j-1)v_{i j}=w_{r+i-1, s+j-1}.
For arrays there are two definitions for palindromes, depending on the considered symmetry.
Let W=[w_(kℓ)]W=\left[w_{k \ell}\right] with 1 <= k <= M1 \leq k \leq M and 1 <= ℓ <= N1 \leq \ell \leq N. The centrosymmetric image of WW is widetilde(W)=[ widetilde(w)_(kℓ)]\widetilde{W}=\left[\widetilde{w}_{k \ell}\right], where widetilde(w)_(kℓ)=w_(M-k+1,N-ℓ+1)\widetilde{w}_{k \ell}=w_{M-k+1, N-\ell+1}. A CC palindrome is an array for which W= widetilde(W)W=\widetilde{W} ([4], [6]).
We define also the horizontal and vertical reverse of WW as bar(W)^(H)=[ bar(w)_(kℓ)^(H)]\bar{W}^{H}= \left[\bar{w}_{k \ell}^{H}\right], where bar(w)_(kℓ)^(H)=w_(M-k+1,ℓ)\bar{w}_{k \ell}^{H}=w_{M-k+1, \ell}, respectively bar(W)^(V)=[ bar(w)_(kℓ)^(V)]\bar{W}^{V}=\left[\bar{w}_{k \ell}^{V}\right], where bar(w)_(kℓ)^(V)=w_(k,N-ℓ+1)\bar{w}_{k \ell}^{V}= w_{k, N-\ell+1}. An HVH V-palindrome is an array for which W= bar(W)^(H)= bar(W)^(V)W=\bar{W}^{H}=\bar{W}^{V} (i. e. all its columns and rows are palindromes [11]). The number of C-palindromes is q^(|__ MN//2__|)q^{\lfloor M N / 2\rfloor}, where |__*__|\lfloor\cdot\rfloor denotes the floor function (which returns the greatest integer that is smaller than or equal to a specified number). The number of HV-palindromes is q^(|~M//2~|*|~N//2~|)q^{\lceil M / 2\rceil \cdot\lceil N / 2\rceil}.
For each type of two-dimensional palindromes, let PAL_(W)\mathrm{PAL}_{W} be the set of all factors in the array WW which are nonempty palindromes, and PAL_(W)(m,n)\mathrm{PAL}_{W}(m, n) be the set of the palindromes which are m xx nm \times n arrays contained in the array WW. We shall also use the notation PAL_(A)(m,n)\operatorname{PAL}_{A}(m, n) for the set of all palindromes which are m xx nm \times n arrays over the alphabet AA.
Let us define the functions (M,N >= 2)c,h,v:A^(M xx N)rarrA^(M xx N)(M, N \geq 2) c, h, v: A^{M \times N} \rightarrow A^{M \times N}, c(W)= widetilde(W),h(W)= bar(W)^(H)c(W)=\widetilde{W}, h(W)=\bar{W}^{H} and v(W)= bar(W)^(V)v(W)=\bar{W}^{V}.
Proposition 3.1 We have c^(2)=h^(2)=v^(2)=id,h@v=c,v@c=hc^{2}=h^{2}=v^{2}=\mathrm{id}, h \circ v=c, v \circ c=h, h@c=vh \circ c=v and @\circ is commutative, hence the group G={id,c,h,v}G=\{\mathrm{id}, c, h, v\} is isomorphic with Klein's one. An array is a CC-palindrome iff it is a fixed point of cc, and is a HV-palindrome iff it is a common fixed point of hh and vv. qquad\qquad qquad\qquad
3.1 The total palindrome complexity
For each type of palindromes, we consider for W inA^(M xx N)W \in A^{M \times N} the palindrome complexity function p_(W):{1,2,dots,M}xx{1,2,dots,N}rarrNp_{W}:\{1,2, \ldots, M\} \times\{1,2, \ldots, N\} \rightarrow \mathbb{N} of WW given by
{:(3.1)p_(W)(m","n)=#PAL_(W)(m","n)","m=1","2","dots","M","n=1","2","dots","N",":}\begin{equation*}
p_{W}(m, n)=\# \mathrm{PAL}_{W}(m, n), m=1,2, \ldots, M, n=1,2, \ldots, N, \tag{3.1}
\end{equation*}
and the total palindrome complexity function P(W)P(W) of WW as
We denote by W*VW \cdot V the concatenation of two arrays with the same number of rows. For a two-rows array V inA^(2xx N)V \in A^{2 \times N}, let |V|=N|V|=N denote the length of VV.
Remark 3.1 We list some maximal values of the two types of total palindrome complexity, obtained by using a computer program:
A result similar to that in Theorem 2.1 seems to hold only for arrays with two lines (or columns) and for HV-palindrome complexity (which will be denoted from now on by P(W)P(W) ).
Based on the numerical results, we state the following
Conjecture 3.1 The total HV-palindrome complexity P(W)P(W) of any finite word W inA^(2xx N)W \in A^{2 \times N} satisfies P(W) <= 2|W|P(W) \leq 2|W|, where |W|=N|W|=N.
We prove a result on the palindrome complexity of the concatenation of two-rows arrays.
Proof. When a column is added to the array WW, there appear at most three new palindromes: at most one on each row, and at most one twodimensional, hence inequality (3.3) holds. For W=[[0,0,0,1,0],[0,1,0,0,0]]W=\left[\begin{array}{lllll}0 & 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 & 0\end{array}\right] and V=[[0,0,1],[0,0,1]]V=\left[\begin{array}{lll}0 & 0 & 1 \\ 0 & 0 & 1\end{array}\right], the number of palindromes in W*VW \cdot V which do not appear in WW is equal to 9 . These palindromes are: 0^(4),0^(5),0^(3)10^(3),0^(2)10^(2)0^{4}, 0^{5}, 0^{3} 10^{3}, 0^{2} 10^{2}, 10^(5)1,10^(3)1,[[0,0],[0,0]],[[0,0,0],[0,0,0]],[[1],[1]]10^{5} 1,10^{3} 1,\left[\begin{array}{ll}0 & 0 \\ 0 & 0\end{array}\right],\left[\begin{array}{lll}0 & 0 & 0 \\ 0 & 0 & 0\end{array}\right],\left[\begin{array}{l}1 \\ 1\end{array}\right].
Remark 3.2 If in (3.3) the constant would be 2 instead of 3, Conjecture 3.1 could be proved by induction, as Theorem 2.1 was.
Remark 3.3 AA result as in Theorem 2.3 does not hold for two-rows arrays, because for M=2M=2 and N=9N=9 there are 12 arrays with 8 palindromes, but no arrays with 9 palindromes. We conjecture that this is true for M=2M=2 and each N >= 9N \geq 9.
3.2 The average number of palindromes
The average number of HV-palindromes contained in all the arrays from A^(M xx N),AA^{M \times N}, A being an alphabet with q >= 2q \geq 2 letters, is defined by
Proof. We calculate E_(q)(M,N)=E_{q}(M, N)= (1)/(q^(MN))sum_(W inA^(M xx N))sum_(Pi inPAL_(W))1=(1)/(q^(MN))sum_(W inA^(M xx N))sum_(m=1)^(M)sum_(n=1)^(N)sum_(Pi inPAL_(W)(m,n))1\frac{1}{q^{M N}} \sum_{W \in A^{M \times N}} \sum_{\Pi \in \mathrm{PAL}_{W}} 1=\frac{1}{q^{M N}} \sum_{W \in A^{M \times N}} \sum_{m=1}^{M} \sum_{n=1}^{N} \sum_{\Pi \in \mathrm{PAL}_{W}(m, n)} 1.
We fix M_(0) <= MM_{0} \leq M and N_(0) <= NN_{0} \leq N two natural numbers. Then E_(q)(M,N)=(1)/(q^(MN))sum_(W inA^(M xx N))sum_(m=1)^(M_(0))sum_(n=1)^(N_(0))sum_(Pi inPAL_(W)(m,n))1E_{q}(M, N)=\frac{1}{q^{M N}} \sum_{W \in A^{M \times N}} \sum_{m=1}^{M_{0}} \sum_{n=1}^{N_{0}} \sum_{\Pi \in \mathrm{PAL}_{W}(m, n)} 1 +(1)/(q^(MN))sum_(W inA^(M xx N))sum_(m > M_(0)" or "n > N_(0))sum_(Pi inPAL_(W)(m,n))1=+\frac{1}{q^{M N}} \sum_{W \in A^{M \times N}} \sum_{m>M_{0} \text { or } n>N_{0}} \sum_{\Pi \in \mathrm{PAL}_{W}(m, n)} 1= (1)/(q^(MN))sum_(m=1)^(M_(0))sum_(n=1)^(N_(0))sum_(W inA^(M xx N))sum_(Pi inPAL_(W)(m,n))\frac{1}{q^{M N}} \sum_{m=1}^{M_{0}} \sum_{n=1}^{N_{0}} \sum_{W \in A^{M \times N}} \sum_{\Pi \in \mathrm{PAL}_{W}(m, n)} +(1)/(q^(MN))sum_(m > M_(0)" or "n > N_(0))sum_(Pi inPAL_(W)(m,n))sum_({:[W inA^(M xx N)],[Pi sube W]:}) <=+\frac{1}{q^{M N}} \sum_{m>M_{0} \text { or } n>N_{0}} \sum_{\Pi \in \mathrm{PAL}_{W}(m, n)} \sum_{\substack{W \in A^{M \times N} \\ \Pi \subseteq W}} \leq (1)/(q^(MN))sum_(m=1)^(M_(0))sum_(n=1)^(N_(0))q^(MN)*q^(|~m//2~|*|~n//2~|)\frac{1}{q^{M N}} \sum_{m=1}^{M_{0}} \sum_{n=1}^{N_{0}} q^{M N} \cdot q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil} +(1)/(q^(MN))sum_(m > M_(0)" or "n > N_(0))^(M,N)sum_(Pi inPAL_(A)(m,n))(M-m+1)(N-n+1)q^(MN-mn) <=+\frac{1}{q^{M N}} \sum_{m>M_{0} \text { or } n>N_{0}}^{M, N} \sum_{\Pi \in \operatorname{PAL}_{A}(m, n)}(M-m+1)(N-n+1) q^{M N-m n} \leq sum_(m=1)^(M_(0))sum_(n=1)^(N_(0))q^(|~m//2~|*|~n//2~|)+sum_(m > M_(0)" or "n > N_(0))^(M,N)(M-m+1)(N-n+1)q^(|~m//2~|*|~n//2~|-mn)\sum_{m=1}^{M_{0}} \sum_{n=1}^{N_{0}} q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil}+\sum_{m>M_{0} \text { or } n>N_{0}}^{M, N}(M-m+1)(N-n+1) q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil-m n}.
We obtain (E_(q)(M,N))/(MN) <= (1)/(MN)sum_(m=1)^(M_(0))sum_(n=1)^(N_(0))q^(|~m//2~|*|~n//2~|)+sum_(m > M_(0)" or "n > N_(0))^(oo,oo)q^(|~m//2~|*|~n//2~|-mn)\frac{E_{q}(M, N)}{M N} \leq \frac{1}{M N} \sum_{m=1}^{M_{0}} \sum_{n=1}^{N_{0}} q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil}+\sum_{m>M_{0} \text { or } n>N_{0}}^{\infty, \infty} q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil-m n},
therefore l i m s u p_({:[M rarr oo],[N rarr oo]:})(E_(q)(M,N))/(MN) <= 0+sum_(m > M_(0)" or "n > N_(0))^(oo,oo)q^(|~m//2~|*|~n//2~|-mn)\limsup _{\substack{M \rightarrow \infty \\ N \rightarrow \infty}} \frac{E_{q}(M, N)}{M N} \leq 0+\sum_{m>M_{0} \text { or } n>N_{0}}^{\infty, \infty} q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil-m n}.
The double series sum_(m,n)q^(|~m//2~|*|~n//2~|-mn)\sum_{m, n} q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil-m n} is convergent (actually the inequality q^(|~m//2~|*|~n//2~|-mn) <= q^((1-mn)/(4))q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil-m n} \leq q^{\frac{1-m n}{4}} holds).
So, sum_(m > M_(0))^(oo,oo)\sum_{m>M_{0}}^{\infty, \infty} or n > N_(0)q^(|~m//2~|*|~n//2~|-mn)n>N_{0} q^{\lceil m / 2\rceil \cdot\lceil n / 2\rceil-m n} tends to 0 for M_(0),N_(0)rarr ooM_{0}, N_{0} \rightarrow \infty. Hence l i m s u p_({:[M rarr oo],[N rarr oo]:})(E_(q)(M,N))/(MN) <= 0\limsup _{\substack{M \rightarrow \infty \\ N \rightarrow \infty}} \frac{E_{q}(M, N)}{M N} \leq 0.
References
[1] J.-P. Allouche, M. Baake, J. Cassaigne and D. Damanik. Palindrome complexity, Theoret. Comput. Sci., 292 (2003) 9-31.
[2] M.-C. Anisiu, V. Anisiu and Z. Kása. Total palindrome complexity of finite words, Preprint.
[3] M.-C. Anisiu, V. Anisiu and Z. Kása. Properties of palindromes in finite words, Pure Math. Appl., 17 (2006) 183-195.
[4] V. Berthé and L. Vuillon. Palindromes and two-dimensional Sturmian sequences, J. Autom. Lang. Comb., 6 (2001), 121-138.
[5] J.-P. Borel and C. Reutenauer. Palindromic factors of billiard words, Theoret. Comput. Sci., 340 (2005) 334-348.
[6] E. B. Dagum and A. Luati. Asymmetric and symmetric weights of kernel smoothers and their spectral properties, Estadistica, J. Interamerican Statistical Institute, 53 (2001), 215-258.
[7] X. Droubay, J. Justin and G. Pirillo. Episturmian words and some constructions of de Luca and Rauzy, Theoret. Comput. Sci., 255 (2001), 539-553.
[8] S. Ferenczi and Z. Kása. Complexity for finite factors of infinite sequences, Theoret. Comput. Sci., 218 (1999) 177-195. qquad\qquad qquad\qquad
[9] M. Giel-Pietraszuk, M. Hoffmann, S. Dolecka, J. Rychlewski and J. Barciszewski. Palindromes in proteins, J. Protein Chem., 22 (2003) 109-113.
[10] A. Ivány. On the dd-complexity of words, Ann. Univ. Sci. Budapest. Sect. Comput., 8 (1987) 69-90.
[11] J. Jeuering. The derivation of on-line algorithms, with an application to finding palindromes, Algorithmica, 11 (1994), 146-184.
[12] Z. Kása. On the dd-complexity of strings, Pure Math. Appl., 9 1-2 (1998) 119-128.
[13] A. de Luca and Al. de Luca. Combinatorial properties of Sturmian palindromes, Int. J. Found. Comput. Sci., 17 (2006) 557-573.
^(diamond){ }^{\diamond} Mira-Cristiana Anisiu, T. Popoviciu Institute of Numerical Analysis, Romanian Academy, email: mira@math.ubbcluj.ro ^(diamond){ }^{\diamond} Valeriu Anisiu, Faculty of Mathematics and Computer Science, Babeş-Bolyai University, email: anisiu@math.ubbcluj.ro