5.2. Reversible and Reversible-Complement Codes over R
This subsection is dedicated to the study of cyclic codes over
R, which satisfy the reversible constraint and reversible-complement constraint. Bayram et al. [
22] considered the same ring
and discussed the reversible constraint and reversible-complement constraint. Here, we also have considered the same ring but we use a different approach to prove these constraints than Bayram et al. [
22].
In the above subsection, we have defined a bijection map between
and
. This map can be extended naturally from
R to
by considering the Gray images of elements of
R from Gray map
defined in
Section 3. For example, the Gray image of
is
. Since
over
, then
can be identified with
. By this identification, we get a one-to-one correspondence between the elements of
R and
. The correspondence from
R to
is denoted by
and defined in
Table 1.
By WCC, we have and . We can extend this notation to the elements of such as .
Definition 6. Let be a linear code of length β over R and . We define For example, is mapped to .
Now we present some relation between cyclic codes and reversible codes over R.
Theorem 10. Let be a cyclic code of length β over R. Then is reversible over R if and only if and are reversible over .
Proof. Suppose
is reversible over
R and
, where
, for
and
. Then
, where
and
. Notice that
Since
is reversible over
R, then
, and
. Which implies
and
. Thus,
and
are reversible over
.
Conversely, suppose that and are reversible over . By considering the above notations, we have and . Since , then is reversible over R. □
To illustrate the above result, we present an example.
Example 2. Let , where and .Consider and . Then and are cyclic codes of length 5 over . By Theorem 3, is a cyclic code of length 5 over R. As and are self-reciprocal polynomials, so by Lemma 6, and are reversible over . Hence, by Theorem 10, is reversible over R. Example 3. Let , where and .Consider and . Then and are cyclic codes of length 13 over . By Theorem 3, is a cyclic code of length 5 over R. As and are self-reciprocal polynomials, so by Lemma 6, and are reversible over . Hence, by Theorem 10, is reversible over R. From
Table 1, we obtain next useful lemma. This lemma is used in determining reversible- complement property on cyclic codes over
R.
Lemma 8. For any , we have .
Theorem 11. Let be a cyclic code of length β over R. Then is reversible-complement over R if and only if and is reversible over R.
Proof. Suppose
is reversible-complement over
R and
. Then
. Since
is a linear code, then we have
, which implies
. By using Lemma 8, we get
Since
is linear as well as reversible-complement, then we get
. Hence,
is reversible over
R.
Conversely, suppose
and
is reversible. Then for any
, we get
. Again by Lemma 8, and linearity of
, we get
Hence,
is reversible-complement over
R. □
To illustrate the above results, we present some examples.
Example 4. Let , where .Let . Then are cyclic codes of length 3 over , for . By Theorem 3, is a cyclic code of length 3 over R. As and are self-reciprocal polynomials, hence by Lemma 6, are reversible over , for . Therefore, by Theorem 10, is reversible over R. Further, has codewords. The corresponding DNA codewords obtained by using Table 1, are listed below. Notice that is reversible over R and . Thus, by Theorem 11, is reversible-complement over R. Moreover, by Definition 5, we conclude that is a cyclic DNA code. The image of under the map is a DNA code of length 6, size 16 and minimum Hamming distance 3. The DNA code given in Table 2 is different from the DNA codes of the same length constructed by Zhu et al. [23] and Siap et al. [18]. Example 5. Let , where .Let . Then are cyclic codes of length 5 over , for . By Theorem 3, is a cyclic code of length 5 over R. As and are self-reciprocal polynomials, hence by Lemma 6, are reversible over , for . Therefore, by Theorem 10, is reversible over R. Further, has codewords. The corresponding DNA codewords obtained by using Table 3, are listed below. Notice that is reversible over R and . Thus, by Theorem 11, is reversible-complement over R. Moreover, by Definition 5, we conclude that is a cyclic DNA code. The image of under the map is a DNA code of length 10, size 16 and minimum Hamming distance 5. These codewords are given in Table 3. 5.3. Reversible and Reversible-Complement Codes over S
This subsection is dedicated to the study of cyclic codes over
S, which satisfy the reversible constraint and reversible-complement constraint. We can see that the ring
S has 64 elements. In literature, many researchers [
26,
27,
29] have discussed reversible constraint and reversible-complement constraint over the ring of order 64. In this subsection, we use a different approach to study these constraints over the ring of order 64.
In 2020, Liu et al. [
29] defined a one-to-one correspondence between the elements of the ring of order 64 and DNA alphabets set
by using the Gray images of the elements of the ring. We also define a similar kind of one-to-one correspondence between the elements of
S and
for our study.
The above defined bijection map between
and
can be extended naturally from
S to
by considering the Gray images of the elements of
S from Gray map
defined in
Section 3. For example, the Gray image of
is
. Since
over
, then
can be identified with
. By this identification, we get a one-to-one correspondence between the elements of
S and
. The correspondence from
S to
is denoted by
and defined in
Table 4.
By WCC, we have and . We can extend this notation to the elements of such as .
Definition 7. Let be a linear code of length γ over S and . We definegiven byby using Table 4. For example, is mapped to .
All the results in this subsection have similar proofs to the results discussed in the above subsection, so we omit their proofs.
Theorem 12. Let be a cyclic code of length γ over S. Then is reversible over S if and only if and are reversible over .
To illustrate the above result, we present an example.
Example 6. Let , and .Let and . Then , and are cyclic codes of length 9 over . By Theorem 4, is a cyclic code of length 9 over S. As and are self-reciprocal polynomials, so by Lemma 6, and are reversible over . Hence, by Theorem 12, is reversible over S. Example 7. Let , and .Let and . Then , and are cyclic codes of length 13 over . By Theorem 4, is a cyclic code of length 9 over S. As and are self-reciprocal polynomials, so by Lemma 6, and are reversible over . Hence, by Theorem 12, is reversible over S. From
Table 4, we get the next useful lemma similar to Lemma 8. This result is used in determining reversible-complement property of cyclic codes over
S.
Lemma 9. For any , we have .
Theorem 13. Let be a cyclic code of length γ over S. Then is reversible-complement over S if and only if and is reversible over S.
To illustrate the above result, we present an example.
Example 8. Let , and .Let . Then are cyclic codes of length 3 over , for . By Theorem 4, is a cyclic code of length 3 over S. As and are self-reciprocal polynomials, hence by Lemma 6, are reversible over , for . Therefore, by Theorem 12, is reversible over S. Further, has codewords. The corresponding DNA codewords obtained by using Table 4, are listed below. Notice that is reversible over S and . Thus, by Theorem 13, is reversible-complement over S. Moreover, by Definition 5, we conclude that is a cyclic DNA code. The image of under the map is a DNA code of length 9, size 64 and minimum Hamming distance 3. The DNA code given in Table 5 is different from the DNA code of the same length and size constructed by Dinh et al. [27]. Example 9. Let , and .Let . Then are cyclic codes of length 7 over , for . By Theorem 4, is a cyclic code of length 7 over S. As and are self-reciprocal polynomials, hence by Lemma 6, are reversible over , for . Therefore, by Theorem 12, is reversible over S. Further, has codewords. The corresponding DNA codewords obtained by using Table 6, are listed below. Notice that is reversible over S and . Thus, by Theorem 13, is reversible-complement over S. Moreover, by Definition 5, we conclude that is a cyclic DNA code. The image of under the map is a DNA code of length 21, size 64 and minimum Hamming distance 7. These codewords are given in Table 6. 5.4. Reversible and Reversible-Complement Codes over
In this subsection, we now study reversible constraint and reversible-complement constraint of -cyclic codes.
Let . Then, the reverse of is defined as , the complement of is defined as and the reverse-complement of is defined as .
Definition 8. Let C be a -linear code of block length . Then, C is said to be if for any , , if for any , and if for any , .
Using the results obtained in the above subsections, we now discuss the reversible and reversible-complement constraints of separable -cyclic codes.
Theorem 14. Suppose is a separable -cyclic code of block length , where and are cyclic codes of length and γ over and S, respectively. Then C is reversible if and only if and are reversible over and S, respectively.
Proof. Suppose is reversible and , where , and . Since C is reversible, then we have , which implies and . Thus, and are reversible over and S, respectively.
Conversely, let , where and . Suppose and are reversible over and S, respectively. Then and . Thus, . Therefore, C is reversible. □
Example 10. Let be a separable -cyclic code of block length .Let . Then by Theorem 2, is a cyclic code of length 7 over . As is a self-reciprocal polynomial, hence by Lemma 6, is reversible over . Further, we consider the same as given in Example 2, which is reversible over R and the same as given in Example 6, which is reversible over S. Therefore, by Theorem 14, we get is reversible. In the next result, we discuss the necessary and sufficient conditions for a -cyclic code to be reversible-complement.
Theorem 15. Suppose is a separable -cyclic code of block length , where and are cyclic codes of length and γ over and S, respectively. Then C is reversible-complement if and only if and are reversible-complement over and S, respectively.
Proof. Suppose is reversible-complement and , where and . Since C is reversible-complement, then we have , which implies and . Thus, and are reversible-complement over and S, respectively.
Conversely, let , where and . Suppose and are reversible- complement over and S, respectively. Then and . Thus, . Hence, C is reversible-complement. □
Example 11. Let be a separable -cyclic code of block length .Let . Then by Theorem 2, is a cyclic code of length 3 over . As is self-reciprocal polynomial, not divisible by , hence by Theorem 9, is reversible-complement over . Further, we consider the same as given in Example 5, which is reversible-complement over R and the same as given in Example 8, which is reversible-complement over S. Hence, by Theorem 15, we get is reversible-complement. Therefore, by Definition 5, C is a cyclic DNA code. The image of C under the map Ψ is a DNA code of length 22, size 3072 and minimum Hamming distance 3. Example 12. Let be a separable -cyclic code of block length .Let . Then by Theorem 2, is a cyclic code of length 5 over . As is self-reciprocal polynomial, not divisible by , hence by Theorem 9, is reversible-complement over . Further, we consider the same as given in Example 4, which is reversible-complement over R and the same as given in Example 9, which is reversible-complement over S. Hence, by Theorem 15, we get is reversible-complement. Therefore, by Definition 5, C is a cyclic DNA code. The image of C under the map Ψ is a DNA code of length 32, size 65536 and minimum Hamming distance 3.