Abstract
In this paper, we investigate cyclic codes over the ring E of order 4 and characteristic 2 defined by generators and relations as This is the first time that cyclic codes over the ring E are studied. Each cyclic code of length n over E is identified uniquely by the data of an ordered pair of binary cyclic codes of length We characterize self-dual, left self-dual, right self-dual, and linear complementary dual (LCD) cyclic codes over We classify cyclic codes of length at most 7 up to equivalence. A Gray map between cyclic codes of length n over E and quasi-cyclic codes of length over is studied. Motivated by DNA computing, conditions for reversibility and invariance under complementation are derived.
MSC:
94B15; 16D10
1. Introduction
Cyclic codes over finite fields [1] and finite rings [2], form the most popular class of algebraic codes for both theoreticians and engineers. The well-known reason is their representation as ideals over the polynomial ring where x is a formal variable and A the code alphabet (a finite ring or a finite field in the above references). The ring being principal, each ideal in that ring is uniquely characterized by a polynomial say, called the generator polynomial. However, if the alphabet ring is non-unitary (without a unit element for multiplication) this approach does not function since the ring cannot be defined for lack of the element in
In this paper, we study cyclic codes over the nonunitary ring E defined by generators and relations from the standpoints of duality, classification, and Gray map. This is the first time that cyclic codes over the ring E are studied. In a companion paper [3], cyclic codes over the ring H in the classification of [4] were considered. Since E is a local ring, and H is only semilocal with two maximal ideals, the difference in the algebraic structure of the codes over these rings is such that different algebraic techniques are required. Specifically, we characterize the cyclicity of an E-code in terms of the cyclicity of its residue and torsion codes. The theory of duality of cyclic E-codes is studied. Both the quasi self-dual codes (QSD) of [5] and the self-dual codes in the sense of [6] are considered. The notion of Type IV codes of [5] (i.e., both QSD and with codewords of even Hamming weight) also enters the discussion. The concept of Linear Complementary Dual codes (shortly LCD codes) introduced by Massey [7] for codes over finite fields, and revisited over E in [6] is also considered here. A duality-preserving Gray map, that associates with cyclic codes over E a quasi-cyclic code of double the length over the binary field is introduced and studied. Motivated by DNA computing a different notion of complementation was introduced in [8]. We derive necessary and sufficient conditions for a cyclic E-code to be invariant under that permutation of With the same motivation, necessary and sufficient conditions for reversibility of cyclic codes over E are derived here. All the above notions are illustrated by a complete classification in length at most
2. Preliminaries
2.1. Binary Codes
The Hamming weight of is denoted by is the number of nonzero coordinates in x. The dual of a binary linear code C is signified by and defined as:
where , denotes the standard inner product. If the code C appears in its duality, , then the code C is self-orthogonal. A code is even if all its codewords have even weight. All binary self-orthogonal codes are even, but not all binary codes are self-orthogonal. Two binary codes are equivalent if there is a permutation of coordinates that maps one to the other.
A linear code C of length n over is cyclic provided that for each vector in C the vector , obtained from c by the cyclic shift of coordinates , is also in C. We refer to as the cyclic shift of
2.2. Rings and Modules
Following [4], we define a ring on two generators by their relations
A model for that ring can be obtained by taking to be matrices over defined by
Thus, E has characteristic two and consists of four elements with From these definitions, the addition table is given below
| + | 0 | a | b | c |
| 0 | 0 | a | b | c |
| a | a | 0 | c | b |
| b | b | c | 0 | a |
| c | c | b | a | 0 |
The multiplication table is as below.
| × | 0 | a | b | c |
| 0 | 0 | 0 | 0 | 0 |
| a | 0 | a | a | 0 |
| b | 0 | b | b | 0 |
| c | 0 | c | c | 0 |
From this table, we conclude that this ring is non-commutative, and does not contain a multiplicative identity element. It is local with maximal ideal and residue field , the finite field of order 2.
Thus we have a c-adic decomposition as follows. Every element can be written
where and where we have defined a natural action of on E by the rule and for all Thus and Note, that for all this action is “distributive” in the sense that where denotes the addition in
Denote by the map of reduction modulo J. Thus and This map is extended in a natural way in a map from to
A linear E-code C of length n is an E-submodule of . An additive code of length n over is an additive subgroup of It is a free module with elements for some . Using a generator matrix such a code can be cast as the -span of its rows. To every linear E-code C is attached an additive -code by the alphabet substitution
where = Note, that the reverse substitution attaches to every additive code an additive subgroup of , which may or may not be linear. Two E-codes are permutation equivalent if there is a permutation of coordinates that maps one to the other.
2.3. Duality
Define an inner product on as
The right dual of C is the right module defined by
The left dual of C is the left module defined by
Thus the left (resp. right) dual of a left (resp. right) module is a left (resp. right) module. A code is left self-dual (resp. right self-dual) if it is equal to its left (resp. right) dual. A left self-dual code C satisfies Likewise a right self-dual code C satisfies
There are two binary linear codes of length n associated canonically with every linear code C of length n over E:
- the residue code defined by
- the torsion code defined by
The inclusion is satisfied by the two binary codes, and the relationship between their sizes and C’s size is Let and The linear code C is said to be of type We say that a linear code is free if and only if Equivalently, C is free if and only if
3. The Structure of Cyclic Codes over
Definition 1.
A cyclic code C of length n over E is a linear code with the property that if ∈C then ∈C.
Example 1.
The repetition code of length 2, defined by is a cyclic code over E.
To prepare for the study of cyclic codes over E, we need the following two results.
Lemma 1
(Lemma 1 in [6]). If C is a linear code of length n over E, then
Theorem 1
(Theorem 7 in [6]). If C is a linear code of length n over E, then
The following result can be deduced from the previous theory.
Corollary 1.
If C is a linear binary cyclic code of length n over E and let and are two binary cyclic codes of length n over E with generators and , respectively, then a generator matrix G of C is of the form
where and are generators matries of and , respectively.
Proof.
The proof is direct from Theorem 4.2.1 in [9] and Theorem 1. □
The following result is of crucial importance to our study.
Theorem 2.
A linear code C over E is a cyclic code if and only if and are cyclic codes over .
Proof.
If C is a cyclic code over we want to show that and are both cyclic. Let then and since C is cyclic this implies that then we obtain and this means is cyclic. Let then and as C is cyclic this implies that then we have and we conclude is cyclic. Conversely, If and are cyclic then a and c are cyclic. We need to prove that is cyclic. Let then . Hence, C is cyclic. □
In the following two examples, we make it clear that in the case of only one of or is cyclic, it does not necessarily follow that C is cyclic.
Example 2.
Let and be linear codes over . We note that and is not cyclic, but is cyclic. Indeed it can be seen by inspection that C is not cyclic since
Example 3.
Let and be linear codes over . Here is cyclic, but is not cyclic. This implies that C is not cyclic.
To prepare for the study of left self-dual, right self-dual and self-dual cyclic codes over E, we need the following two lemmas on the duality of E-codes.
Lemma 2
(Corollary 4 in [6]). If C is a linear code of length n over E, then the following holds:
- 1.
- 2.
Lemma 3
(Corollary 5 in [6]). If C is a linear code over E, then
The consequence for cyclic codes is the following.
Corollary 2.
If C is a cyclic code over E, then the left dual code of C is also cyclic.
Proof.
By Lemma 2, we obtain Since the dual code of binary cyclic code is also cyclic. So by Theorem 2, we obtain the result. □
Corollary 3.
If C is a cyclic code over E, then the right dual code of C is also cyclic.
Proof.
By Lemma 2, we obtain Since the dual code of binary cyclic code is also cyclic. So by Theorem 2 and the fact that is a cyclic code, we obtain the result. □
Corollary 4.
If C is a cyclic code over E, then the dual code of C is also cyclic.
Proof.
By Lemma 3, we obtain Since the dual code of binary cyclic code is also cyclic. So by Theorem 2, we obtain the result. □
To prepare for the study of the existence of cyclic self-dual codes over E we need the following two results.
Theorem 3
(Theorem 14 in [6]). If C is a linear code of length n over E, then the following holds:
- C is the left self-dual if and only if C is free and is self-dual.
- C is the right self-dual if and only if C is of type .
Corollary 5
(Corollary 11 in [6]). Let C be a linear code of length n over E. If C is either left self-dual or right self-dual, then C is self-dual.
From the previous two results we conclude the following,
Proposition 1.
Cyclic self-dual codes of all lengths exist over E.
Proof.
For any length is a binary cyclic code. By Theorems 2 and 3, is a cyclic right self-dual code over By Corollary 4, C is a cyclic self-dual code. □
Some scholars would consider to be a trivial example of a cyclic code. An answer to that remark might be the following
Proposition 2.
Nontrivial cyclic self-dual codes of all even lengths exist over E.
Proof.
If n is even, binary self-dual cyclic codes exist. We can construct a free code C over E with that is self-dual. Self-duality follows then by combining Theorem 3 and Corollary 4. Nontriviality follows because the residue code is not the zero code. □
We require the following general result.
Theorem 4
(Theorem 15 in [6]). A linear code C over E is self-dual if and only if
The next result is known as the multilevel construction.
Theorem 5.
Let B be a binary cyclic self-dual code of length n over E. The code C as defined by the relationship is a cyclic self-dual code. Its residue code is B and its torsion code is
Proof.
First, we want to show that C is a linear code over E. Let then where and
Hence, C is closed under addition, by linearity of
Second, we want to prove that C is self-dual. Since and i.e., then by Theorem 4 C is self-dual.
Finally, based on Theorem 2 and Corollary 3, and given that both B and are cyclic then we conclude that C is also cyclic code over □
LCD codes over E are characterized as follows.
Theorem 6
(Theorem 17 in [6]). Let C be a linear code of length n over E. The following hold:
- If C is LCD, then and are binary LCD codes.
- If C is free and is a binary LCD code, then C is LCD.
The following results follow immediately by Theorems 2 and 6.
Corollary 6.
Let C be a cyclic code over E, then C is an LCD cyclic code if and are LCD cyclic codes.
Corollary 7.
Let C be a cyclic code over E, then C is the LCD cyclic code if C is free and is the LCD cyclic code.
4. Gray Map
Any codeword of E can be expressed as , where are generators for the ring E and are arbitrary elements in The Lee weights of are 0, 1, 1, 2, respectively. The Gray map from E to is given by The Gray map is a bijection. This map can be extended to in a natural way. For any , where we define where Then, is a weight-preserving map from (, Lee weight) to (, Hamming weight), that is .
Example 4.
Let c where and are binary codes generated by and then . Therefore, and we can write the code C like this Hence,
Example 5.
Let c where and are binary codes generated by and is Reed-muller code generated by then
Hence
We characterize the Gray image of a linear E-code as the Plotkin sum (a.k.a. construction [1]) of its residue and torsion codes.
Theorem 7.
Let C be a linear code of length n over E. Then, and
Proof.
Let . Then, using Theorem 1, we have where and . By definition of we have and . Therefore, and .
On the other hand, for any and we have and By lineartiy of C, and thus Hence, and Therefore, and Hence, and □
Corollary 8.
Let C be a linear code of length n over E and and Then, and
Proof.
Follows directly from Lemma 3 and Theorem 7. □
We need to prove the following proposition using Theorem 3 in order to be ready to explore the relationship between duality and the Gray map.
Proposition 3.
Let be the dual code of C over E. If C is a left self-dual code over E then
Proof.
For any , where , we can obtain that which means .
On the other hand, let and where , we can obtain that which means . Hence, . □
From the previous proposition, we can conclude the following directly.
Corollary 9.
If C is left self-dual over E then is self-dual.
As for the previous proposition, the following example shows that it does not apply to self-dual and to right self-dual in this case.
Example 6.
The code is self-dual and right self-dual, then . As C is self-dual . Since . Therefore,
We may create a new code from a code and a code , both with the same lengths. This new code is composed of all vectors , where and .
From Theorem 33 in [1], we can infer the following conclusion.
Corollary 10.
If C is a linear E-code with residue and torsion codes as said above then is a code.
Example 7.
If C is such that its residue and torsion codes are the Simplex and Hamming codes of respective parameters and for some integer then is a code.
Theorem 8.
Let C and D be two linear codes over The codes and are permutation equivalent if and only if C and D are permutation equivalent.
Proof.
⇔ Since and are permutation equivalent then there exists a permutation matrix P such that and . Since C and D are two linear codes over by Theorem 1. We have and This implies that . Hence, C and D are permutation equivalent. □
Proposition 4.
If C and D are two linear codes over E, such that then .
Proof.
Since we know that and Hence, we have □
To prepare for the study of the symmetry of Gray images, we need the following Definition.
Definition 2.
Let be the
quasi-cyclic shift
on given by: . A quasi-cyclic
code C of index s and length over is a subset of such that
Proposition 5.
Let λ be the Gray map defined above, σ is the cyclic shift and is the quasi-cyclic shift on . Then, we have
Proof.
Let where and for Therefore, we have
and
Hence, □
Theorem 9.
If C is a cyclic code of length n over E, then is a binary quasi-cyclic code of index 2 and length .
Proof.
As C is a cyclic code of length n over then By taking for both sides and using Proposition 5, we obtain: This implies that is a binary quasi-cyclic code of index 2 and length . □
Considering as the permuted version of the above Gray map , we define as follows:
where and for .
In the next results, we extend a few results from [10]
Proposition 6.
For any we have where Λ is the map defined in Equation (1) and σ is the cyclic shift.
Proof.
Let where and for Then
and
Hence, □
Theorem 10.
Let C be a cyclic code of length n over E. Then, is equivalent to a 2-quasicyclic code of length over
Proof.
As C is a cyclic code of length n over By taking for both sides and using Proposition 6, we obtain: This implies that is equivalent to a 2-quasicyclic code of length over . □
The following proposition discusses the special case if n is an odd. We applied Theorem 1 from [11] in the next proposition.
Proposition 7.
Let be a binary cyclic code of length n (odd) with generator and let be a binary cyclic code of length n with generator and . Then, the Gray image is a binary cyclic code of length with generator is equivalent to the sum of and .
The following simple example illustrates the previous proposition.
Example 8.
Let C be a linear cyclic code of length 3 over E with a generator matrix
where is a binary cyclic code of length 3 generated by and is a binary cyclic code of length 3 generated by . Then,
is binary cyclic code of length 6.
5. Cyclic DNA Codes over
The goal of DNA coding theory is to provide error-correcting codes for nucleic acid systems. Deoxyribonucleic acid, or DNA, is a molecule made up of four units termed nucleotides: adenine, thymine, guanine, and cystosine, represented by the letters A, T, G, and C, respectively. These four units are combined to form double strands. Chains of these nucleotides are connected by hydrogen bonds, holding them together. G and C have three hydrogen bonds, whereas A and T have two. As a result, these joints form the complementary base pairings and . The Watson–Crick complement is what it is known as. We express it as and , or alternatively as and . Therefore, the set is a bijection of this complement map.
Definition 3
([8]). Let be given (i.e., .
- The of x, denoted by , is the codeword .
- The of x, denoted by , is the codeword .
- The of x is .
Theorem 11.
Let C be a linear code over E then C is reversible code over E if and only if and are reversible codes over .
Proof.
If C is a reversible code over we want to prove that and are both reversible. Let then and since C is reversible this implies that then we obtain and this means is reversible. Let then and as C is reversible this implies that then we have and we conclude is reversible. Conversely, If and are reversible then a and c are reversible. We need to show that a ⊕c is reversible. Let a ⊕c then a ⊕c . Hence, C is reversible. □
In the following remark, we recall the conditions for binary cyclic codes to be reversible.
Remark 1.
Let denote the reciprocal of a polynomial of If and are cyclic codes over with generators polynomials and , respectively, then they are LCD codes if and only if and and all the monic irreducible factors of and have same multiplicity in [12]. In particular, for n odd, and are LCD codes if and only if they are reversible codes [13].
Lemma 4.
Let C be a cyclic code over E then C is a reversible code over E if and only if and are cyclic reversible codes over .
Proof.
By combining Theorem 11 and Remark 1 we obtain the result. □
Maps that make it simple to compute the complement must be defined before building DNA codes over rings. This implies that the definition of the complement map must be over finite rings.
Definition 4
([8]). Let R be a ring of order 4 and be a proper representation map. It means f is bijective. A complement map ϕ over R is a bijection defined by .
Since and , we can verify that and . is indicated by . Since this is a bijection on R, defining this map is simple. Whether there is a straightforward definition of is the question. In particular, we wish to define an element such that .
Denote by , the map of reduction modulo J. Thus, and . Let define by , , and . Then, , and the others go to 0.
In the following theorem, we will define the basic condition for the code to be equal to its complement.
Theorem 12.
Let C be a linear code over This code is invariant under complementation () iff the code contains the all-one codeword.
Proof.
The condition is necessary since where j denotes the all-one vector. We prove the sufficient condition. Since we want to prove that . Note, first that if contains j then and, therefore,
We compute
Since the map is one-to-one we see that Hence, □
6. Numerical Results
In the following, we classify, up to equivalence, Cyclic codes up to length 7. All the computations needed for this section were performed in Magma [14].
The generator matrices of the classified cyclic codes n = 6 and n = 7 can be found at: https://www.kau.edu.sa/GetFile.aspx?id=317363&fn=Gen (accessed on 29 April 2024).
We use the following steps to classify cyclic codes up to length 7 over the ring E:
- The binary cyclic codes with lengths ranging from to were initially identified.
- Second, all pairs of cyclic codes were considered. The choice and was made to construct a cyclic code C over
- Third, we may build the generator matrices for the cyclic codes on the ring E after determining and .
- Finally, we will just include the non-equivalent codes in the tables that follow.
6.1. Length 2 (5 Codes)
In Table 1 the main properties of length 2 are summarized.
Table 1.
Cyclic codes of length 2.
6.2. Length 3 (8 Codes)
In this length codes neither left self-dual nor Type IV. And In Table 2 the main properties of length 3 are summarized.
Table 2.
Cyclic codes of length 3.
6.3. Length 4 (14 Codes)
In this length codes are not left self-dual except for the sixth, codes are not Type IV except for the sixth and seventh and codes are not LCD except for the fourteenth. Also, in Table 3 and Table 4 the main properties of length 4 are summarized.
Table 3.
Cyclic codes of length 4.
Table 4.
Cyclic codes of length 4.
6.4. Length 5 (Eight Codes)
In this length codes neither left self-dual nor Type IV, codes are not QSD except for the fourth and codes are not Even except for the third. Also, in Table 5 and Table 6 the main properties of length 5 are summarized.
Table 5.
Cyclic codes of length 5.
Table 6.
Cyclic codes of length 5.
6.5. Length 6 (35 Codes)
In this length codes are not left self-dual except , codes are not QSD except , , and , codes are not Type IV except and and codes are not LCD except , and . Also, in Table 7 and Table 8 the main properties of length 6 are summarized.
Table 7.
Cyclic codes of length 6.
Table 8.
Cyclic codes of length 6.
6.6. Length 7 (26 Codes)
In this length, we have 18 equivalent codes, and they are equivalent to , equivalent to , equivalent to , equivalent to , equivalent to , equivalent to , equivalent to , equivalent to and finally equivalent to . In this length codes neither left self-dual nor Type IV, codes are not QSD except , and , codes are not Even except , , , and and codes are not LCD except , and . In the Table 9, we will only list the non-eqivalent codes.
Table 9.
Cyclic codes of length 7.
7. Conclusions and Open Problems
In this work, we have studied cyclic codes over the non-unital ring We have given criteria for a cyclic code over E to be self-dual, left self-dual, or right self-dual. We have derived an algorithm to classify cyclic codes of a given length, based on the classification of cyclic binary codes of that length. A Gray map allows us to construct quasi-cyclic codes of index 2 from cyclic codes over In the future, we plan to study the same questions over other non-unitary rings, possibly of characteristics larger than
Author Contributions
Conceptualization, A.A.; Methodology, M.A.; Investigation, M.A. and P.S.; Supervision, A.A. and P.S.; Funding acquisition, A.A. This article was written in equal co-authorship. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by The Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia OF FUNDER grant number (KEP-PhD: 100-130-1443).
Data Availability Statement
All computations conducted in this paper are available upon request from the authors.
Acknowledgments
The Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia has funded this project, under grant no. (KEP-PhD: 100-130-1443).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- MacWilliams, F.J.; Sloane, N.J.A. The Theory of Error Correcting Codes; Elsevier: Amsterdam, The Netherlands, 1977; Volume 16. [Google Scholar]
- Shi, M.; Alahmadi, A.; Solé, P. Codes and Rings: Theory and Practice; Academic Press: Cambridge, MA, USA, 2017. [Google Scholar]
- Alahmadi, A.; Altaiary, M.; Solé, P. Cyclic codes over a non-local non-unital ring. Mathematics 2024, 12, 866. [Google Scholar] [CrossRef]
- Fine, B. Classification of finite rings of order p2. Math. Mag. 1993, 66, 248–252. [Google Scholar] [CrossRef]
- Alahmadi, A.; Altassan, A.; Basaffar, W.; Shoaib, H.; Bonnecaze, A.; Solé, P. Type IV codes over a non-unital ring. J. Algebra Its Appl. 2022, 1, 2250142. [Google Scholar] [CrossRef]
- Alahmadi, A.; Melaibari, A.; Solé, P. Duality of codes over non-unital rings of order four. IEEE Access 2023, 11, 53120–53133. [Google Scholar] [CrossRef]
- Massey, J.L. Linear codes with complementary duals. Discret. Math. 1992, 106, 337–342. [Google Scholar] [CrossRef]
- Kim, J.L.; Ohk, D.E. DNA codes over two noncommutative rings of order four. J. Appl. Math. Comput. 2022, 68, 2015–2038. [Google Scholar] [CrossRef]
- Huffman, W.C.; Pless, V. Fundamentals of Error-Correcting Codes; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
- Kom, S.T.T.; Ratnabala Dev, O. Identifying cyclic and (1 + 2v)-constacyclic codes over [v]/< v3 − 1> with -linear codes. TWMS J. App. and Eng. Math. 2023, 13, 951–962. [Google Scholar]
- Van Lint, J.H. Repeated-root cyclic codes. IEEE Trans. Inf. Theory 1991, 37, 343–345. [Google Scholar] [CrossRef]
- Yang, X.; Massey, J.L. The condition for a cyclic code to have a complementary dual. Discret. Math. 1994, 126, 391–393. [Google Scholar] [CrossRef]
- Massey, J.L. Reversible codes. Inf. Control. 1964, 7, 369–380. [Google Scholar] [CrossRef]
- Bosma, W.; Cannon, J.; Playoust, C. The Magma algebra system I: The user language. J. Symb. Comput. 1997, 24, 235–265. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).