The extended codes of a family of reversible MDS cyclic codesThanks: Z. Sun’s research was supported by The National Natural Science Foundation of China under Grant Number 62002093. C. Ding’s research was supported by the Hong Kong Research Grants Council, Proj. No. 16301123.
Abstract
A linear code with parameters is called a maximum distance separable (MDS for short) code. A linear code with parameters is said to be almost maximum distance separable (AMDS for short). A linear code is said to be near maximum distance separable (NMDS for short) if both the code and its dual are AMDS. MDS codes are very important in both theory and practice. There is a classical construction of a MDS code for each with , which is a reversible and cyclic code. The objective of this paper is to study the extended codes of this family of MDS codes. Two families of MDS codes and several families of NMDS codes are obtained. The NMDS codes have applications in finite geometry, cryptography and distributed and cloud data storage systems. The weight distributions of some of the extended codes are determined.
Index Terms:
Cyclic code, extended code, linear code, locally recoverable code, MDS code, subfield codeI Introduction of motivations, objectives and methodology
By an code over we mean a -dimensional linear subspace of having minimum Hamming distance . The parameters of a linear code refer to its length, dimension and minimum distance. An code over is called distance-optimal (respectively, dimension-optimal and length-optimal) if there is no (respectively, and ) linear code over . An optimal code is a code that is length-optimal, or dimension-optimal, or distance-optimal, or meets a bound for linear codes.
Let denote the number of codewords of Hamming weight in a linear code . The vector is called the weight distribution of , and the weight enumerator is defined by the polynomial Throughout this paper, we use and to denote the dimension and minimum distance of a linear code .
Denote for each positive integer . We usually index the coordinates of the codewords in with the elements in . An code over is called an -LRC (locally recoverable code) if for each there is a subset of size and a function on such that for each codeword in , where is the projection of at . The symbol is called the -th code symbol and the set is called the repair set or recovering set of the code symbol . In this definition of LRCs, the degrees of the functions are not restricted. If we require that each be a homogeneous function of degree in the definition above, then we say that is -LLRC (linearly local recoverable code) and has linear locality . For general theory about minimum locality and minimum linear locality, the reader is referred to [35].
For any -LLRC, Gopalan et al. proved the following upper bound on the minimum distance [18]:
| (1) |
The bound in (1) is similar to the Singleton bound, and is thus called the Singleton-like bound. If an -LLRC meets the Singleton-like bound with equality, then we say that the -LLRC is distance-optimal (-optimal for short). If an -LLRC meets the Singleton-like bound minus one with equality, then we say that the -LLRC is almost distance-optimal (almost -optimal for short). Note that the Singleton-like bound is not tight for codes over small finite fields, as it is independent of the alphabet size .
For any -LLRC, Cadambe and Mazumdar developed the following bound on the dimension [5], [6]:
where denotes the set of all positive integers, and is the largest possible dimension of a code with length , minimum distance , and alphabet size . An -LLRC that attains the CM bound with equality is said to be dimension-optimal (-optimal for short).
Any linear code with parameters for some positive integers and is called an MDS (maximum distance separable) code. Any linear code with parameters for some positive integers and is said to be almost maximum distance separable (AMDS for short). A linear code is said to be near maximum distance separable (NMDS for short) if both the code and its dual are almost maximum distance separable. By definition, an linear code is NMDS if and only if , where and denote the minimum distance of and , respectively.
MDS codes are very important in theory and have important applications. For example, the Reed-Solomon codes are widely used in communication systems and data storage devices. It is easy to verify that each MDS code is a -optimal and -optimal LLRC. In theory, MDS codes over finite fields are the same as arcs in projective geometry, and some MDS codes are hrperovals and can be used to construct -designs [13, Chapter 12]. Motivated by the importance of MDS codes in both theory and practice, our first objective is to construct several families of MDS codes by extending a family of known MDS cyclic codes. Our methodology is the extending technique in coding theory.
The error-correcting capability of NMDS codes is slightly worse than that of MDS codes. However, NMDS codes have the following advantages over MDS codes:
- •
- •
The length of an NMDS code over with parameters can be more than , while that of an MDS code with parameters over is conjectured to be at most for .
NMDS codes correspond also to certain objects in projective geometry [1, 2, 3, 4, 7, 8, 14, 15, 17, 32]. In addition, NMDS codes have applications in cryptography [33]. Recently, it was shown in [35] that an NMDS code is either a -optimal and -optimal LLRC or an almost -optimal and -optimal LLRC (see [28, 29] for further information). This application of NMDS codes in distributed and cloud data storage as LLRCs is the second motivation of this paper. Compared with MDS codes, there are a very small number of families of NMDS codes reported in the literature [1, 2, 3, 4, 7, 12, 14, 21, 28, 29, 36, 38, 40]. Our second objective is to construct several families of NMDS codes by extending a family of known MDS cyclic codes.
While a lot of infinite families of MDS codes over finite fields with variable parameters have been constructed in the literature, very limited results on the extended codes of MDS codes are known [23, Chapter 7], [31, Chapter 11]. Our third objective is to study the extended codes of a family of MDS cyclic codes.
The rest of this paper is organised as follows. Section II presents some auxiliary results about linear codes. Section III introduces a family of known MDS codes over . Section IV investigates the extended codes of this family of known MDS codes over . Section V summarizes this paper and makes concluding remarks.
II Preliminaries
II-A Some operations on linear codes
Let be an code over . The extended code of is defined by
Let and denote the check matrix of and , respectively. Then we have the following known result whose proof is straightforward.
Lemma 1.
[23] Let be an code over . Then is an code over , where or . In the binary case, if is even, and otherwise. In addition, the check matrix of can be deduced from that of by
where is the all-one vector of length and is the all-zero vector of length .
The all-one vector in and the rows of a generator matrix of span a linear subspace of , which is called the augmented code of . If , then . Otherwise, is a subcode of and . The following lemma will be useful.
Lemma 2.
Let be a power of a prime , be a positive integer with . Let be a linear code of length over . Then .
Proof.
Let . By definition, , and
| (2) |
where is the all-one vector of length . Similarly, we have
and
Note that
for each . The desired result follows. ∎
The following lemma will also be needed later.
Lemma 3.
Let be a linear code of length over and the all-one vector . Then the following hold.
- 1.
.
- 2.
If and is an MDS code, then .
Proof.
1) Let denote the check matrix of . Since , the sum of all the coordinates in each codewords of is zero. As a result, we conclude that the code has generator matrix , where is the all-zero vector. The desired conclusion follows from Lemma 1.
2) By Result 1 and Equation (2), we deduce that
| (3) |
Suppose is an MDS code over , then is an MDS code over . Since , we deduce that is an code over . By the Singleton bound, . It follows that there exist and such that . Note that , we get that
| (4) |
On the other hand, let and . By Equation (3), there exist and such that . If , it follows from that . Consequently,
If , . It follows from that . Consequently,
In summary,
| (5) |
Combining Inequalities (4) and (5), we deduce that . This completes the proof. ∎
When is a cyclic code of length over , the augmented code of has the following result.
Lemma 4.
Let be the cyclic code of length over with generator polynomial . Then is the cyclic code of length over with generator polynomial .
Proof.
Let be the cyclic code of length over with generator polynomial , then
The desired result follows from [23, Theorem 4.3.7]. ∎
II-B Cyclic codes and BCH codes over finite fields
An code over is called cyclic if implies
We identify any vector with the polynomial
Then a code of length over corresponds to a subset of the ring , where
A linear code is cyclic if and only if is an ideal of the ring .
Note that every ideal of must be principal. Let be a cyclic code of length over , where is monic and has the smallest degree among all the generators of . Then is unique and called the generator polynomial, and is referred to as the check polynomial of .
Let be a positive integer with . Let denote the ring of integers modulo . For any integer with , the -cyclotomic coset of modulo is defined by
where is the smallest positive integer such that , and is the size of the -cyclotomic coset. The smallest integer in is called the coset leader of . Let be the set of all the coset leaders. It is easily seen that for any two distinct elements and in , and
Hence, the distinct -cyclotomic cosets modulo partition .
Let be the order of modulo , and let be a generator of the group . Put , then must be a primitive -th root of unity in . The minimal polynomial of over is the monic polynomial of the smallest degree over with as a root and is given by
which is irreducible over .
Let be an integer with and let be an integer. A BCH code over with length and designed distance , denoted by , is a cyclic code with generator polynomial
| (6) |
If , the code with the generator polynomial in (6) is called a narrow-sense BCH code. If , then is referred to as a primitive BCH code.
BCH codes are a subclass of cyclic codes with interesting properties and applications. In many cases BCH codes are the best linear codes. For example, among all binary cyclic codes of odd lengths with the best cyclic code is always a BCH code except for two special cases [10]. Reed-Solomon codes are also BCH codes and are widely used in communication devices and consumer electronics. In the past decade, a lot of progress on the study of BCH codes has been made (see, for example, [25, 27, 30, 34, 42, 44]).
A cyclic code is said to be reversible if . Such code is said to be linear complementary dual (LCD) code. The family of MDS codes presented in Section III are cyclic BCH codes and reversible.
II-C The weight distributions of MDS codes and NMDS codes
The weight distribution of MDS codes is known and given by the following lemma [31, p. 321]. We will use it later.
Lemma 5.
Let be an code over with , and let the weight enumerator of be . Then
for all .
We have the following weight distribution formulas for NMDS codes.
Lemma 6.
By definition, we have and . The weight distribution of an NMDS code or its dual cannot be determined by Equations (7) and (8). It was shown in [12] that two NMDS codes over could have different weight distributions. Thus, the weight distribution of an NMDS code over depends on not only , and , but also some other parameters of the code. This is a major difference between MDS codes and NMDS codes. Actually, it could be very difficult to determine the weight distribution of an NMDS code. This difficulty will be justified in this paper later.
III The family of classical MDS cyclic codes
Starting from now on, let , where is a prime and is a positive integer. Let be a primitive element of . Define , then is a primitive -th root of unity in . Let denote the minimal polynomial of over . It is easily verified that
where ,
for all , and
for being odd.
For each with , define
Let be the cyclic code of length over with generator polynomial . We have the following result.
Theorem 7.
The codes and are called the classical MDS cyclic codes. Reed-Solomon codes over are MDS codes over with length . Hence, the codes and in Theorem 7 are not Reed-Solomon codes. The objective of this paper is to study the extended codes of some of the MDS codes .
IV The extended codes of the family of MDS cyclic codes
The objective of this section is to study the extended codes of the family of MDS codes introduced in Section III and their duals. As will be seen later, we can settle the parameters of the extended code only for a few values of .
IV-A Some general results of the extended code and its dual
By Lemma 1, the extended code has length , dimension and
As will be seen later, both cases can happen.
In the case that , is an MDS code and the parameters and weight distributions of are easily obtained from Lemma 5. A trivial verification shows that if , then is a MDS code over . It will be proved later that and are MDS codes for even . The classical MDS code conjecture leads to the conjecture that is an AMDS code for the other cases.
In the case that , is a AMDS code over , but its weight distribution cannot be derived from Lemma 6. As will be seen later, settling the weight distribution of is very difficult in general. In this case, we have
If , then is an NMDS code. We are much more interested in this case. As will be seen later, in some cases we indeed have . The most difficult problem in this project is to determine . The following theorem may be useful in determining .
Theorem 8.
Let notation be the same as before. Let . Then
Proof.
Recall that has generator polynomial
It is easily verified that has generator polynomial
It is easily seen that and , then and . By Result 2 of Lemma 3, we deduce that . It is easily seen that
| (9) |
It follows from Lemma 4 that is the narrow-sense BCH code of length over with designed distance . The desired result follows. ∎
It follows from Equation (9) that is the cyclic code of length over with generator polynomial , which is subcode of . Specifically,
| (10) |
To simplify notation, we will use to denote the code . With this new notation, Equation (10) becomes . Note that , we get that . Hence, is a code over , where . Furthermore, we have the following result.
Theorem 9.
Let notation be the same as before. Let . Then and .
Proof.
Let denote the trace function from to . By Delsarte’s theorem,
and , where
For any with , . Then . It is easily verified that
Therefore,
Since , we deduce that
if and only if and . As a result,
| (11) |
Notice that
by Equation (11), we deduce that . This completes the proof. ∎
Theorems 8 and 9 show that , , and their duals have the following relationship:
Hence, the minimum distance of (resp. ) can be determined if the minimum distance of the code (resp. ) is known and vice versa. The following lemma comes from [37].
Lemma 10.
Let be a prime power and let with . Then the following hold.
- 1.
If , then .
- 2.
If , then .
Theorem 11.
Let , where is a prime and is a positive integer. Let be an integer with . Then the following hold.
- 1.
If , then has parameters and has parameters .
- 2.
If and , then has parameters , where if and is odd, otherwise. The dual code has parameters .
Proof.
By Theorem 7, has parameters . It follows from Lemma 1 that has parameters , where . By Theorem 8, we obtain that .
1) Since , by Lemma 10, we deduce that . Therefore, has parameters . Since , is not MDS. As a result, is not MDS. Therefore, .
2) It is easily verified that . Consequently,
Since , we deduce that . Since , it follows from Lemma 10 that . Consequently, . It then following from Theorem 8 that . In this case, is an MDS code if and only if . By assumption, and , we deduce that and is odd. Therefore, we have the following hold.
- •
If and is odd, is a MDS code and is a MDS code.
- •
Otherwise, is not MDS. Consequently, is not MDS. Hence, .
This completes the proof. ∎
Lemma 12.
[26] Let be a power of a prime and with . Then .
Theorem 13.
Let , where is a prime and is a positive integer. If , where is a positive integer with and . Then has parameters , where if , and if . The dual code has parameters .
Proof.
IV-B The case
In this subsection, we study the parameters of and its dual. By Theorems 11 and 13, we have the following results.
Corollary 15.
Let be an odd prime power. Then is a NMDS code over .
Proof.
The desired result follows directly from Result 1 of Theorem 11. ∎
Example 16.
Let . Then the extended code has parameters and has parameters . These two linear codes are optimal codes [16].
Corollary 17.
Let with . Then is a MDS code over with weight enumerator
Proof.
Any code over is called a hyperoval code, as it corresponds to a hyperoval in the Desarguesian projective plane [13, Chapter 12].
Example 18.
Let . The extended code has parameters and weight enumerator . The dual code has parameters .
IV-C The case
In this subsection, we study the parameters of and its dual. Let be the dual of the BCH code , then is the cyclic code of length over with check polynomial , where is a primitive -th root of unity in . The following lemmas will be needed later.
Lemma 19.
Let notation be the same as before. Let . Then if and only if there are four pairwise distinct elements in such that
Proof.
For any pairwise distinct elements in , define a matrix by
It is clear that if and only if there are four pairwise distinct elements in such that the system of homogeneous linear equations
| (12) |
has a nonzero solution in . By [26, Lemma 16], (12) has a nonzero solution in if and only if , where denotes the rank of the matrix . It is easily verified that
| (13) |
where . Notice that are pairwise distinct, we get that . Therefore, if and only if
This completes the proof. ∎
The parameters of and are documented in the following theorem.
Theorem 20.
Let be a prime power. Then the following hold.
- 1.
If , then has parameters and has parameters .
- 2.
If , then is a NMDS code over .
Proof.
It is clear that has length and dimension , and has length and dimension , respectively. Notice that , and if and only if is MDS. Hence, we only need to prove that for and for . The rest of the proof is divided into the following two cases.
Case 1: . It follows from Lemma 10 that . The desired result follows.
Case 2: . Suppose , where is a prime and is a positive integer. If , the desired result was proved in [12]. Now suppose is an odd prime. Since , by Lemma 10, . Below we prove that . Let , , and . It is easily verified that and
Since is odd, we deduce that . We now prove that .
- •
If , we get that , a contradiction.
- •
If , we get that , a contradiction.
- •
If , we deduce that or , a contradiction.
By Lemma 19, . In summary, . This completes the proof. ∎
The parameters of are documented in the following theorem.
Theorem 21.
Let be a prime power. Then the following hold.
- 1.
If , then has parameters and has parameters .
- 2.
If , then is a NMDS code over .
Proof.
Example 22.
Let . Then the following hold.
- 1.
The code has parameters and has parameters .
- 2.
The BCH code has parameters and has parameters .
- 3.
The extended code has parameters and has parameters .
By Theorem 9, we have
| (14) |
When and , by Theorem 21, is an NMDS code over . From Lemma 6 and Equation (14), the weight distribution of is determined by . It seems difficult to determine in general. We will determine the weight distribution of for two special cases. The following two lemmas will be needed later.
Lemma 23.
[12] Let with being even. Then is a NMDS code with the following weight distribution:
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
for other .
Lemma 24.
[12] Let with . Then is a NMDS code with the following weight distribution:
- •
.
- •
.
- •
.
- •
.
- •
.
- •
for other .
The following family of NMDS codes were claimed but not proved in [35]. Here we prove they are indeed NMDS and settle the weight distribution of .
Theorem 25.
Let with being even. Then is a NMDS code with the following weight distribution:
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
for other .
Proof.
Example 26.
Let . Then has parameters and weight enumerator
The dual code has parameters . Hence, is NMDS in this case.
Similar to the proof of Theorem 25, one can prove the following.
Theorem 27.
Let with . Then is a NMDS code with the following weight distribution:
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
for other .
Example 28.
Let . Then has parameters and weight enumerator
The dual code has parameters . Hence, is NMDS in this case.
IV-D The case
In this subsection, we study the parameters of and its dual. Before studying , we need to do some preparations. Let denote the dual of the BCH code , then is the cyclic code of length over with check polynomial , where is a primitive -th root of unity in . When with , the parameters of the BCH code were studied in [36].
Lemma 29.
[36] Let with being odd. Then is a NMDS code over and
Theorem 30.
Let with . Then the following hold.
- 1.
If is even, then has parameters and has parameters .
- 2.
If is odd, then is a NMDS code with the following weight distribution:
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
.
- •
for other .
- •
Proof.
1) The first desired result follows directly from Theorem 13.
Example 31.
Let . Then has parameters and is AMDS. The dual code has parameters , but is not AMDS.
Example 32.
Let . Then has parameters and weight enumerator
The dual code has parameters . Hence, is NMDS in this case.
Theorem 30 documents another family of NMDS codes in this paper.
Starting from now on, let be an odd prime power. Let denote the trace function from to . To determine the parameters of and , we need the following preparations.
Suppose are five pairwise distinct elements in . Define a matrix by
For any , let denote the submatrix of obtained by deleting the row of the matrix . Let , the elementary symmetric polynomial (ESP) of degree in variables , written , is defined by
Lemma 33.
Let be an odd prime power and . Then if and only if there are five pairwise distinct elements in such that .
Proof.
Since , we get that . By Lemma 10, we deduce that . Therefore, if and only if there are five pairwise distinct elements in such that the system of homogeneous linear equations
| (16) |
has a nonzero solution in . By [26, Lemma 16], (16) has a nonzero solution in if and only if .
It is easily verified that
It then follows that if and only if . This completes the proof. ∎
Lemma 34.
Let be an odd prime power and . Then the following hold.
- 1.
for any with .
- 2.
for any .
- 3.
with if and only if and .
Proof.
1) It is easily seen that
Since , we deduce that has no multiple roots. Hence, for any with .
2) Since , we deduce that
It follows that . It then follows that for any . We now prove that for any . Since
to prove the desired result we only need to prove for any . It is easily verified that with if and only if , i.e., with , a contradiction. The desired result follows.
3) It is clear that if and only if . Notice that
and for any . Hence, with if and only if . It follows that with if and only if and . This completes the proof. ∎
Lemma 35.
Let and , where is an odd prime and is a positive integer. Then the following hold.
- 1.
For any with ,
- 2.
If ,
where denotes the unique integer such that and .
- 3.
If ,
Proof.
1) It is easily seen that
for any . The desired result follows.
2) If , then
Hence,
for each . It follows that
where the third equation follows from the fact that . Consequently,
where the fourth equation follows from Result 1. The desired result follows.
3) If , then
Let be an integer with and , then . It follows that
Consequently,
where the sixth equation follows from the fact that
Therefore,
This completes the proof. ∎
Lemma 36.
Let be an odd prime power, and . Then there exist two distinct integers and with such that .
Proof.
If , then
The desired result follows. Below we suppose .
Let
then . By Result 3 of Lemma 34, for any . Let
and . By Result 1 of Lemma 34, we deduce that . It is clear that
| (17) |
It follows from Result 2 of Lemma 34 that . It follows from Equation (17) that . Define
then . Clearly, to prove the desired conclusion, it suffices to prove or .
Suppose on the contrary that and , then and , where and . We seek a contradiction by considering two cases.
Case 1: . It is easily verified that
It follows that with if and only if and . By assumption, . Hence, , i.e., we get a contradiction.
Case 2: . Since , we deduce that . Since and , we have
| (18) |
where the last equation follows from Lemma 35. Clearly,
Hence, Equation (18) is impossible, i.e., we get a contradiction.
Collecting the conclusions in Cases 1 and 2 yields or . This completes the proof. ∎
Lemma 37.
Let be an odd prime, and . Then there exist two distinct integers and with such that .
Proof.
Let
then . By Result 3 of Lemma 34, for any . Let
and . By Result 1 of Lemma 34, we deduce that . Similar to Lemma 36, we have
| (19) |
and . Similar to Lemma 36, to prove the desired result, it suffices to prove that or
We first prove by distinguishing the following two cases.
Case 2: Suppose , then there is an element such that . It is easily verified that if , then . Hence, . It follows from Equation (19) that . Consequently, there is an element such that . By Lemma 35, we obtain that
i.e., . We now prove that . Clearly, to prove the desired result, we only need to prove . Suppose , then . Consequently,
| (20) |
Suppose , by Equation (20), we get that . It follows that . Consequently, , a contradiction. That is to say, . Notice that , we deduce that , which contradicts the fact that .
Collecting the conclusions in Cases 1 and 2 yields .
Finally, we prove that or . Suppose on the contrary that and , then , where and . It follows from Equation (19) that . Consequently, there exist two distinct elements and in such that . By Lemma 35, we obtain that
Therefore,
| (21) |
It is easily verified that if , then . It follows that . By Equation (21), we deduce that
| (22) |
It is easily verified that is reducible over if and only if is a quadratic residue modulo . By [24], is a quadratic residue modulo if and only if . We seek a contradiction by considering the following two cases.
Case 1: . By assumption, . Consequently, is irreducible over . It follows that Equation (22) is impossible.
Case 2: . It is easily verified that . Consequently, . By Result 2 of Lemma 34, . Hence, . It follows that there is an integer with such that . It then follows that . Notice that , we deduce that is reducible over . Hence, , which contradicts the fact that .
Collecting the conclusions in Cases 1 and 2 yields or . This completes the proof. ∎
The parameters of and are documented in the following theorem.
Theorem 38.
Let be an odd prime power. Then has parameters and has parameters , where
- 1.
if , then ;
- 2.
if and , then ;
- 3.
if and , then , and provided that .
Proof.
It is clear that has length and dimension , and has length and dimension , respectively. Notice that , and if and only if is MDS. Therefore, we only need to study the minimum distance of .
Case I: . By Lemma 10, we obtain that . The desired result follows.
Case II: and . By Lemma 36, there exist two distinct integers and with such that . Let , , , and , then . It is easily verified that
By Lemma 33, we deduce that .
Case III: and . In this case, . It is clear that
Consequently, . By Lemma 10, we deduce that
Below we prove that for .
Suppose , where is an odd prime and is a positive integer. Since , we deduce that is odd. Let , then is a primitive -th root of unity in . Let be the cyclic code of length over with generator polynomial , then is the narrow-sense BCH code of length over with designed distance . Since and is odd, we get that . Similar to Case II, we can prove that . Consequently, there are five pairwise distinct integers with and such that
It is easily verified that
It then follows that .
Collecting all the conclusions in Cases I, II and III, we complete the proof of this theorem. ∎
The parameters of and are documented in the following theorem.
Theorem 39.
Let be an odd prime power. Then has parameters and has parameters , where
- 1.
if , then ;
- 2.
if and , then ;
- 3.
if and , then , and provided that .
Proof.
Example 40.
Let . Then the following hold.
- 1.
The code has parameters and has parameters .
- 2.
The BCH code has parameters and has parameters .
- 3.
The code has parameters and has parameters .
For the case , there is only one case where the minimum distance of remains open, but we have the following conjecture.
Conjecture 41.
Let with being odd, then and .
IV-E The case
Let be a prime power and . Our task in this subsection is to settle the parameters of the code and its dual . First of all, we have the following result.
Corollary 42.
Let be an odd prime power and . Then has parameters and has parameters .
Proof.
Since , . Note that , we deduce that . Clearly, . The desired results follow from Theorem 11. ∎
Starting from now on, let with and , then has checked polynomial , where is a primitive -th root of unity in . By Delsarte’s theorem, we have
| (23) |
where , and denote the trace function from to . Let denote the dual of the BCH code , then is the cyclic code of length over with generator polynomial . To determine the parameters of and , we first prove the following lemma.
Lemma 43.
Let with . Then there are three pairwise distinct integers with such that .
Proof.
It is easily verified that
and . Consequently,
| (24) |
for any two distinct integers and with . We first prove that for each . Suppose , then divides , which contradicts the fact that . We now prove that . Suppose , then . It follows that , which contradicts the fact that is a primitive -th root of unity. Let
and , then . It is easily verified that
| (25) |
Notice that , we have
| (26) |
It is clear that , then . If , then
Notice that , we get that
It then follows that
a contradiction. Therefore, . Then there is an integer with such that
where . If , by Equation (IV-E), we deduce that
Since for each , we deduce that . The desired result follows. If , by Equation (26), we obtain that
Similarly, we have . This completes the proof. ∎
Theorem 44.
Let with and . Then has parameters and has parameters .
Proof.
It is clear that has length and dimension . We now study the minimum distance of . Let be a nonzero codeword of . By Equation (23), there is and such that
It is easily verified that , where
Note that
Consequently,
Let , then if and only if . Since , . Consequently, has at most solutions. Therefore,
It follows that .
We now prove that has solutions for some . By Lemma 43, there are three pairwise distinct integers with such that
Clearly, . Put , , , then
Set
Then is a set of solutions of . Consequently, the corresponding codeword has weight . Therefore, .
It is clear that has length and dimension . Note that is not MDS, then is not MDS. As a result, . Notice that is a zero of for each
By the BCH bound, we deduce that . Therefore, . This completes the proof. ∎
The parameters of the extended code are documented in the following theorem.
Theorem 45.
Let with , and . Then has parameters and has parameters .
Proof.
Example 46.
Let and . Then the following hold.
- 1.
The code has parameters and has parameters .
- 2.
The BCH code has parameters and has parameters .
- 3.
The extended code has parameters and has parameters .
IV-F The case
Let be a prime power and . Our task in this subsection is to settle the parameters of the code and its dual . By Theorem 11, we have the following result.
Corollary 47.
Let be an odd prime power and . Then has parameters and has parameters .
Starting from now on, let with and . Recall that is a MDS code over and has generator polynomial , where is a primitive -th root of unity in . Let be the dual of , then is the cyclic code of length over with generator polynomial .
Lemma 48.
Let with and . Then is a MDS code over .
Proof.
To prove the desired result, we only need to prove that is an MDS code over . By definition, has length , dimension and . Since , we deduce that is also a primitive -th root of unity. Notice that , then is a root of for each . By the BCH bound, . Therefore, is a MDS code over . This completes the proof. ∎
Theorem 49.
Let with and . Then the following hold:
- 1.
is a MDS code over .
- 2.
is a MDS code over .
- 3.
is a MDS code over .
- 4.
is a MDS code over .
Proof.
The codes are the second family of hyperoval codes presented in this paper.
V Summary and concluding remarks
It is observed that only a small number of families of NMDS codes with known weight distributions have been reported in [12, 22, 28, 29, 36, 38, 40, 41], as two NMDS codes over with the same parameters may have different weight distributions. The first contribution of this paper is the several families of NMDS codes documented in Corollary 15, Theorems 20, 21 and 30, and the settlement of the weight distributions of three families of NMDS codes (see Theorems 25, 27 and 30). One of the infinite families of NMDS codes is both distance-optimal and dimension-optimal locally recoverable codes [35]. The second contribution of this paper is the MDS codes documented in Corollary 17 and the MDS codes and documented in Theorem 49 for even . They are also both distance-optimal and dimension-optimal locally recoverable codes. The third contribution of this paper is the settlement of the parameters of and its dual for .
In this paper, we settled the parameters of the extended code for only a few values of . It would be very challenging to study the parameters of the code and its dual for . The reader is cordially invited to attack this problem. This shows that studying the extended code of a known linear code could be very challenging, even if the parameters of the linear code are known. This may explain why not much work on extended codes has been reported in the literature.
Although the NMDS codes , and have small dimensions (i.e., , and , respectively), they are interesting and valuable due to the following applications. These NMDS codes have applications in cryptography [33], finite geometry [8, 15, 17] and distributed data storage systems (see the explanations in Section I). Another application of these NMDS codes with small dimensions is the construction of subfield codes (i.e., the trace codes) with larger dimensions. We inform the reader that the binary subfield codes of , and are distance-optimal or have the best parameters for with in every case except one case (see Table I). The reader is referred to [11, 19, 20, 39] for information about subfield codes, which are different from the subfield subcodes of linear codes.
| subfield code | best distance | best dimension | ||
| optimal | ||||
| optimal | optimal | |||
| optimal | ||||
| best known | best known | |||
| optimal | optimal | |||
| optimal | optimal | |||
| best known | is best known |
References
- [1] V. Abatangelo, B. Larato, “Near-MDS codes arising from algebraic curves,” Disc. Math., vol. 301, no. 1, pp. 5–19, Sept. 2005.
- [2] V. Abatangelo, B. Larato, “Elliptic near-MDS codes over ,” Des. Codes Cryptogr., vol. 46, pp. 167–174, Feb. 2008.
- [3] A. Aguglia, L. Giuzzi, A. Sonnino, “Near-MDS codes from elliptic curves,” Des. Codes Cryptogr., vol. 89, pp. 965–972, May 2021.
- [4] D. Bartoli, M. Giulietti, G. Zini, “Complete -arcs from quartic curves,” Des. Codes Cryptogr., vol. 79, pp. 487–505, Jun. 2016.
- [5] V. R. Cadambe, A. Mazumdar, “An upper bound on the size of locally recoverable codes,” In International Symposium on Network Coding, NetCod 2013, Calgary, AB, Canada, June 7-9, 2013, pp. 1–5, 2013.
- [6] V. R. Cadambe, A. Mazumdar, “Bounds on the size of locally recoverable codes,” IEEE Trans. Inf. Theory, vol. 61, no. 11, pp. 5787–5794, Nov. 2015.
- [7] M. Ceria, A. Cossidente, G. Marino, F. Pavese, “On near-MDS codes and caps,” Des. Codes Cryptogr., vol. 91, pp. 1095–1110, Mar. 2023.
- [8] M. A. de Boer, “Almost MDS codes,” Des. Codes Cryptogr., vol. 9, pp. 143–155, Oct. 1996.
- [9] C. Dahl, J. P. Pedersen, “Cyclic and pesudo-cyclic MDS codes of length ,” J. Combinat. Theory, Series A, vol. 59, no. 1, pp. 130–133, Jan. 1992.
- [10] C. Ding, Codes from Difference Sets, World Scientific, Singapore, 2015.
- [11] C. Ding, Z. Heng, “The subfield codes of ovoid codes,” IEEE Trans. Inf. Theory, vol. 65, no. 8, pp. 4715–4729, Aug. 2019.
- [12] C. Ding, C. Tang, “Infinite families of near MDS codes holding -designs,” IEEE Trans. Inf. Theory, vol. 66, no. 9, pp. 5419–5428, Sept. 2020.
- [13] C. Ding, C. Tang, Designs from Linear Codes, Second Edition, World Scientific, Singapore, 2022.
- [14] S. Dodunekov, I. Landgev, “On near-MDS codes,” J. Geometry, vol. 54, pp. 30–43, Nov. 1995.
- [15] A. Faldum, W. Willems, “Codes of small defect,” Des. Codes Cryptogr., vol. 10, pp. 341–350, Mar. 1997.
- [16] M. Grassl, Bounds on the minimum distance of linear codes and quantum codes, Online available at http://www.codetables.de.
- [17] M. Giulietti, F. Pasticci, “On the completeness of certain -tracks arising from elliptic curves,” Finite Fields Appl., vol. 13, no. 4, pp. 988–1000, Nov. 2007.
- [18] P. Gopalan, C. Huang, H. Simitci, S. Yekhanin, “On the locality of codeword symbols,” IEEE Trans. Inf. Theory, vol. 58, no. 11, pp. 6925–6934, Nov. 2012.
- [19] Z. Heng, C. Ding, “The subfield codes of hyperoval and conic codes,” Finite Fields Appl., vol. 56, pp. 308–331, Mar. 2019.
- [20] Z. Heng, C. Ding, W. Wang, “Optimal binary linear codes from maximal arcs,” IEEE Trans. Inf. Theory, vol. 66, no. 9, pp. 5387–5394, Sept. 2020.
- [21] Z. Heng, C. Li, W. Wang, “Constructions of MDS, near MDS and almost MDS codes from cyclic subgroups of ,” IEEE Trans. Inf. Theory, vol. 68, no. 12, pp. 7817–7831, Dec. 2022.
- [22] Z. Heng, X. Wang, “New infinite families of near MDS codes holding -designs,” Disc. Math., vol. 346, no. 10, 113538, Oct. 2023.
- [23] W. C. Huffman, V. Pless, Fundamentals of Error-Correcting Codes, Cambridge University Press, Cambridge, 2003.
- [24] K. Ireland, M. Rosen, A classical introduction to modern number theory, second ed., Grad. Texts in Math., vol. 84, Springer-Verlag, 1990.
- [25] C. Li, P. Wu, F. Liu, “On two classes of primitive BCH codes and some related codes,” IEEE Trans. Inf. Theory, vol. 65, no. 6, pp. 3830–3840, Jun. 2009.
- [26] Q. Liu, C. Ding, S. Mesnager, C. Tang, V. D. Tonchev, “On infinite families of narrow-sense antiprimitive BCH codes admitting -transitive automorphism groups and their consequences,” IEEE Trans. Inf. Theory, vol. 68, no. 5, pp. 3096–3107, May 2021.
- [27] S. Li, “The minimum distance of some narrow-sense primitive BCH codes,” SIAM J. Disc. Math., vol. 31, no. 4, pp. 2530–2569, Apr. 2017.
- [28] X. Li, Z. Heng, Constructions of near MDS codes which are optimal locally recoverable codes, arXiv:2204.11208v1
- [29] X. Li, Z. Heng, “A construction of optimal locally recoverable codes,” Cryptogr. Commun., vol. 15, pp. 553–563, May 2023.
- [30] Y. Liu, R. Li, Q. Fu, L. Lu, Y. Rao, “Some binary BCH codes with length ,” Finite Fields Appl., vol. 55, pp. 109–133, Jan. 2019.
- [31] F. J. MacWilliams, N. J. A. Sloane, The Theory of Error-Correcting Codes, North-Holland, Amsterdam, 1977.
- [32] S. Marcugini, A. Milani, F. Pambianco, “NMDS codes of maximum length over , ,” IEEE Trans. Inf. Theory, vol. 48, no. 4, pp. 963–966, Apr. 2002.
- [33] S. Mehta, S. Sen, “Secret sharing using near-MDS codes,” in Codes, Cryptology and Information Security, pp. 195–214, 2019.
- [34] X. Shi, Q. Yue, Y. Wu, “The dual-containing primitive BCH codes with the maximum designed distance and their applications to quantum codes,” Des. Codes Cryptogr., vol. 87, no. 9, pp. 2165–2183, Sept. 2019.
- [35] P. Tan, C. Fan, C. Ding, C. Tang, Z. Zhou, “The minimum locality of linear codes,” Des. Codes Cryptgr., vol. 91, pp. 83–114, Jan. 2023.
- [36] C. Tang, C. Ding, “An infinite family of linear codes supporting -designs,” IEEE Trans. Inf. Theory, vol. 67, no. 1, pp. 244–254, Jan. 2021.
- [37] K. Tzeng, C. Hartmann, “On the minimum distance of certain reversible cyclic codes (corresp.),” IEEE Trans. Inf. Theory, vol. 16, no. 5, pp. 644–646, Sept. 1970.
- [38] Q. Wang, Z. Heng, “Near MDS codes from overal polynomials,” Disc. Math., vol. 344, no. 4, 112277, Apr. 2021.
- [39] X. Wang, D. Zheng, “The subfield codes of several classes of linear codes,” Cryptogr. Commun., vol. 12, pp. 1111–1131, Nov. 2020.
- [40] G. Xu, X. Cao, L. Qu, “Infinite families of -designs and -designs from almost MDS codes,” IEEE Trans. Inf. Theory, vol. 68, no. 7, pp. 4344–4353, Jul. 2022
- [41] L. Xu, C. Fan, D. Han, “Near-MDS codes from maximal arcs in PG,” arXiv:2208.08578 [cs.IT].
- [42] H. Yan, H. Liu, C. Li, S. Yang, “Parameters of LCD BCH codes with two lengths,” Adv. in Math. of Comm., vol. 12, no. 3, pp. 579–594, Jul. 2018.
- [43] Q. Yan, J. Zhou, “Infinite families of linear codes supporting more -designs,” IEEE Trans. Inf. Theory, vol. 68, no. 7, pp. 4365–4377, Jul. 2022.
- [44] H. Zhu, M. Shi, X. Wang, Tor Helleseth, “The -ary antiprimitive BCH codes,” IEEE Trans. Inf. Theory, vol. 68, no. 3, pp. 1683–1695, Mar. 2022.