The Structure of One Weight Linear and Cyclic Codes Over Z2^r x (Z2+uZ2)^s
Ismail Aydogdu

TL;DR
This paper investigates the structure and classification of one weight linear and cyclic codes over the ring Z2^r x (Z2+uZ2)^s, highlighting their advantages and providing illustrative examples.
Contribution
It introduces a classification of one weight Z2Z2[u]-linear and cyclic codes, expanding understanding of their structure and properties.
Findings
Classified one weight Z2Z2[u]-linear codes.
Analyzed the structure of cyclic codes over the specified ring.
Provided examples illustrating the code classifications.
Abstract
Inspired by the Z2Z4-additive codes, linear codes over Z2^r x(Z2+uZ2)^s have been introduced by Aydogdu et al. more recently. Although these family of codes are similar to each other, linear codes over Z2^r x(Z2+uZ2)^s have some advantages compared to Z2Z4-additive codes. A code is called constant weight(one weight) if all the codewords have the same weight. It is well known that constant weight or one weight codes have many important applications. In this paper, we study the structure of one weight Z2Z2[u]-linear and cyclic codes. We classify these type of one weight codes and also give some illustrative examples.
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.
The Structure of One Weight Linear and Cyclic Codes Over
Ismail Aydogdu 111 Department of Mathematics, Yildiz Technical University, Email: [email protected]
Abstract
Inspired by the -additive codes, linear codes over have been introduced by Aydogdu et al. more recently. Although these family of codes are similar to each other, linear codes over have some advantages compared to -additive codes. A code is called constant weight(one weight) if all the codewords have the same weight. It is well known that constant weight or one weight codes have many important applications. In this paper, we study the structure of one weight -linear and cyclic codes. We classify these type of one weight codes and also give some illustrative examples.
Keywords: One Weight Codes, -linear Codes, Duality.
1 Introduction
In algebraic coding theory, the most important class of codes is the family of linear codes. A linear code of length is a subspace of a vector space where is a finite field of size . When then we have linear codes over which are called binary codes. Binary linear codes have very special and important place all among the finite field codes because of their easy implementations and applications. Beginning with a remarkable paper by Hammons et al. [17], interest of codes over variety of rings have been increased. Such studies motivate the researchers to work on a different rings even over other structural algebras such as groups or modules. A -submodule of is called a quaternary code. The structure of binary linear codes and quaternary linear codes have been studied in details for the last six decades. In 2010, Borges et al. introduced a new class of error correcting codes over the ring called additive codes that generalizes the class of binary linear codes and the class of quaternary linear codes in [8]. A -additive code is defined to be a subgroup of where . If then -additive codes are just binary linear codes, and if then -additive codes are the quaternary linear codes over . -additive codes have been generalized to -additive codes in 2013 by Aydogdu and Siap in [4], and recently this generalization has extended to -additive codes, for a prime , by the same authors in [6]. Later, cyclic codes over have been introduced in [1] in 2014 and more recently, in [13], one weight codes over such a mixed alphabet have been studied. A code is said to be one weight code if all the nonzero codewords of a code have the same Hamming weight where the Hamming weight of an any codeword is defined as the number of its nonzero coordinates. In [9], Carlet determined one weight linear codes over and in [23], Wood studied linear one weight codes over . Constant weight codes are very useful in a variety of applications such as data storage, fault-tolerant circuit design and computing, pattern generation for circuit testing, identification coding, and optical overlay networks [20]. Moreover, the reader can find the other applications of constant weight codes; determining the zero error decision feedback capacity of discrete memoryless channels in [21], multiple access communications and spherical codes for modulation in [14, 15], DNA codes in [18, 19], powerline communications and frequency hopping in [11].
Another important ring of four elements other than the ring , is the ring where For some of the works done in this direction we refer the reader to [2, 3, 12]. It has been shown that linear and cyclic codes over this ring have advantages compared to the ring For an example; the finite field is a subring of the ring So factorization over is still valid over the ring . The Gray image of any linear codes over is always a binary linear codes which is not always the case for .
In this work, we are interested in studying one weight codes over . This family of codes are special subsets of which their all nonzero codewords have the same weight. We investigate and classify both linear and cyclic codes over and also we give some one weight linear and cyclic code examples. Furthermore, we look at the Gray (binary) images of one weight cyclic codes over and get optimal parameter binary codes.
2 Preliminaries
Let be the four-element ring with It is easily seen that the ring is a subring of the ring Then let us define the set
[TABLE]
But we have a problem here, because the set is not well-defined with respect to the usual multiplication by . So, we must define a new method of multiplication on to make this set as an -module. Now define the mapping
[TABLE]
which means; and It can be easily shown that is a ring homomorphism. Furthermore, for any element we can also define a scalar multiplication on as follows.
[TABLE]
This multiplication can be extended to the for and as,
[TABLE]
Lemma 1
* is an module under the multiplication defined above.*
Definition 2
A non-empty subset of is called a -linear code if it is an -submodule of .
Now, take any element then there exist unique such that . Also note that the ring is isomorphic to as an additive group. Therefore, any linear code is isomorphic to an abelian group of the form , where , and are positive integers. Now define the following sets.
[TABLE]
where if then is called free over .
[TABLE]
Therefore, denote the dimension of and as and respectively. Under these parameters, we say that such a -linear code is of type . -linear codes can be considered as binary codes under a special Gray map. For , where and the Gray map define as follows.
[TABLE]
where and .
The minimum distance of a linear code , denoted by is defined by
[TABLE]
The Hamming weight of a codeword , denoted by , is the number of its nonzero coordinates, i.e., where [math] is the zero codeword. The Hamming distance between two codewords is the Hamming weight of their difference and the Lee distance for the codes over is the Lee weight of their differences where the Lee weights of the elements of are defined as and . The Gray map defined above is a distance preserving map which transforms the Lee distance in to the Hamming distance in . Furthermore, for any -linear code we have that is a binary linear code as well. This property is not valid for the -additive codes. And also, we always have
[TABLE]
where is the Hamming of weight of and is the Lee weight of If is a -linear code of type then the binary image is a binary linear code of length and size . It is also called a -linear code. Now, let
[TABLE]
be any two elements. Then we can define the inner product as
[TABLE]
According to this inner product, the dual linear code of a -linear code is also defined in a usual way easily,
[TABLE]
Hence, if is a -linear code, then is also a -linear code.
The standard forms of generator and parity-check matrices of a -linear code is given as follows.
Theorem 3
[5]** Let be a -linear code of type . Then the standard forms of the generator and the parity-check matrices of are:
[TABLE]
[TABLE]
where and are matrices over .
Therefore, we can conclude the following corollary.
Corollary 4
If is a -linear code of type then is of type .
The weight enumerator of an any -linear code of type is defined as
[TABLE]
where, Moreover, the MacWilliams relations for codes over can be given as follows.
Theorem 5
[5]** Let be a linear code. The relation between the weight enumerators of and its dual is
[TABLE]
We have given some information about the general concept of codes over . To make reader understanding the paper easily we give the following example.
Example 6
Let be a linear code over with the following generator matrix.
[TABLE]
We will find the standard form of the generator matrix of and then using this standard form, we find the generator matrix of the linear dual code and also we determine the types of both and its dual.
Now, applying elementary row operations to above generator matrix, we have the standard form as follows.
[TABLE]
Since, is in the standard form we can write this matrix as
[TABLE]
Hence, with the help of Theorem 3 the parity-check matrix of is
[TABLE]
Therefore,
- •
* is of type and has codewords.*
- •
* is of type and has codewords.*
- •
**
- •
.
- •
.
- •
The Gray image of is a binary linear code.
- •
* is a binary linear code.*
3 The Structure of One Weight -linear Codes
In this part of the paper, we study the structure of one weight codes over .
Definition 7
Let be a -linear code. is called a one (constant) weight code if all of its nonzero codewords have the same weight. Furthermore, if the weight of is m then it is called a code with weight m.
Definition 8
Let be any four distinct codewords of -linear code . If the distance between and is equal to the distance between and , that is, , then is said to be equidistant.
Theorem 9
Let be an equidistant -linear code with distance m. Then is a one weight code with weight m. Moreover, the binary image of is also a one weight code with weight m.
Proof. Let . Since is a -linear code, we have . And also, for the binary image , Here, we can also say that a one weight -linear code with weight m is also an equidistant code with distance m.
Example 10
It is worth to note that the dual of a one weight code is not necessarily a one weight code. Also it may be interesting to give in this example a codeword of weight 2. Let be a -linear code of type with . Then and is a one weight code with weight . On the other hand, the dual code is generated by and of type . But and is not a one weight code.
Example 11
Let be a -linear code with the standard form of the generator matrix \left[\begin{array}[]{ccc|cc}1&0&1&0&u\\ \hline\cr 0&1&1&1&1+u\end{array}\right], then is of type and one weight code with weight . Furthermore, is a binary linear code with parameters . Here, note that the binary image of is the binary simplex code of length , which is the dual of the Hamming code.
Now, we give a theorem which gives a construction of one weight codes over .
Theorem 12
Let be a one weight -linear code of type and weight m. Then, one weight code of type with weight exists, where is a positive integer.
Proof. Let be a generator matrix of -linear code of type with weight m, where denotes the first part of and denotes the last part of . We can copy the first part and the last part of the generator matrix as \bar{G}=[\underbrace{G_{r}\cdots G_{r}}_{\text{\gamma times}}|\underbrace{G_{s}\cdots G_{s}}_{\text{\gamma times}}]. Copying the rows of does not change the type but the length of the new code is . Since the weight of any codeword in is m then the new code has the weight .
Definition 13
Let be a -linear code. Let (respectively ) be the punctured code of by deleting the coordinates outside (respectively ). If then is called separable.
Corollary 14
There do not exist separable one weight -linear codes.
Proof. Let be a separable one weight code over . Consider the codeword with weight m. Since is a linear code then we have both and . Hence, and are elements of . If and then and . So, we have a contradiction. As a result, there is no separable one weight -linear code.
Lemma 15
If is a -linear code of type with no all zero columns in the generator matrix of . Then the sum of the weights of all codewords of is equal to .
Proof. Let be a matrix whose rows are all codewords of . Since is a linear code, in the first columns, the number of coordinates containing [math] is equal to the number of coordinates containing . And for the last columns, the column contains either the same number of or the same number of [math] and . Assume that there are columns containing only [math] and in the last columns. So, it remains columns containing . Therefore, the sum of the all codewords of is
[TABLE]
Theorem 16
Let be a one weight -linear code of type such that there are no zero columns in the generator matrix of . Then, if the weight is m, where is a positive integer satisfying . In addition, if m is an odd integer, then is also odd and {\mathcal{C}}=\langle\underbrace{1\cdots 1}_{\text{r times}}|\underbrace{u\cdots u}_{\text{s times}}\rangle.
Proof. Since is a one weight code of weight m then the sum of the weights of all codewords of is . And also we know from the above lemma that , so we have
[TABLE]
Further, since is of type then it is isomorphic to an abelian group then . Also, note that . Hence, there is a positive integer , such that and . Further, in the case where m is odd, then is odd. So, is odd and . Therefore, and . Since m is odd then must be also zero. Because, the subcode generated by the rows of dimension only consists of ’s. So, if then m is even and this is contradiction. Finally, and again since m is odd then is also odd and only codeword that satisfies these conditions is (\underbrace{1\cdots 1}_{\text{r times}}|\underbrace{u\cdots u}_{\text{s times}}).
The following theorem gives a complete classification of dual one weight -linear codes.
Theorem 17
Let be a one weight -linear code of type and weight m. If there is no zero columns in the generator matrix of , then Also, if and only if .
Proof. Since there is no zero columns in the generator matrix of then from Theorem 16, there is a positive integer such that and . We can write the weight enumerator of the one weight linear code as . Therefore, by Theorem 5, the weight enumerator for the dual code is
[TABLE]
Let us calculate the coefficient of as
[TABLE]
Since, , then and . Therefore, we have
[TABLE]
which means there is no codeword with weight in , so .
Now, let the coefficient of be . Considering and , we have
[TABLE]
Therefore, if and only if .
Corollary 18
For , if then
Proof. Let the coefficient of in Equation 2 be . Then,
[TABLE]
Again, considering and (since ), we have
[TABLE]
Since, then , that is, .
We have proved that if is a one weight -linear code of type and weight m then there is a positive integer such that , so the minimum distance for a one weight -linear code must be even. In the following, we characterize the structure of -linear codes.
Theorem 19
Let be a one weight -linear code over with generator matrix and weight m.
- i)
If is an any row of , where and , then the number of units(1 or ) in is either zero or .
- ii)
If and are two distinct rows of , where and are free over , then the coordinate positions where has units (* or ) are the same that the coordinate positions where has units.*
- iii)
If and are two distinct rows of , where and are free over , then .
Proof.
- i)
The weight of is . Since is linear is also in then, if then does not contain units. If , then and therefore, . Hence, the number of units in is .
- ii)
Multiplying and by we have, and . If and have units in the same coordinate positions then we get . So, assume that they have some units in different coordinates. Since is a one weight code with weight m, if then the number of coordinates where and have units in different places must be . To obtain this, the number of coordinates where and has to be , and in all other coordinates where we need , and also in all other coordinates where we need . Hence, consider the vector . This vector has the same weight as in the first coordinates but for the last coordinates, it has in the coordinates where and , so its weight is greater than m. This contradiction gives the result.
- iii)
Let and be two vectors in . The binary parts of these two vectors are the same, and for the coordinates over we know from ii) that and have units in the same coordinate positions, and for the all other coordinates in , the values of and are the same. Therefore, the sum of the weights of the units in must be same in and . So, they also have the same number of coordinates with . But this is only possible if . We also know from i) that the number of units in is , so we have the result.
Theorem 20
Let be a one weight code of type . Then and has the following standard form of the generator matrices. If then
[TABLE]
If then
[TABLE]
where are vectors over
Proof. From Theorem 19 i), we know that any two distinct free vectors have their units in the same coordinate positions. So, if we add the first free row of the generator matrix to the other rows, we have only one free row in the generator matrix. Hence, and considering this and using the standard form of the generator matrix for a -linear code given in Theorem 3, we have the result.
4 One Weight -cyclic Codes
In this section, we study the structure of one weight -cyclic codes. At the beginning, we give some fundamental definitions and theorems about -cyclic codes. This information about -cyclic codes was given in [7], with details.
Definition 21
An -submodule of is called a -cyclic code if for any codeword its cyclic shift
[TABLE]
is also in .
Any codeword can be identified with a module element such that
[TABLE]
in This identification gives a one-to-one correspondence between elements in and elements in
Theorem 22
[7]** Let be a -cyclic code in Then we can identify uniquely as where and and is a binary polynomial satisfying and .
Considering the theorem above, the type of can be written in terms of the degrees of the polynomials and . Let and . Then is of type ([7])
[TABLE]
where and .
Corollary 23
If is a one weight cyclic code generated by with weight m then .
Proof. We know from Theorem 20 that if is a one weight -linear code then , which generates the free part of the code, is less than or equal to . So, in the case where is cyclic, it means that , where . Therefore we have and the polynomial generates the vector with all unit entries and length . If we multiply the whole vector (length) by , then we have a vector with all entries [math] in the first coordinates and all coordinates in the last coordinates. So the weight of this vector is Hence the weight of must be .
Theorem 24
[7]** Let be a cyclic code in where and are as in Theorem 22 and , , .
Let
[TABLE]
[TABLE]
and
[TABLE]
Then forms a minimal spanning set for as a -module.
Let be a one weight cyclic code in . Consider the codewords and . Since is a one weight code, . Further, since is a -submodule, and . Moreover, because of the linearity of . But it is clear that and . Hence, can not generate a one weight code.
Now, let us suppose that is a one weight cyclic code in . We know from Corollary 23 that , and generates a vector of length with all unit entries. Therefore, also must generate a vector over with weight . Hence, to generate such a cyclic one weight code we have two different cases; and .
If then, to generate a vector with weight , the degree of must be . So, generates the codeword (\underbrace{1\cdots 1}_{\text{length s}}|\underbrace{unit\cdots unit}_{\text{length s}}).
Further, if we multiply by we get and it generates codewords of order . Since and the degrees of the polynomials and are we have and . Hence, must generate a vector with weight , i.e, must generate a vector of length with all unit entries. This means that
[TABLE]
Hence we get . But, since we always assume that is an odd integer, is not a factor of and this contradicts with the assumption . So, we can not allow to generate a vector, i.e, we must always choose to obtain . So in the case where is a one weight cyclic code generated by in , we only have is a -cyclic code of type with weight .
In the second case we have . We know that is a one weight cyclic code with weight and generates a vector with exactly nonzero and all unit entries. Let be a codeword of such that and . We can write as
[TABLE]
where . Since is a -submodule we can multiply by , then we have
[TABLE]
Let be another codeword of generated by . Since is a one weight code of weight , we can write w=(\underbrace{b_{0}b_{1}b_{2}\cdots b_{t-1}b_{t}}_{\text{2s-2p nonzero entries }}|\underbrace{u0uu0\cdots uu0u}_{\text{p nonzero entries}}), . Since must be a codeword in , we have
[TABLE]
Therefore, and since is a one weight code with ,
[TABLE]
But this contradicts with our assumption, that is, is an odd integer. Consequently, for and there is no one weight -cyclic code. Under the light of all this discussion, we can give the following proved theorem.
Theorem 25
Let be a -cyclic code in generated by with . Then is a one weight cyclic code of type with weight . Furthermore, there do not exist any other one weight -cyclic code with .
Example 26
Let be a cyclic code in with . Hence, is a one weight code with weight and the following generator matrix,
[TABLE]
5 Examples of One Weight -cyclic Codes
In this part of the paper, we give some examples of one weight -cyclic codes. Furthermore, we look at their binary images under the Gray map that we defined in (1), and we conclude that their binary images are optimal codes. If the minimum distance of any code get the possible maximum value according to its length and dimension, then is called optimal (distance-optimal) or good parameter code.
Let be a -linear code with minimum distance , then we say is a -error correcting code. Since, the Gray map preserves the distances, is also a -error correcting code of length over . Since, , we can write a sphere packing bound for a -linear code . With the help of usual sphere packing bound in ,
[TABLE]
we have
[TABLE]
If attains the sphere packing bound above then it is called a perfect code. Let be a -linear code of type with standard form of the generator matrix
[TABLE]
It is easy to check that attains the sphere packing bound, so is a perfect code. Moreover, the dual code of is generated by the matrix
[TABLE]
and is a one weight -linear code with weight .
Plotkin bound for a code over with the minimum distance is given by,
If , then .
- 2.
If , then .
If attains the Plotkin bound then is also an equidistant code [22]. We can apply this result for a binary images of -linear codes. If the Gray image of a -linear code attains the Plotkin bound, then is a one weight code as well. For an example, the -linear code given by the generator matrix (5) attains the Plotkin bound and also it is a one weight code.
Finally, we will give the following examples of one weight -cyclic codes. We also determine the parameters of the binary images of these one weight cyclic codes. Further we list some of optimal binary codes in Table 1 which we derived from one weight -cyclic codes via the Gray map.
Example 27
Let be a -cyclic code in generated by where
[TABLE]
Then is a one weight code with weight and following generator matrix
[TABLE]
Furthermore, the binary image of is a code, which is a binary optimal code [16].
Example 28
The -cyclic code in is a one weight code with , where . has the generator matrix of the form,
[TABLE]
The Gray image of is an optimal binary linear code.
Example 29
Let , , be a cyclic code in . Then the generator matrix of is
[TABLE]
* is a one weight code with and is a binary code which is optimal.*
[TABLE]
6 Conclusion
In this paper, we study the one weight linear and cyclic codes over where . We also classify this family of codes and present some illustrative examples. We also obtain optimal parameter binary codes derived from the Gray images of one weight -cyclic codes.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Abualrub, T., Siap, I. and Aydin, N., ℤ 2 ℤ 4 subscript ℤ 2 subscript ℤ 4 \mathbb{Z}_{2}\mathbb{Z}_{4} -additive cyclic codes , IEEE Trans. Inf. Theory, vol. 60, no. 3, pp. 1508-1514, Mar.2014.
- 2[2] Abualrub, T. and Siap, I., Cyclic codes over the rings ℤ 2 + u ℤ 2 subscript ℤ 2 𝑢 subscript ℤ 2 \mathbb{Z}_{2}+u\mathbb{Z}_{2} and ℤ 2 + u ℤ 2 + u 2 ℤ 2 subscript ℤ 2 𝑢 subscript ℤ 2 superscript 𝑢 2 subscript ℤ 2 \mathbb{Z}_{2}+u\mathbb{Z}_{2}+{u}^{2}\mathbb{Z}_{2} , Designs Codes and Cryptography, vol.42, no. 3, pp. 273-287, 2007.
- 3[3] Al-Ashker, M. and Hamoudeh, M., Cyclic codes over ℤ 2 + u ℤ 2 + u 2 ℤ 2 + ⋯ + u k − 1 ℤ 2 subscript ℤ 2 𝑢 subscript ℤ 2 superscript 𝑢 2 subscript ℤ 2 ⋯ superscript 𝑢 𝑘 1 subscript ℤ 2 \mathbb{Z}_{2}+u\mathbb{Z}_{2}+{u}^{2}\mathbb{Z}_{2}+\cdots+{u}^{k-1}\mathbb{Z}_{2} , Turk. J. Math., vol.35, pp. 737-749, 2011.
- 4[4] Aydogdu, I. and Siap, I., The Structure of ℤ 2 ℤ 2 s − limit-from subscript ℤ 2 subscript ℤ superscript 2 𝑠 \mathbb{Z}_{2}\mathbb{Z}_{2^{s}}- Additive Codes: Bounds on the minimum distance , Applied Mathematics and Information Sciences(AMIS), vol. 7, no. 6, pp. 2271-2278, 2013.
- 5[5] Aydogdu, I., Abualrub, T. and Siap, I., On ℤ 2 ℤ 2 [ u ] − limit-from subscript ℤ 2 subscript ℤ 2 delimited-[] 𝑢 \mathbb{Z}_{2}\mathbb{Z}_{2}[u]- additive codes , International Journal of Computer Mathematics, vol.92, no. 9, pp. 1806-1814, 2015.
- 6[6] Aydogdu, I. and Siap, I., On ℤ p r Z p s subscript ℤ superscript 𝑝 𝑟 subscript 𝑍 superscript 𝑝 𝑠 {\mathbb{Z}}_{p^{r}}Z_{p^{s}} -additive codes , Linear and Multilinear Algebra, , Vol. 63, (10), pp. 2089-2102, 2015.
- 7[7] Aydogdu, I., Abualrub, T. and Siap, I., ℤ 2 ℤ 2 [ u ] subscript ℤ 2 subscript ℤ 2 delimited-[] 𝑢 {\mathbb{Z}_{2}\mathbb{Z}_{2}[u]} -Cyclic and Constacyclic Codes , IEEE Trans. Inf. Theory, vol.PP, no.99, pp.1-1, doi: 10.1109/TIT.2016.2632163, 2016.
- 8[8] Borges, J., Fernández-Córdoba, C., Pujol, J., Rifà, J. and Villanueva, M., ℤ 2 ℤ 4 subscript ℤ 2 subscript ℤ 4 \mathbb{Z}_{2}\mathbb{Z}_{4} -linear codes: Generator Matrices and Duality , Designs, Codes and Cryptography, vol. 54, no. 2, pp. 167-179, 2010.
