Palindromes in two-dimensional Words
Kalpana Mahalingam, Palak Pandoh

TL;DR
This paper explores the properties of two-dimensional palindromes, focusing on HV-palindromes, and proves a conjecture about their maximum number of distinct sub-arrays, also analyzing their minimal occurrence in infinite words.
Contribution
It introduces structural properties of HV-palindromes, proves a conjecture on their maximum count in finite words, and determines the minimal number in infinite words over finite alphabets.
Findings
Proved the maximum number of HV-palindromic sub-arrays in finite 2D words.
Established the least number of HV-palindromes in infinite 2D words.
Compared properties of 2D palindromes and HV-palindromes.
Abstract
A two-dimensional (D) word is a D palindrome if it is equal to its reverse and it is an HV-palindrome if all its columns and rows are D palindromes. We study some combinatorial and structural properties of HV-palindromes and its comparison with D palindromes. We investigate the maximum number number of distinct non-empty HV-palindromic sub-arrays in any finite D word, thus, proving the conjecture given by Anisiua et al. We also find the least number of HV-palindromes in an infinite D word over a finite alphabet size .
| Max | Our Bound | Max | Our Bound | ||
|---|---|---|---|---|---|
| 3 2 | 6 | 6 | 3 6 | 20 | 22 |
| 3 3 | 10 | 10 | 4 2 | 8 | 8 |
| 3 4 | 13 | 14 | 4 3 | 13 | 14 |
| 3 5 | 17 | 18 | 4 4 | 19 | 20 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · DNA and Biological Computing · Algorithms and Data Compression
Palindromes in two-dimensional Words
Kalpana Mahalingam, Palak Pandoh
Department of Mathematics,
Indian Institute of Technology Madras, Chennai, 600036, India
[email protected],[email protected]
Abstract.
A two-dimensional (D) word is a D palindrome if it is equal to its reverse and it is an HV-palindrome if all its columns and rows are D palindromes. We study some combinatorial and structural properties of HV-palindromes and its comparison with D palindromes. We investigate the maximum number number of distinct non-empty HV-palindromic sub-arrays in any finite D word, thus, proving the conjecture given by Anisiua et al. We also find the least number of HV-palindromes in an infinite D word over a finite alphabet size .
Key words and phrases:
Combinatorics on words, Two-dimensional words, Properties of palindromes, palindromic complexity
1. Introduction
Palindromes are extensively studied in -dimensional words by several authors (See [1, 4, 13, 14]). There is an increasing interest in the combinatorial properties of palindromes in mathematics, theoretical computer science, and biology. The notion of -palindrome was defined in [5] and studied in [19] and [7] independently. Some properties that link the palindromes to classical notions such as that of primitive words are present in [20]. Due to their symmetrical properties, this concept was generalized to two-dimension. Such a construction has significance in detecting bilateral symmetry of an image and face recognition technologies ([8, 16]).
Identifying palindromes in arrays dates back to , when authors in [18], described an array to be a palindrome if all its rows and columns are D palindromes. These structures are referred to as HV-palindromes in [3], where H and V stand for horizontal and vertical respectively. It was much later in when Berthé et al., [6] formally defined a D palindrome to be an array which is equal to its reverse. It can be easily observed that an array whose all rows and columns are D palindromes is equal to its reverse. Hence, HV-palindromes is a sub-class of D palindromes. Recently, there has been a rise in research that deals with the concept of D palindromes. A relation between D palindromes and D primitive words was studied in [21]. An algorithm for finding maximal D palindromes was given in [11]. The maximum and the least number of D palindromic sub-arrays in a given array was studied in [3, 23] and [24] respectively.
The main idea of this paper is to study the structure of a special type of D word called an HV-palindrome. The motivation of studying this structure came from the conjecture mentioned in [3] which speculates about the maximum number of HV-palindromic sub-arrays in a D word of size for a given . We settle this conjecture in affirmative and generalize the result to D words of larger sizes.
This paper is organized as follows. Section deals with the characterization of a word to be an HV-palindrome. Further, the D words whose all D palindromes are HV-palindromes are also characterized. In Section , we count the number of possible D palindromes and HV-palindromes for a given array size and investigate the number of D palindromic and HV-palindromic conjugates of a D word. In Section , we find the upper and lower bounds on the number of HV-palindromic sub-arrays in a D word. We end the paper with some concluding remarks.
2. Basic definitions and notations
An alphabet is a finite non-empty set of symbols. A D word is defined to be a sequence of symbols from . denotes the set of all words over including the empty word . . The length of a word is the number of symbols in a word and is denoted by . The reversal of is defined to be a string where . is the set of all sub-words of of length . A word is said to be a palindrome if . The concepts of prefix, suffix, primitivity, and conjugates are as usual. For all other concepts in formal language theory and combinatorics on words, the reader is referred to [17, 22].
2.1. Two-dimensional arrays
A two-dimensional word over of size is defined to be a two-dimensional rectangular array of letters. If both and are infinite, then is an infinite D word. A factor of is a sub-array/sub-word of . In the case of D words, an empty word is a word of size , and we use the notation to denote such a word. The set of all D words including the empty word over is denoted by whereas, is the set of all non-empty D words over . Note that, the words of size and for are not defined.
** Definition 2.1****.**
Let and be two words over of size and , respectively.
- (1)
The column concatenation of and denoted by is a partial operation, defined if , and it is given by
[TABLE]
The column closure of denoted by is defined as where . As , we get . 2. (2)
The row concatenation of and denoted by is a partial operation defined if , and it is given by
[TABLE]
The row closure of denoted by is defined as where . As , we get .
In [2], a prefix of a D word is defined to be a rectangular sub-block that contains one corner of , whereas suffix of is defined to be a rectangular sub-array that contains the diagonally opposite corner of . However, we consider prefix/suffix of a D word to be a rectangular sub-array that contains the top-left/bottom-right corner of . This was formally defined in [21] as follows.
** Definition 2.2****.**
Given , is said to be a prefix of respectively, suffix of , denoted by respectively if or respectively, or for .
A border of a D word is a sub-array that occurs as both the prefix and suffix.
** Definition 2.3****.**
Let be a D word. The reverse and transpose of , denoted by and respectively are defined as
If , then is said to be a two-dimensional D palindrome ([6, 11]).
** Example 2.4****.**
Let and
[TABLE]
As , so is a D palindrome.
Note that the rows and columns of a D palindrome are not always D palindromes. Also, if all columns and rows of a finite D word are palindromes, then the word is a D palindrome. Such palindromes are referred to as HV-palindromes in [3].
** Example 2.5****.**
Let and
[TABLE]
As every row and column of is a D palindrome, so is an HV-palindrome.
We recall the notion of horizontal and vertical palindromes from [23].
** Definition 2.6****.**
The horizontal palindromes of a D word are the palindromic factors of of size where and of are the palindromic factors of of size where .
The palindromes of size are trivial and rest are non-trivial. Note that, all horizontal and vertical palindromes are HV-palindromes. We now recall the notion of the center of a word as defined in [11].
** Definition 2.7****.**
Center is the position that results in an equal number of columns to the left and right, as well as an equal number of rows above and below, i.e. in a word of size , if and are odd, then the center is at location . If or/and is even, the center is in between rows or/and columns respectively.
** Example 2.8****.**
The center of in Example 2.4 is in between the rows and columns of the sub-array . However, for the word from Example 2.5, the center of is the sub-word c.
Throughout the paper, by ‘the number of palindromes’, we mean the number of non-empty distinct palindromic factors. For more information pertaining to two-dimensional word concepts, we refer the reader to [6, 10, 11, 12].
3. Structure of an HV-palindrome
By definition, if a D word of size is a palindrome, then and admits two symmetries namely identity and rotation. Hence, given a D palindrome of size , let be the prefix of size and . Then, is of the form
- (1)
, if is even. 2. (2)
, if is odd.
In addition to the symmetries in a D palindrome, an HV-palindrome is preserved under reflections about horizontal and vertical axis containing the center of the word. Due to such symmetrical properties, we give the exact structure of an HV-palindrome.
** Theorem 3.1****.**
Structure theorem of HV-palindromes
Given an HV-palindrome of size , let be the prefix of of size , , and . Then, is of one of the following forms.
[TABLE]
where
Proof.
We give the proof of the case when and are both even and the rest of the cases follow similarly. Let be an HV-palindrome of size and be the prefix of of size . Now, as every row of is a palindrome, is the prefix of of size . Also, as every column of is a palindrome, then . ∎
An HV-palindrome of size can be constructed from an HV-palindrome of size by removing its row and column. Such a construction in the case of a D palindrome is given in [21]. We also observe the following result.
** Lemma 3.2****.**
If is an HV-palindrome of size , then the word obtained by the removal of first and last rows of , for and first and last columns of , for is an HV-palindrome of size . This result is also true in the case of D palindromes.
3.1. Characterization of an HV-palindrome
In this section, we first give two necessary and sufficient conditions for a D word to be an HV-palindrome and then give a characterization of D words such that all of their palindromic sub-words are HV-palindromes i.e., words with no non-HV-palindromic sub-arrays.
** Proposition 3.3****.**
Let be a D word of size , where and is the row and column of respectively. Then, is an HV-palindrome if and only if for and for .
Proof.
Let be an HV-palindrome. This implies each and is a palindrome. Every row of is a palindrome if and only if for . Every column is a palindrome if and only if for . ∎
One can easily observe that the above result does not hold true in the case of D palindromes that are not HV-palindromes. For example, the word given in Example 2.4 does not satisfy the conditions given in Proposition 3.3.
It is well known that a 1D word is a D-palindrome if and only if for some 1D palindromes and . In general, it was proved in [20], that if is an antimorphic involution, then iff for some and where denote the set of all -palindromes. For D palindromic words, the condition was shown to be only sufficient in [21]. We now show that the condition is both necessary and sufficient for an HV-palindrome.
** Proposition 3.4****.**
Let be HV- palindromes. Then, or , if and only if is an HV- palindrome.
Proof.
Let , then
[TABLE]
Hence, is a D palindrome. A similar proof follows for . Now as and are HV-palindromes, then is an HV-palindrome. Hence, is an HV-palindrome for .
Conversely, let be an HV-palindrome of size , then by Proposition 3.3, for and every row of is a palindrome. Let and . By Lemma 3.2, is an HV-palindrome. Thus, . ∎
All letters from the alphabet are trivially palindromes and hence every D word has palindromic sub-words. Also, all trivial palindromes are HV-palindromes and all HV-palindromes are D palindromes. However, a D palindrome may or may not be an HV-palindrome. A word may or may not contain non-HV palindromes. In the following, we give a characterization of D words such that all of its palindromic sub-words are HV-palindromes. The word in Example 2.5 is one such word.
** Theorem 3.5****.**
All D palindromic sub-words of a D word are HV-palindromes if and only if has no sub-word of the form
[TABLE]
where such that , and are D words and is a D palindrome.
Proof.
Let be a D word with no sub-word of the form
[TABLE]
where such that , and are D words and is a D palindrome. We show that all of its D palindromic sub-words are HV-palindromes. Let be a D palindromic sub-word of of size , with , then it must be of the form
[TABLE]
where , and are D words and is a D palindrome. We show that is an HV-palindrome. Consider the first and the last row of . We show that they are the same. If not, consider the first position where they are different, say it is the position. Let the position of the first and last row of be and respectively, where . As is a D palindrome, then the position of the first and last row of are and respectively. Then has a sub-word of the form where , and are D words and is a D palindrome which is a contradiction. Hence, the first row and the last row of are same. Similarly, we can show that the and row of are same for . Now, consider the word which is a palindrome of size . Apply the same procedure on to show that the and row of are same for . This implies and column of is same for . Thus, by Proposition 3.3, is an HV-palindrome.
Conversely, if all palindromic sub-words of are HV-palindromes, then any sub-word of the form
[TABLE]
where are distinct, and are D words and is a D palindrome is itself a non-HV-palindrome which is a contradiction. ∎
3.2. Borders in a 2D palindrome
In [15], the behaviour of borders of D words was investigated and was shown that the asymptotic probability that a random word has a given maximal border length is a constant, depending only on k and the alphabet size. The concept of -bordered and -unbordered words for an arbitrary morphic or antimorphic involution was reviewed in [19]. Here, we analyze the structure of borders in a D palindrome.
** Proposition 3.6****.**
Every border of a D palindrome is a D palindrome.
Proof.
Let be a D palindrome of size . Let be a border of size , then
[TABLE]
Now, as is a palindrome, then for
[TABLE]
Hence, by Equations (1) and (2), is a D palindrome. ∎
** Corollary 3.7****.**
Every border of an HV-palindrome is a D palindrome.
Note that the border of an HV-palindrome need not be an HV palindrome. For example, in the word , the sub-array is a border but is not an HV-palindrome.
It is clear that the maximum number of borders in a word of size is and is achieved when . Let be the set of all borders of , then we have the following result.
** Lemma 3.8****.**
Let be a word of size .
- (1)
*If is a *D palindrome, then . 2. (2)
If is an HV-palindrome, then .
Proof.
Let be a word of size , .
- (1)
If is a D palindrome, then the prefix of size and is a border of . The word achieves the lower bound. 2. (2)
If is an HV-palindrome, then the prefixes of size , , and are borders of . The word has only four borders.
∎
4. Counting Palindromes
It can be easily observed that given an alphabet of size , there are distinct D palindromes of length . In this section, we first count the number of distinct D palindromes (HV-palindromes) that can be obtained over a given alphabet . We then determine the number of D palindromes (HV-palindromes) that can appear in the conjugacy class of a given D word.
** Theorem 4.1****.**
Let be a finite alphabet such that . Then, there are
- (1)
*, where distinct *D palindromes of size . 2. (2)
, where distinct HV-palindromes of size .
Proof.
Let be a D palindrome of size such that , where is the row of . Since , the D word is a D palindrome. Let be the prefix of of length . Then, is a suffix of . Thus, we have distinct choices of letters from and therefore, there are distinct D palindromes of size over . If is an HV-palindrome of size , then by Proposition 3.3, we have distinct choices of letters in the prefix of of size . Hence, there are distinct HV-palindromes of size over . ∎
We illustrate with the following example.
** Example 4.2****.**
Consider the binary alphabet . The set of all D palindromes of size is
[TABLE]
This set has four D palindromes and two HV-palindromes.
4.1. Palindromes in the conjugacy class of a word
It was proved in [14] that the conjugacy class of a D word contains at most two D palindromes. The concept of conjugacy on words was defined in [19].
We consider the concept of conjugacy class in two-dimensional words and count the number of D palindromes and HV-palindromes. We recall the definition of conjugates of an array from [25].
** Definition 4.3****.**
Let and be respectively the rows and columns of a word of size . The cyclic rotation of columns, for , denoted by is defined as the word
[TABLE]
Similarly, the cyclic rotation of rows, for , denoted by is defined as the word
[TABLE]
Then, the conjugacy class of , denoted by is defined as
[TABLE]
Note that, given any D word of size , the number of elements in its conjugacy class can be at most . We illustrate with the following example.
** Example 4.4****.**
Consider the 2D word of size . Then,
[TABLE]
** Remark 4.5****.**
For a 2D word of size , if , and if , . However, the converse need not be true as illustrated in Example 4.4. If is a D palindrome with or an HV-palindrome with , then .
We count the maximum number of D palindromes (HV-palindromes) in the conjugacy class of a D word. We call such conjugates as palindromic (HV-palindromic) conjugates and denote them by . Note that, for the given in Example 4.4 we have,
[TABLE]
We give another example of a D word of size where .
[TABLE]
We first recall the following result for D words from [14].
** Theorem 4.6****.**
A conjugacy class of a D word contains at most two palindromes and it has exactly two if and only if it contains a word of the form , where is a primitive word and .
Consider a D word , where is the column and is the row of . The word can be considered as a D word over the alphabet of columns i.e., the set and over the alphabet of rows i.e., the set .
** Remark 4.7****.**
Note that a D word is a D palindrome if and only if it is a D palindrome over its alphabet of columns and over its alphabet of rows.
We now have the following result.
** Theorem 4.8****.**
Let be a D word of size , then
[TABLE]
Proof.
It is clear that there exist words for example, with no palindromic conjugates. Also, note that for a D word of size such that , and for , such that , .
We now find the number of palindromic conjugates in a word of size . If has no palindromic conjugates, then we are done. Otherwise, assume that . Note that, . Now, , where is the column of and is the row of . As is a D palindrome, by Remark 4.7, it is a D palindrome over the alphabet of columns and over the alphabet of rows. We have the following cases.
- Case 1:
If and are both even, then by Theorem 4.6, as is even, there can be at most two D palindromic conjugates of say and over its alphabet of columns. Each of them can be expressed as a D word over its alphabet of rows say the set . Again, as is even, by Theorem 4.6, there are at most two palindromic conjugates of and each as a D word over . In total, there are at most four palindromic conjugates in the conjugacy class of . Hence, for some and ,
[TABLE]
- Case 2:
If is odd and is even, then can be expressed as a D word over its alphabet of rows say the set . As is odd, by Theorem 4.6, there is no palindromic conjugate of , other than over . Again, can be expressed as a D word over the alphabet of columns say the set to obtain at most two palindromic conjugates over . In total, there are at most two palindromic conjugates in the conjugacy class of . Hence, for some and ,
[TABLE]
Similar is the case when is even and is odd. Here, for some and ,
[TABLE]
- Case 3:
If are both odd, by Theorem 4.6, there is no palindromic conjugate of , other than . Hence, for some and ,
[TABLE]
∎
Theorem 4.8 also holds in the case of HV-palindromes. We have the following result.
** Corollary 4.9****.**
Let be a D word of size , then
[TABLE]
** Remark 4.10****.**
We now find the exact structure of the words that achieve the above upper bound in the case of HV-palindromes. Let , then by the structure of , and .
- Case 1:
If and are even, then to have four distinct palindromic conjugates, we have the following:
- (a)
and the prefix of size is not an HV-palindrome. 2. (b)
and the prefix of size is not an HV-palindrome. 3. (c)
the prefix of size is not a D palindrome. 4. (d)
the prefix of size is not a D palindrome.
Hence, in this case iff the prefix of size of is not a D palindrome. 2. Case 2:
For even and odd, iff the prefix of size is not an HV-palindrome. 3. Case 3:
For odd and even, iff the prefix of size is not an HV-palindrome.
5. Bounds on the number of palindromes
In this section, we find the maximum and the least number of HV-palindromes in any D finite and infinite word respectively. We also compare these results with the existing results on D palindromes.
5.1. On the maximum number of HV-palindromes
In this section, we find the maximum number of non-empty distinct HV-palindromes in a D word of size . It was proved in [1] and [23] that there are at most palindromes in a D word of length and at most palindromes in a two-row array of size respectively. Further, it was conjectured in [3] that the number of HV-palindromes in any D word of size is less than or equal to . We give a proof of this conjecture.
** Theorem 5.1****.**
The maximum number of HV-palindromes in any D word of size is .
Proof.
Let be a D word of size . The number of HV-palindromes in is the sum of horizontal palindromes in and HV-palindromes of size in . It can be observed that the HV-palindromes of size are of the form , where is a D palindrome. Let the number of the HV-palindromes of size in be . Then, there are palindromes of the form where . This implies there are common horizontal palindromes in both the rows of and hence, these horizontal palindromes should be counted only once. Thus, as only one horizontal palindrome can be created on the concatenation of a letter, then the maximum number of horizontal palindromes in is . Hence, the total number of HV-palindromes in . ∎
We now give an example of a word of size that achieves this bound. Let . It has horizontal palindromes: for and HV- palindromes: of size for . We deduce the following from Theorem 5.1.
** Corollary 5.2****.**
The maximum number of HV-palindromes in any D word of size is .
We recall the following from [23].
** Lemma 5.3****.**
Let be a word of size for . Then, the column concatenation of and , where for each creates at most one distinct palindrome of size for some . Hence, there can be at most new palindromes created on the concatenation of a column to a word in . Note that, this also holds true in the case of HV-palindromes.
As , we deduce the following result from Lemma 5.3.
** Corollary 5.4****.**
Let be a word of size for . Then, the row concatenation of and , where for each creates at most one distinct palindrome of size for some . The result also holds true in the case of HV-palindromes.
We generalize Theorem 5.1 to words of larger sizes.
** Theorem 5.5****.**
The upper bound of the number of HV-palindromes in any D word of size for is
[TABLE]
Proof.
We prove the result by induction on . The base case for is clear from Corollary 5.2. Assume the result to be true for . Let be a word of size . Then by induction, the number of HV-palindromes in the prefix of size is bounded above by . On the concatenation of the column, new palindromes of size for can be created.
Consider any prefix of of size say for . As a suffix of these , by Lemma 5.3, only one extra HV-palindrome of size for each such that can be created. We observe that as a suffix of each of these , an HV-palindrome of size and an HV-palindrome of size for and can not be both newly formed as then the HV-palindrome with less number of rows will be present as the sub-word of the other one. Hence, there can be at most new HV-palindromes formed on the concatenation of the column. Thus, the maximum number of HV-palindromes in any D word of size is
[TABLE]
Solving the recurrence relation for even and odd values of and with initial condition , we have
[TABLE]
Hence, the result holds for and thus, the result follows by induction for . ∎
Table depicts the maximum number of distinct non-empty HV-palindromic sub-arrays in any binary word of size for larger values of and obtained by a computer program along with our obtained upper bound.
It can be observed that the upper bound obtained in Theorem 5.5 is close to the actual values.
5.2. Palindromic sub-arrays in a 2D palindrome
It was proved in [1] that the maximum number of palindromes in a D word is and is an example of a palindrome that achieves it.
In this section find the maximum number of palindromes in a D palindrome and the maximum number of HV-palindromes in a HV-palindrome of size . We recall the following result from [23].
** Theorem 5.6****.**
In a word of size ,
- (1)
the maximum number of palindromes in is . 2. (2)
if is a palindrome, then the maximum number of palindromes in is .
We first prove the following.
** Lemma 5.7****.**
The maximum number of palindromes in a palindrome of size is .
Proof.
If is a palindrome of size , then , where . By Theorem 5.6, there are palindromes in . Since, is obtained by concatenating to as the last row, the only new palindromes that are obtained are palindromes of size , . Thus, we just count the palindromes formed by concatenating the last row. By Corollary 5.4, at most such palindromes can be created. Hence, . ∎
Using Theorem 5.6 and Lemma 5.7, we have the following result for the maximum number of palindromes in a palindrome of size .
** Theorem 5.8****.**
The upper bound on the number of palindromes in a D palindrome/HV-palindrome of size for is which is one of the following.
[TABLE]
Proof.
Let be a D palindrome of size . We prove the result using induction on . The cases when and are clear by taking transpose of the words in Theorem 5.6 and Lemma 5.7 respectively. Assume the result to be true for . Let be a palindrome of size . Then, is of the form , where is of size and is a palindrome of size . Note that as is a palindrome and , the palindromes of size for formed by concatenation of and are also formed on concatenation of and . Hence, the number of palindromes in is the sum of palindromes in , the palindromes formed on concatenation of to and the palindromes of size formed on concatenation of to . By Lemma 5.3, at most palindromes are formed on concatenation of to . We just have to count the number of palindromes of size formed by concatenation of to . As is a palindrome, the row of is the reverse of the row of , so, there can be at most distinct palindromes formed of size for . Hence,
[TABLE]
Solving the recurrence relation, with initial conditions of and for even and odd values of , we get the result. ∎
We now find the maximum number of HV-palindromes in an HV-palindrome of size . We first observe the following result by Theorem 5.1 and Corollary 5.4.
** Lemma 5.9****.**
The maximum number of HV-palindromes in a HV-palindrome of size is . The word proves that the bound is tight.
** Corollary 5.10****.**
The upper bound on the number of HV-palindromes/palindromes in a HV-palindrome of size for is which is one of the following.
[TABLE]
Proof.
Following the proofs of Theorems 5.5 and 5.8, the word of size is of the form , where is an HV-palindrome of size , there can be at most palindromes added by concatenating to . We just have to count the palindromes of size for formed in . We get the following recurrence relation
[TABLE]
which gives the result. ∎
Note that the bounds in Corollary 5.10 are equal to that of Theorem 5.5 for even values of and are less than that of Theorem 5.5 for odd values of .
5.3. On the least number of HV-palindromes
In this section, we find the least number of non-empty distinct palindromes in a D infinite word with .
A D infinite word is an infinite sequence of symbols. It was proved in [9] that there are at least palindromes in an infinite D word. A D infinite word is an array with infinite rows and columns. We recall the following result on the least number of D palindromes in an infinite D word from [24].
** Theorem 5.11****.**
The least number of D palindromes in an infinite D word is
[TABLE]
We have the following result for HV-palindromes.
** Theorem 5.12****.**
The least number of HV-palindromes in an infinite D word is
[TABLE]
Proof.
Let be a D infinite word with . We have the following.
- •
Case 1: If , then , where . This word has infinite HV-palindromes: for .
- •
Case 2: If , then let be a binary word on . It was shown in [9], that any finite D binary word of length greater than , has at least palindromic factors. All these palindromes are HV-palindromes. Since every infinite D word must have at least HV-palindromes, every row and column of has at least HV-palindromes. The only palindromes that can be common to both are the trivial palindromes i.e. and . Thus, has at least horizontal and vertical non-trivial HV-palindromes. Thus, any D infinite binary word has at least HV-palindromes. We give an example of the word that achieves the bound. Let and be the -cyclic shift of for and . Note that, for the given , has exactly HV-palindromes: where . As there is no palindrome of size or for in , thus, there are only HV-palindromes in which is the required word.
- •
Case 3: If , where , then there are at least trivial HV-palindromes. We give a word with exactly HV-palindromes. Let and
[TABLE]
Then, the word has HV-palindromes:
∎
As the palindromes when in the above theorem are all trivial, we find the least number of HV-palindromes in an infinite D word with at least one non-trivial HV-palindrome such that .
** Theorem 5.13****.**
The least number of HV-palindromes in an infinite D word with that has at least one non-trivial HV-palindrome is \begin{cases}5,&\text{if q=3},\\ q+1,&\text{if q>3}.\end{cases}
Proof.
Let be a D infinite word with . We have the following cases.
- •
Case 1: If , then consider an infinite D word with exactly one non-trivial HV-palindrome. We observe that this non-trivial HV-palindrome should occur as a sub-word and is of one of the forms or their transpose where . If i.e , then we cannot construct a sub-word of size with the above as prefixes with only one non-trivial HV-palindrome. Hence, there is no infinite D word with exactly one non-trivial HV-palindrome when . Thus, we construct an infinite D word with exactly two non-trivial HV-palindromes such that . Let for . It has only two non-trivial HV-palindromes and . Thus, the least number of HV-palindromes in an infinite D word with that has at least one non-trivial HV-palindrome is .
- •
Case 2: If , for , then the least number of HV-palindromes in an infinite D word with at least one non-trivial HV-palindrome should be greater than or equal to . We give the existence of such a word with exactly HV-palindromes. Let for
[TABLE]
Here, has one non-trivial HV-palindrome along with trivial palindromes.
∎
6. Conclusions
HV-palindromes is a special class of D palindromes in which every row and column is a D palindrome. We witnessed certain important combinatorial properties by investigating the structure of an HV-palindrome. We have an affirmative answer to the conjecture proposed in [3] for the maximum number of HV-palindromes in a word of size and a generalization for a word of size . We also analyzed the least number of HV-palindromes in an infinite D word. In future, it will be interesting to study and compare the properties of D palindromes and HV-palindromes/D palindromes.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J. P. Allouche, M. Baake, J. Cassaigne, and D. Damanik. Palindrome complexity. Theoretical Computer Science , 292(1):9–31, 2003.
- 2[2] A. Amir and G. Benson. Two-dimensional periodicity in rectangular arrays. SIAM Journal on Computing , 27(1):90–106, 1998.
- 3[3] M. C. Anisiu and V. Anisiu. Two-dimensional total palindrome complexity. Annals of the Tiberiu Popoviciu Seminar of Functional Equations, Approximation and Convexity ISSN 1584-4536 , 6:3–12, 2008.
- 4[4] M. C. Anisiu, V. Anisiu, and Z. Ksa. Total palindromic complexity of finite words. Discrete mathematics , 310:109–114, 2010.
- 5[5] V. P. K. Anne and L. Q. Zamboni. Palindromes and pseudo-palindromes in episturmian and pseudo-palindromic infinite words. In Words 2005 – 5th International Conference on Words , volume 36, pages 91–100. Publications du La CIM, 2005.
- 6[6] V. Berthé and L. Vuillon. Palindromes and two-dimensional Sturmian sequences. Journal of Automata, Languages and Combinatorics , 6(2):121–138, 2001.
- 7[7] A. de Luca and A. D. Luca. Pseudopalindrome closure operators in free monoids. Theoretical Computer Science , 362(1):282–300, 2006.
- 8[8] F. De Natale, D. Giusto, and F. Maccioni. A symmetry-based approach to facial features extraction. In Proceedings of 13 t h superscript 13 𝑡 ℎ 13^{th} International Conference on Digital Signal Processing , volume 2, pages 521–525, 1997.
