On cyclic codes of composite length and the minimal distance
Maosheng Xiong

TL;DR
This paper develops a general method for analyzing cyclic codes of composite length, explains the optimality of certain codes, and introduces new constructions that yield many best codes and applications to convolutional codes.
Contribution
It introduces a new general method for cyclic codes of composite length and provides a novel construction producing many optimal codes.
Findings
Many constructed codes are best cyclic codes for given parameters.
The new method helps estimate minimal distances of cyclic codes.
Constructed codes can be used to build convolutional codes with large free distance.
Abstract
In an interesting paper Professor Cunsheng Ding provided three constructions of cyclic codes of length being a product of two primes. Numerical data shows that many codes from these constructions are best cyclic codes of the same length and dimension over the same finite field. However, not much is known about these codes. In this paper we explain some of the mysteries of the numerical data by developing a general method on cyclic codes of composite length and on estimating the minimal distance. Inspired by the new method, we also provide a general construction of cyclic codes of composite length. Numerical data shows that it produces many best cyclic codes as well. Finally, we point out how these cyclic codes can be used to construct convolutional codes with large free distance.
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
TopicsCoding theory and cryptography · graph theory and CDMA systems · Finite Group Theory Research
On cyclic codes of composite length and the minimal distance
Maosheng Xiong M. Xiong is with the Department of Mathematics, Hong Kong University of Science and Technology, Clear Water Bay, Kowloon, Hong Kong (e-mail: [email protected]).
Abstract
In an interesting paper Professor Cunsheng Ding provided three constructions of cyclic codes of length being a product of two primes. Numerical data shows that many codes from these constructions are best cyclic codes of the same length and dimension over the same finite field. However, not much is known about these codes. In this paper we explain some of the mysteries of the numerical data by developing a general method on cyclic codes of composite length and on estimating the minimal distance. Inspired by the new method, we also provide a general construction of cyclic codes of composite length. Numerical data shows that it produces many best cyclic codes as well. Finally, we point out how these cyclic codes can be used to construct convolutional codes with large free distance.
Index Terms:
Quadratic residue code, cyclic code of composite length, minimum distance, convolutional code.
I Introduction
The theory of error-correction codes is an important research area, and it has many applications in modern life. For example, error-correction codes are widely used in cell phones to correct errors arising from fading noise during high frequency radio transmission. One of the major challenges in coding theory remains to construct new error-correction codes with good parameters and to study various problems such as finding the minimum distance and designing efficient decoding and encoding algorithms.
Let be a finite field of order . Let be two distinct odd primes such that and is a quadratic residue for both and . In an interesting paper [1], Ding provided a general construction of cyclic codes of length and dimension over by using generalised cyclotomies of order two in , the multiplicative subgroup of the ring . This construction is reminiscent of that of quadratic residue codes of prime length, which can be defined by using cyclotomy of order two in when is a prime number. There are three different generalised cyclotomies of order two in when is a product of two distinct odd primes, corresponding to Ding’s first, second and third construction, each of which yields 8 cyclic codes of length and dimension . More interestingly, by using Magma and extensive numerical computation, Ding found some striking information on these 24 cyclic codes, which we list below in the table (see [1]):
[TABLE]
*: best cyclic codes of the same length & dim over . Here is the min distance.
The above data clearly demonstrates that Ding’s three constructions of cyclic codes are promising and may produce many best cyclic codes. Hence it is worth studying these cyclic codes.
In this paper we provide a theory on Ding’s three constructions that partially explains some mysteries of the above data: first, we prove that under permutation equivalence, there are indeed two codes in each construction; second, we prove an “almost” square-root bound on the minimum distance which is satisfied by all these codes; third, for Ding’s second and third construction, we illustrate why half of the cyclic codes have relatively small minimal distance (see Theorems 4, 5 and 6 in Section IV). In order to study these codes, we develop a general method to study cyclic codes of composite length and to estimate the minimum distance (see Theorem 1 in Section II). This method seems new and may be useful for other problems in coding theory. Inspired by this method, we provide a general construction of cyclic codes of composite length which are also related to quadratic residue codes of prime length and study their properties (see Theorems 2 and 3 in Section III). Numerical data shows that many of these codes are the best cyclic codes of the same length and dimension over and hence are interesting. Finally, in light of [8, Theorem 3], cyclic codes of composite length and the estimate of the minimal distance are very useful in the construction of convolutional codes with a prescribed free distance. As applications of results in the paper, we construct two families of convolutional codes with large free distance by cyclic codes from our construction and from Ding’s constructions (Theorem 8 in Section V). In Section VI we conclude the paper and propose two open problems.
II Cyclic codes of composite length
In this section we study cyclic codes of composite length. We first introduce some standard notation which will be used throughout the paper.
Let be the finite field of order , where is a prime power. A linear code is a -dimensional subspace of with minimum (Hamming) distance . A linear code over is called a cyclic code of length if any implies . By identifying any vector with
[TABLE]
it is known that is a cyclic code of length over if and only if the corresponding subset of , still written as , is an idea of the ring . Since every ideal of is principal, there is a monic polynomial of least degree such that . This is unique, satisfying and is called the generator polynomial of , and is called the parity-check polynomial of .
Two codes and are called permutation equivalent, written as if there is a permutation of coordinates that sends to . The permutation of coordinates is called a permutation equivalence.
For any , define to be the set of integers such that the term appears in . Define the weight to be the cardinality of the set . The main theorem is the following.
Theorem 1**.**
Let be positive integers such that . Assume that . Let be a primitive -th root of unity in some extension of . Define and let be a positive integer such that . For any , let . We define the map
[TABLE]
by
[TABLE]
here for any , the polynomial is given by
[TABLE]
Then:
the map is a permutation equivalence, and if and only if ;
- 2)
if , then
[TABLE]
Moreover,
- 2.1)
if , then ;
- 2.2)
if for some , then
[TABLE]
Let be a cyclic code with the generator polynomial . Then
* is permutation equivalent to , which is given by*
[TABLE]
where is a cyclic code with the generator polynomial given by
[TABLE]
- 4)
If , then
[TABLE]
Moreover,
- 4.1)
if , then ;
- 4.2)
if for some , then
[TABLE]
Proof.
1). Writting
[TABLE]
then from , we find
[TABLE]
Since and is a primitive -th root of unity, we can obtain
[TABLE]
Thus we have
[TABLE]
For any given , let . Noting that and as runs over a complete residue system modulo , so does , and it is clear that induces a permutation of coordinates in , thus is permutation equivalent to
[TABLE]
Hence is permutation equivalent to , and thus is a permutation equivalence. Moreover, noting
[TABLE]
and
[TABLE]
it is obvious that if and only if . This proves 1).
2). Since , we have
[TABLE]
Taking in (1), and using
[TABLE]
we find easily that . This proves 2) and 2.1).
As for 2.2), let
[TABLE]
From (1) we find
[TABLE]
For each and , write
[TABLE]
and for each , write and as column vectors. Assume that . Then we have
[TABLE]
and
[TABLE]
Noting that for any , we have , and the matrix on the left side of the equation (6) is a Vandermond matrix of size where , we find . Thus . This proves 2.2).
3). For any , define the maps
[TABLE]
by
[TABLE]
Let and . The isomorphism from the Chinese Remainder Theorem
[TABLE]
induces an isomorphism . Since clearly , hence 3) is proved.
Finally, 4), 4.1) and 4.2) are direct consequences of 2)–2.2). This completes the proof of Theorem 1.
∎
Remark**.**
In Theorem 1, the requirement is mild and can be removed as follows: suppose is a cyclic code and . There is a such that . Let and be the extension of over . It is known that ([6, Theorem 3.8.8]). Hence to study the minimum distance of over , it is equivalent to study on which the condition is satisfied.
III Cyclic codes of composite length related to quadratic residue codes
Inspired by Theorem 1, we give a construction of cyclic codes of composite length which are closely related to quadratic residue codes of prime length.
Throughout this section, we make the following assumptions:
- 3.1)
is the finite field of order ,
- 3.1)
is a prime number such that where is the Legendre symbol for the prime ,
- 3.3)
is a positive integer with .
Let be a primitive -th root of unity in some extension of and let . For each , we may factor as
[TABLE]
For each , there is a unique integer where such that . Define . It is easy to see that where is a positive integer such that . We can write
[TABLE]
where for ,
[TABLE]
For any , define
[TABLE]
Let
[TABLE]
Here the subscript in is always understood to be . For any , since , it is easy to see that .
We remark here that a defining set similar to has been used in [3] to construct binary duadic codes of prime length.
Definition 1**.**
Assume 3.1)–3.3). We define to be the cyclic code of length over with the generator polynomial given in (7), that is,
[TABLE]
Remark**.**
The code in (9) is a cyclic code over of length and dimension . The total number of these codes is , where is the number of -cyclotomic cosets modulo . In particular there are always at least 4 such codes since for any , and if , then , hence in this case the number of such codes is . In general there may be many such cyclic codes .
We first study the codes under permutation equivalence. For any , define . For any with , define as
[TABLE]
We have the following:
Theorem 2**.**
*Assume 3.1)–3.3). For any and any such that , the codes and given in (9) are all permutation equivalent. In particular we have *
[TABLE]
Proof.
For , by Theorem 1, we find that
[TABLE]
Hence the code is permutation equivalent to
[TABLE]
where
[TABLE]
is a quadratic residue code of length and dimension over . Let be a positive integer such that . It is known that the map induces a permutation equivalence from to itself and if and only if . Thus by taking we find that is permutation equivalent to .
For any ,
[TABLE]
where , and the subscript is understood to be . It is easy to see that the map induces a permutation equivalence between and
[TABLE]
Hence and are permutation equivalent. This proves Theorem 2.
∎
Now we can estimate the minimum distance of these codes . Let be the minimum distance of the quadratic residue code given in (10) (). It is known that ([6]).
Theorem 3**.**
Assume 3.1)–3.3). For any , the code given in 9 is an code with the following properties:
;
- 2)
if or , then ;
- 3)
if or , then
[TABLE]
Proof.
- and 2) are direct consequences of Theorem 1, noting that for any ,
[TABLE]
and
[TABLE]
As for 3), suppose . Let with . Then by the proof of Theorem 1, the corresponding satisfies
- i)
for any ,
- ii)
let , then .
So for each , we have with being the minimum weight in a quadratic residue code of length and dimension . It is known that for all . There are such that
[TABLE]
So we have
[TABLE]
On the other hand,
[TABLE]
We have
[TABLE]
This implies that
[TABLE]
This completes the proof of Theorem 3. ∎
Example 1**.**
In examples below, we use Magma to compute the parameters of some codes for and a few small values . We only consider codes which are not permutation equivalent by Theorem 2. The ∗-symbol indicates that the code is the best among all cyclic codes, ✓-symbol indicates that the code is the best among all linear codes, and ⋄-symbol indicates that the code is optimal among all codes. For , such information is obtained by consulting [2, Appendix A: Tables of best binary and ternary cyclic codes]; for we consult the online reference http://www.codetables.de/ to check the best linear codes. There are also some sporadic examples of best cyclic codes that we exclude from the table. It demonstrates that the construction produces many best cyclic codes, and when the parameters are small, it may even produce best linear codes.
[TABLE]
[TABLE]
[TABLE]
IV Cyclic codes from Ding’s constructions
Throughout this section we assume that
- 4.1)
is the finite field of order ,
- 4.2)
are two distinct odd primes such that and ,
- 4.3)
is a primitive -th root of unity in some extension of , and .
Ding’s three constructions of cyclic codes can be described explicitly by using the three different generalized cyclotomies of order two in (see [1]). However, it may look more natural to describe these constructions as follows.
IV-A Ding’s construction
We write
[TABLE]
where for ,
[TABLE]
here is the Jacobi symbol for , and
[TABLE]
Since , we have for all .
Denote by the minimum distance of the code . This is a quadratic residue code of length and dimension over . Denote by the minimum distance of the code . It is known that
[TABLE]
We also define and similarly.
Definition 2** (Ding’s constructions).**
Assume 4.1)–4.3). For any , let
[TABLE]
Then define to be the cyclic code of length over with the generator polynomial , that is,
[TABLE]
Next we state the main results on these codes .
Theorem 4**.**
- i)
For any , the cyclic code over given in (14) has length and dimension , satisfying
[TABLE]
- ii)
Write where
[TABLE]
Then for or , the codes with are all permutation equivalent.
Proof.
i). Obviously the code is of length and dimension . To study the minimum distance, we may assume that .
Applying Theorem 1 for and , we find that is permutation equivalent to
[TABLE]
where for each , is a cyclic code with
[TABLE]
Here where is a positive integer such that , and for any . It implies from Theorem 1 that . A closer look from Theorem 1 easily shows that the equality “=” can not be achieved, hence we have .
On the other hand, we may also apply Theorem 1 for and to obtain . Thus we obtain
[TABLE]
ii). For any positive integer such that , the map induces a permutation equivalence . Choose two positive integers such that
[TABLE]
and for any , let
[TABLE]
It is easy to see that
[TABLE]
So the codes and are all permutation equivalent.
Considering these two actions and , it is easy to check that the codes are permutation equivalent for all where or . This completes the proof of Theorem 4.
∎
IV-B Ding’s construction
We write
[TABLE]
where for any ,
[TABLE]
and the functions and are defined in (12) and (13) respectively.
Definition 3** (Ding’s constructions).**
Assume 4.1)–4.3). For any , let
[TABLE]
Then define to be the cyclic code of length over with the generator polynomial , that is,
[TABLE]
Next we state the main results on these codes .
Theorem 5**.**
- i)
For any , the cyclic code over given in (17) has length and dimension , satisfying
[TABLE]
- ii)
Write where
[TABLE]
Then for or , the codes for are all permutation equivalent.
- iii)
Taking , then
[TABLE]
- iv)
If , and is a prime power such that or , let such that
[TABLE]
Then for any , the code given by
[TABLE]
has parameters and is self-dual.
Proof.
i). Obviously the code is of length and dimension . To study the minimum distance, we may assume that .
Applying Theorem 1 for and , we find that is permutation equivalent to
[TABLE]
where for each , is a cyclic code with
[TABLE]
It implies from Theorem 1 that .
ii). The permutation equivalence of can be proved in exactly the same way as that of , hence we omit the details. We are contented by stating that for any , define
[TABLE]
then the codes , and are all permutation equivalent. Considering these two actions and , ii) is easily verified.
iii) Let . Applying Theorem 1 for and , we find that is permutation equivalent to
[TABLE]
where for each , is a cyclic code with
[TABLE]
We may choose with , and let for all . The corresponding codeword satisfies . Now iii) is proved.
iv) It was noted in [1] that is a duadic code. When , then defines a splitting of , under the condition the equation (18) is always solvable for , hence (see (6.11) of page 226 in [6]) the extended code is self-dual. This completes the proof of Theorem 5. ∎
IV-C Ding’s construction
We write
[TABLE]
where for any ,
[TABLE]
and the functions and are defined in (12) and (13) respectively.
Definition 4** (Ding’s constructions).**
Assume 4.1)–4.3). For any , let
[TABLE]
Then define to be the cyclic code of length over with the generator polynomial , that is,
[TABLE]
By switching the roles , it is easy to see that Ding’s construction is the same as Ding’s construction, hence the properties of the codes follow directly from Theorem 4. For the sake of completeness, we state the results explicitly below.
Theorem 6**.**
- i)
For any , the cyclic code over given in (22) has length and dimension , satisfying
[TABLE]
- ii)
Write where
[TABLE]
Then for or , the codes for are all permutation equivalent.
- iii)
Taking , then
[TABLE]
- iv)
If , and is a prime power such that or , let such that
[TABLE]
Then for any , the code given by
[TABLE]
has parameters and is self-dual.
V Application to convolutional codes
The class of convolutional codes was invented by Elias [4] in 1955 and has been widely in use for wireless, space, and broadcast communications since the 1970s. Compared with linear block codes, however, convolutional codes are not so well understood. In particular, there are only a few algebraic constructions of convolutional codes with good designed parameters.
Convolutional codes can be defined as subspaces over the rational functional field (see [7, 9]) or over the field of Laurent series ([10]), or as submodules over the polynomial ring ([5, 11]), and the theories are all equivalent. Here we follow the presentation of [5]. Interested readers may consult the textbooks [7, 9, 10] for more information.
Definition 5**.**
Let be the polynomial ring and the field of rational functions. For any , let be a polynomial matrix with rank. The rate convolutional code generated by is defined as the set
[TABLE]
The matrix is called a generator matrix or an encoder of .
Let be an encoder of . The -th row degree of is . If the encoders and generate the same code , then we say and are equivalent encoders. It is known that each convolutional code can be generated by a minimal basic encoder , that is, has a polynomial right inverse, and the sum of the row degrees of attains the minimal value among all encoders of . Let be a minimal basic encoder of , then is automatically noncatastrophic, that is, finite-weight codewords can only be produced from finite-weight messages, and the set of the row degrees of is invariant among all minimal basic encoders of . Hence we can define the degree of as by using the minimal basic encoder of . We call this an convolutional code.
Each can be expanded uniquely as a Laurent series where for each . Define the weight as
[TABLE]
Here denotes the Hamming weight of the vector . The free distance of the convolutional code is defined as
[TABLE]
It is known that (see [11])
[TABLE]
For a given convolutional code , the four parameters are of fundamental importance because is the rate of the code, and determine respectively the decoding complexity and the error correcting capability of with respect to some decoding algorithms such as the celebrated Viterbi algorithm [12]. For these reasons, for given rate and , generally speaking, it is desirable to construct convolutional codes with relatively small degree and relatively large free distance .
There are only a few algebraic constructions of convolutional codes. One particularly useful construction of convolutional codes is given in [8, Theorem 3], which we describe below.
For any positive integer and any , write
[TABLE]
where for each . This induces a map given by
[TABLE]
For simplicity, we write as an column vector. It is easy to see that for any positive integers , this map defines a permutation equivalence from to .
For any in some finite extension of , we say that and are -equivalent or belong to the same -equivalence class if .
Theorem 7**.**
([8, Theorem 3]) Let be positive integers such that . Let be a cyclic code of length with the generator polynomial . If has at most roots in each -equivalence class, then the matrix given by
[TABLE]
is a minimal basic encoder, and the code generated by is a rate convolutional code with the free distance satisfying . Here is the transpose of the matrix , and is the minimal distance of the code .
We remark that Theorem 7 has been used in the construction of MDS-convolutional codes for any rate and any degree over a large field ([11, Theorem 3.3]). In light of Theorem 7, it is readily seen that cyclic codes of composite length and the estimate of the minimal distance are very useful in the construction of convolutional codes with prescribed rate and free distance. We also remark that generally speaking, it is not an easy task to construct a generator polynomial such that has at most roots in each -equivalence class and the corresponding cyclic code has large minimal distance at the same time (see [8, Theorem 6]). Using Theorem 7, we note that the cyclic codes from (9) and from Ding’s construction in (14) are useful to construct convolutional codes with large free distance.
Theorem 8**.**
Let be a finite field of order .
- (i)
Let be a prime number such that , and be a positive integer such that . Let where is given in (8), and let be the cyclic code of length given in (9). Then for any , the code generated by the encoder given by
[TABLE]
is a rate convolutional code with the free distance satisfying .
- (ii)
Let be two distinct odd primes such that and . For any , let be the cyclic code of length given in (14). Then for any , the code generated by the encoder given by
[TABLE]
is a rate , degree convolutional code over with the free distance satisfying .
Proof.
The only thing we need to check is that the generator polynomial in (i) and (ii) has at most roots in each -equivalence class, which is almost trivial, so we omit the details. ∎
Example 2**.**
For , using the cyclic code in (9), for , we find
[TABLE]
The code has parameters . We may write
[TABLE]
where
[TABLE]
Taking , from (1) of Theorem 8, the matrix given by
[TABLE]
is a minimal basic encoder which generates a rate 4/7, degree 4 convolutional code over with free distance . Actually the codeword has weight , so . We would like to mention that the Heller bound [7, Corollary 3.18] implies that the largest free distance of any binary, rate and unit-memory convolutional code satisfies .
Example 3**.**
For , using Ding’s construction (see (14)), for , we find
[TABLE]
The code has parameters . We may write
[TABLE]
where
[TABLE]
Taking , from (2) of Theorem 8, the matrix given by
[TABLE]
is a minimal basic encoder which generates a rate 3/7, degree 24 convolutional code over with free distance .
VI Conclusion
In this paper, we develop a general method to study cyclic codes of composite length and to estimate the minimal distance (Theorem 1), which can be used to study the cyclic codes from Ding’s three constructions (Theorems 4, 5, 6). We also give a general construction of cyclic codes of composite length which are related to quadratic residue codes of prime length and study some of their properties (Theorems 2 and 3). The cyclic codes in this paper can be used to construct convolutional codes with large free distance. While we have obtained an “almost” square-root bound on the minimal distance of all these cyclic codes that we are interested in, numerical data shows that the minimal distance of these codes should be much larger. So we list the following as open questions:
- (1)
For the code given in (9), is it possible to improve the lower bound on in Theorem 3 when or ?
- (2)
For the codes () from Ding’s three constructions, is it possible to improve the lower bound on from Theorems 4, 5 and 6? In particular is it true that for any and for any and ?
Acknowledgments
The author is grateful to Professor Cunsheng Ding for many useful suggestions of the paper. In particular the numerical computation by the end of Section III can not be done so efficiently without Professor Ding’s generous sharing of his original Magma codes from the work [1].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] C. Ding, Cyclotomic constructions of cyclic codes with length being the product of two primes , IEEE Trans. Inform. Theory 58 (2012), no. 4, 2231–2236.
- 2[2] C. Ding, “Codes from difference sets”, World Scientific Publishing, 2015.
- 3[3] C. Ding, V. Pless, Cyclotomy and Duadic codes of prime lengths , IEEE Trans. Inform. Theory 45 (1999), no. 2, 453–466.
- 4[4] P. Elias, “Coding for noisy channels,” IRE Conv. Rep. , Pt. 4, pp. 37–47, 1955.
- 5[5] H. Gluesing-Luerssen, J. Rosenthal, and R. Smarandache, “Strongly-MDS convolutional codes,” IEEE Trans. Inform. Theory , 52 (2006), no. 2, 584–598.
- 6[6] W. C. Huffman, V. Pless, Fundamentals of Error-Correcting Codes . Cambridge University Press, 2003.
- 7[7] R. Johannesson and K. S. Zigangirov, Fundamentals of Convolutional Coding . Piscataway, NJ: IEEE Press, 1999.
- 8[8] J. Justesen, New convolutional code constructions and a class of asymptotically good time-varying codes , IEEE Trans. Inform. Theory bf 19 (1973), no. 2, 220–225.
