Complete weight enumerators of a class of linear codes with two or three weights
Shudi Yang, Xiangli Kong

TL;DR
This paper constructs a class of linear codes with at most three weights, determines their complete weight enumerators, and explores their application in secret sharing schemes, extending previous results.
Contribution
It introduces a new class of linear codes with specific weight properties and provides their complete weight enumerators, extending prior research by Wang et al. (2017).
Findings
Codes are at most three-weight codes.
Codes are suitable for secret sharing schemes.
Extension of previous results by Wang et al. (2017).
Abstract
We construct a class of linear codes by choosing a proper defining set and determine their complete weight enumerators and weight enumerators. The results show that they are at most three-weight codes and they are suitable for applications in secret sharing schemes. We give an extension of the results raised by Wang et al.(2017).
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 · Cryptography and Data Security
Complete weight enumerators of a class of linear codes with two or three weights 111The work is partially supported by the National Natural Science Foundation of China (11701317,61772015,61472457,11571380), China Postdoctoral Science Foundation Funded Project (2017M611801) and Jiangsu Planned Projects for Postdoctoral Research Funds (1701104C). This work is also partially supported by Guangzhou Science and Technology Program (201607010144).
Shudi Yang
Xiangli Kong
School of Mathematical Sciences, Qufu Normal University, Shandong 273165, P.R.China
Abstract
We construct a class of linear codes by choosing a proper defining set and determine their complete weight enumerators and weight enumerators. The results show that they have at most three weights and they are suitable for applications in secret sharing schemes. This is an extension of the results raised by Wang et al. (2017).
keywords:
Linear code , Complete weight enumerator , Weight enumerator , Exponential sum
1 Introduction
Throughout this paper, let be an odd prime and for a positive integer . Denote by a finite field with elements. An linear code over is a -dimensional subspace of with minimum distance (see [21]). Let denote the number of codewords with Hamming weight in a linear code of length . The weight enumerator of is defined by . A code is called a -weight code if there are nonzero for .
The complete weight enumerator of a code over enumerates the codewords according to the number of symbols of each kind contained in each codeword. Denote elements of the field by . Also, let denote . For a codeword , let be the complete weight enumerator of , which is defined as
[TABLE]
where is the number of components of equal to , . The complete weight enumerator of the code is then
[TABLE]
The weight enumerators of linear codes have been well studied in literature, such as [11, 12, 22, 24, 28, 29] and references therein. The information of the complete weight enumerators of linear codes is of vital use because they can show the frequency of each symbol appearing in each codeword. Furthermore the complete weight enumerator has close relation to the deception probabilities of certain authentication codes [7], and is used to compute the Walsh transform of monomial and quadratic bent functions over finite fields [13]. More researches can be found in [2, 3, 8, 16, 17].
We introduce a generic construction of linear codes developed in [6, 9, 10]. Set , where . Denote by the absolute trace function from to . A linear code of length is defined by
[TABLE]
The set is called the defining set of . This construction technique is general and has received a good deal of attention, see [1, 14, 18, 19, 23, 25, 26] for more details.
Let be the greatest common divisor of positive integers and . Suppose that is even with and . Motivated by the above construction and the idea of [23], we investigate a class of linear codes with defining set
[TABLE]
where and . We will extend the results presented by Wang et al. [23] who studied the case where .
The remainder of this paper is organized as follows. In Section 2, we describe the main results of this paper, additionally we give some examples. In Section 3, we briefly recalls some definitions and results on exponential sums, then proves the main results. In Section 4, we make a conclusion.
2 Main results
In this section, we only introduce the complete weight enumerator and weight enumerator of with defining set . The main results of this paper are presented below, whose proofs will be given in Section 3. Denote .
Theorem 1**.**
If , then the code of (1) is a linear code with weight enumerator
[TABLE]
and its complete weight enumerator is
[TABLE]
Theorem 2**.**
If and , then the code of (1) is a linear code with weight enumerator
[TABLE]
and its complete weight enumerator is
[TABLE]
When or , the corresponding results are described below.
Corollary 1**.**
If , and , the set of (1) is a multi set with each codewords appear times. It is a linear code with only one nonzero weight .
Corollary 2**.**
If and , then the code of (1) is a linear code with only one nonzero weight .
Theorem 3**.**
Let be a generator of and . If , then the code of (1) is a linear code with weight enumerator
[TABLE]
and its complete weight enumerator is
[TABLE]
where is the quadratic character over .
Theorem 4**.**
Let be a generator of and . If , then the code of (1) is a linear code with weight enumerator
[TABLE]
and its complete weight enumerator is
[TABLE]
where is the quadratic character over .
Some concrete examples are provided to illustrate our results.
Example 1**.**
Let , and . Then , and . If , by Theorem 2, the corresponding code is a linear code. Its weight enumerator is , and its complete weight enumerator is
[TABLE]
If , by Theorem 4, the corresponding code has parameters with weight enumerator and complete weight enumerator
[TABLE]
These results coincide with the numerical computation by Magma.
Example 2**.**
Let , and . Then , and . By Theorem 1, the code has parameters with weight enumerator and complete weight enumerator
[TABLE]
By Theorem 3, the code is a linear code. Its weight enumerator is , and its complete weight enumerator is
[TABLE]
These results coincide with the numerical computation by Magma.
3 The proofs of the main results
3.1 Auxiliary results
In order to prove the results proposed in Section 2, we will use several results which are depicted and proved in the sequel. We start with group characters and exponential sums. For each , an additive character of is defined by for all , where and Tr is the simplification of the trace function from to . For , is called the canonical additive character of .
Let denote the quadratic character of and is extended by . The quadratic Gauss sum is defined by
[TABLE]
We denote and , where and are the quadratic character and canonical additive character of , respectively. Moreover, it is well known that and , where . See [10, 20] for more information.
The following lemmas will be of special use in the sequel.
Lemma 1** (Theorem 5.33, [20]).**
Let be odd and with . Then
[TABLE]
where is the quadratic character of .
Lemma 2** (Theorem 5.48, [20]).**
With the notation of Lemma 1, we have
[TABLE]
For and any integer , the exponential sum is defined by
[TABLE]
We recall some results of for and odd.
Lemma 3** (Theorem 2, [4]).**
Let and be even with . Then
[TABLE]
where .
Lemma 4** (Theorem 4.7, [5]).**
Let and be even with . Then unless the equation is solvable. There are two possibilities.
* If , then for any choice of , the equation has a unique solution and*
[TABLE]
* If and if the equation is solvable with some solution say, then*
[TABLE]
Lemma 5** (Theorem 4.1, [4]).**
For the equation is solvable for if and only if is even and
[TABLE]
In such cases there are non-zero solutions.
It follows that is a permutation polynomial of with if and only if is odd or is even with and .
3.2 The proofs of Theorems in Section 2
In this subsection, we will give the proofs of our main results presented in Section 2. Recall that , , is even with . The code with , is defined by
[TABLE]
where , with and . For convenience we define . Then the length of the code is for and otherwise for .
Lemma 6**.**
Let . Denote .
If , then
[TABLE]
- 2.
If , then
[TABLE]
Proof.
It follows that
[TABLE]
A straightforward calculation gives that for . Then the desired conclusion follows from Lemma 3. ∎
In order to investigate the weight enumerators of , we need to do some preparations. Observe that gives the zero codeword. Hence, we may assume that in the rest of this subsection. Let denote the number of components of that are equal to , where , and . That is
[TABLE]
Then it is easy to obtain the Hamming weight of , that is
[TABLE]
So we only consider and in the sequel.
By the definition of , we have
[TABLE]
where
[TABLE]
We are going to determine the values of in Lemmas 7 and 8. For later use, we set for in the sequel.
Lemma 7**.**
If , then has a solution in and the following assertions hold.
If , then
[TABLE]
- 2.
If , then
[TABLE]
Proof.
If , by Lemma 5, we know the equation is a permutation polynomial over and has a unique solution in . Thus is the unique solution for for any . According to Lemma 4, . It follows from (4) that
[TABLE]
If , then
[TABLE]
leading to the desired results.
Now we assume that in the rest of the proof. It follows that
[TABLE]
If , we have from Lemma 1 that
[TABLE]
This gives the desired assertion, completing the whole proof. ∎
Lemma 8**.**
Let . If has no solution in , then for . Suppose that has a solution in , we have
If , then
[TABLE]
- 2.
If , then
[TABLE]
Proof.
Let . By (4),
[TABLE]
For , it follows from Lemma 4 that unless the equation is solvable. Note that is not a permutation polynomial over by Lemma 5. By a similar argument as above, we obtain the desired conclusions. The details are omitted. ∎
Lemma 9**.**
With the notation introduced above, we denote
[TABLE]
If , then .
Proof.
Taking into account that is even and , we get from Lemma 5 that has solutions in , where . For two distinct elements and in , there are no common solutions for equations and . On the other hand, for each , we know is in and there exits an element such that . Hence we must have giving the desired conclusion. ∎
With the above preparations, we can prove our main results listed in Section 2. There are four cases to consider:
- (1)
and ,
- (2)
and ,
- (3)
and ,
- (4)
and .
3.2.1 The first case where and
In this subsection, we assume that and . Recall that and is the unique solution for the equation . By (2), (3.2), Lemmas 6 and 7, we have the following two lemmas.
Lemma 10**.**
If , and , then
[TABLE]
Lemma 11**.**
If and , then we have
[TABLE]
Now we are in a position to prove Theorem 1.
Proof of Theorem 1.
Denote
[TABLE]
The code has length and dimension , since for each . By the first two Pless Power Moments (see [15], page 260) the frequency of satisfies the following equations
[TABLE]
Solving the equations gives that
[TABLE]
This leads to the weight enumerator and complete weight enumerator given in Theorem 1. ∎
3.2.2 The second case where and
In this subsection, we assume that and . By (2), (3.2), Lemmas 6 and 8, we have the following two lemmas.
Lemma 12**.**
Let , and . If has no solution in , then
[TABLE]
If has a solution in , then
[TABLE]
Lemma 13**.**
Let and . If has no solution in , then
[TABLE]
If has a solution in , then we have
[TABLE]
Now it comes to prove Theorem 2.
Proof of Theorem 2.
Denote
[TABLE]
The code has length and dimension . It follows from Lemma 9 that . By the first two Pless Power Moments (see [15], page 260) the frequency of satisfies the following equations
[TABLE]
Solving the equations gives that
[TABLE]
This leads to the weight enumerator and complete weight enumerator given in Theorem 2. ∎
3.2.3 The third case where and
In this subsection, we assume that and . Recall that is the unique solution for the equation . By (3.2) and Lemma 7, we have the values of .
Lemma 14**.**
Assume that , , and . Then
[TABLE]
Lemma 15**.**
Assume that , and . Then we have
[TABLE]
Proof.
It follows from (2), Lemmas 6 and 14 that
[TABLE]
where . Taking into account that by Lemma 2, we get the desired results. ∎
The proof of Theorem 3 is given below.
Proof of Theorem 3.
In this case, it follows from Lemmas 14 and 15 that the weight of has possible values and . By a similar argument as above, we get the desired conclusions. The details are omitted here. ∎
3.2.4 The fourth case where and
In this subsection, we assume that and . By (2), (3.2), Lemmas 2 and 7, we have the values of and .
Lemma 16**.**
Let , , and . If has no solution in , then
[TABLE]
If has a solution in , then
[TABLE]
Lemma 17**.**
Let , and . If has no solution in , then
[TABLE]
If has a solution in , then we have
[TABLE]
Now we begin to prove Theorem 4.
Proof of Theorem 4.
In this case, it follows from Lemmas 16 and 17 that takes values in . By a similar argument as above, we get the desired conclusions. The details are omitted here. ∎
4 Concluding remarks
In this paper, we employed exponential sums to present the complete weight enumerator and weight enumerator of with defining set . As introduced in [27], any linear code over can be employed to construct secret sharing schemes with interesting access structures provided that
[TABLE]
where and denote the minimum and maximum nonzero weights in , respectively. For the linear codes in Theorems 1 and 3, we have if . Similarly for the linear codes in Theorems 2 and 4, we have if . We remark that the dimension of the code of this paper is small compared with its length and this makes it suitable for the application in secret sharing schemes with interesting access structures.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Ahn, J., Ka, D., Li, C.: Complete weight enumerators of a class of linear codes. Designs, Codes and Cryptography 83 , 83–99 (2017).
- 2[2] Bae, S., Li, C., Yue, Q.: On the complete weight enumerators of some reducible cyclic codes. Discrete Mathematics 338 (12), 2275–2287 (2015).
- 3[3] Blake, I.F., Kith, K.: On the complete weight enumerator of Reed-Solomon codes. SIAM J. Discret. Math. 4 (2), 164–171 (1991).
- 4[4] Coulter, R.S.: Explicit evaluations of some Weil sums. Acta Arithmetica 83 (3), 241–251 (1998).
- 5[5] Coulter, R.S.: The number of rational points of a class of Artin-Schreier curves. Finite Fields and Their Applications 8 , 397–413 (2002).
- 6[6] Ding, C.: Linear codes from some 2-designs. IEEE Transactions on Information Theory 61 (6), 3265–3275 (2015).
- 7[7] Ding, C., Helleseth, T., Kløve, T., Wang, X.: A generic construction of Cartesian authentication codes. IEEE Transactions on Information Theory 53 (6), 2229–2235 (2007).
- 8[8] Ding, C., Wang, X.: A coding theory construction of new systematic authentication codes. Theoretical Computer Science 330 , 81–99 (2005).
