Abstract
The weight distribution and weight hierarchy of a linear code are two important research topics in coding theory. In this paper, by choosing proper defining sets from inhomogeneous quadratic functions over \({\mathbb {F}}_{q}^{2}\), we construct a family of three-weight p-ary linear codes and determine their weight distributions and weight hierarchies. Most of the codes can be used in secret sharing schemes.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
For an odd prime number p and a positive integer e, let \( {\mathbb {F}}_{q} \) be the finite field with \( q=p^{e} \) elements and \({\mathbb {F}}_{q}^{*}\) be its multiplicative group.
An [n, k, d] p-ary linear code C is a k-dimensional subspace of \( {\mathbb {F}}_{p}^{n} \) with minimum (Hamming) distance d. For \(0\le i \le n\), let \(A_i\) denote the number of codewords with Hamming weight i in a code C of length n. The weight enumerator of C is defined by \(1 + A_1z+ A_2z^2 + \cdots + A_nz^n \). The sequence \((1,A_{1},\ldots ,A_{n})\) is called the weight distribution of C. A code C is said to be a t-weight code if the number of nonzero \(A_i\) in the sequence \((A_{1},\ldots ,A_{n})\) is equal to t. The weight distribution can give the minimum distance of the code. Moreover, it allows the computation of the error probability of error detection and correction [23].
The weight distribution of a linear code is an important research topic in coding theory. Some researchers devoted themselves to calculating the weight distributions of linear codes [8, 14, 15, 37, 49]. Linear codes with a few weights can be applied to secret sharing [50], association schemes [5], combinatorial designs [38], authentication codes [13] and strongly regular graphs [6]. There are some studies about linear codes with a few weights, for which the reader is referred to [22, 24, 26, 33, 34, 36].
The weight hierarchy of a linear code is another important research topic in coding theory [4, 7, 16, 17, 20, 45, 46, 48]. We recall the definition of the generalized Hamming weights of linear codes [45]. For an [n, k, d] code C and \(1\le r\le k\), denote by \( [C,r]_{p} \) the set of all its \({\mathbb {F}}_{p}\)-vector subspaces with dimension r. For \( H \in [C,r]_{p}\), define \( \text {Supp}(H)=\bigcup _{c\in H}\text {Supp}(c)\), where \(\text {Supp}(c)\) is the set of coordinates where c is nonzero, that is,
The r-th generalized Hamming weight (GHW) \( d_{r}(C)\) of C is defined to be
It is easy to see that \( d_{1}(C)\) is the minimum distance d. The weight hierarchy of C is defined as the sequence \( \big (d_{1}(C),d_{2}(C),\ldots ,d_{k}(C)\big )\). For more details, one is referred to [18]. There are some results about the weight hierarchies of linear codes [3, 21, 27,28,29, 31, 35, 47].
Let \(\mathrm {Tr}\) denote the trace function from \({\mathbb {F}}_{q}\) onto \({\mathbb {F}}_{p}\) throughout this paper. For \( D= \Big \{d_{1},d_{2},\ldots ,d_{n}\Big \}\subseteq {\mathbb {F}}_{q}^{*}\), a p-ary linear code \(C_{D}\) of length n is defined by
Here D is called the defining set of \(C_{D}\) and \(C_D\) can be called a trace code. This construction technique is called the defining-set construction of linear codes, which was first proposed by Ding et al. [10]. The defining-set construction is generic in the sense that many classes of known codes can be produced by selecting some proper defining sets. It has attracted a lot of attention, and a huge amount of linear codes with good parameters have been obtained [9, 11, 12, 14, 44, 49, 52].
In recent years, Shi et al. [39,40,41,42,43] refined the technique of the study of trace codes by using ring extensions of a finite field coupled with a linear Gray map and obtained many families of p-ary codes with few weights over different finite rings. Most of their obtained codes are optimal and minimal codes, which can be applied to secret sharing schemes (SSS).
Li et al. [25] extended Ding’s defining-set construction as follows. Recall that the ordinary inner product of vectors \(\mathrm {x}=(x_1,x_2,\ldots ,x_s),\ \mathrm {y}=(y_1,y_2,\ldots ,y_s) \in {\mathbb {F}}_{q}^{s}\) is
A p-ary linear code \( C_{\mathrm {D}} \) with length n can be defined by
where \( \mathrm {D}= \Big \{\mathrm {d}_{1},\mathrm {d}_{2},\ldots ,\mathrm {d}_{n}\Big \}\subseteq {\mathbb {F}}_{q}^{s}\backslash \big \{(0,0,\ldots ,0)\}\) is also called the defining set of \( C_{\mathrm {D}}\). Using this construction, some classes of linear codes with few weights have been constructed [2, 22, 26, 30, 31].
Tang et al. [44] constructed a p-ary linear code \(C_\mathrm {D}\) in (1) with at most five nonzero weights from inhomogeneous quadratic function and their defining set is \(\mathrm {D}=\Big \{x\in {\mathbb {F}}_{q}^{*}: f(x)-\mathrm {Tr}(\alpha x)=0\Big \}\), where \(\alpha \in {\mathbb {F}}_{q}^{*}\) and f(x) is a homogeneous quadratic function from \({\mathbb {F}}_{q}\) onto \({\mathbb {F}}_{p}\) defined by
In this paper, inspired by the works of [28, 44], we choose a defining set contained in \({\mathbb {F}}_{q}^{2} \) as follows. For \(\alpha \in {\mathbb {F}}_{q}^{*}\), set
where f(x) is defined in (3) and non-degenerate. So, the corresponding p-ary linear codes \(C_{\mathrm {D}}\) in (2) is
We mainly determine their weight distributions and weight hierarchies.
The remainder of this paper is organized as follows. Section 2 introduces some basic notation and results about quadratic forms. Section 3 presents the linear codes with three nonzero weights and determines their weight distributions and weight hierarchies. Section 4 summarizes this paper.
2 Preliminaries
In this section, we state some notation and basic facts on quadratic forms and f defined in (3). These results will be used in the rest of the paper.
2.1 Some notation fixed throughout this paper
For convenience, we fix the following notation. For basic results on cyclotomic field \( {\mathbb {Q}}(\zeta _{p}) \), one is referred to [19].
-
Let \(\mathrm {Tr}\) be the trace function from \({\mathbb {F}}_{q}\) to \({\mathbb {F}}_{p}\). Namely, for each \(x\in {\mathbb {F}}_{q}\),
$$\begin{aligned} \mathrm {Tr}(x)=x+x^{p}+ \cdots +x^{p^{e-1}}. \end{aligned}$$ -
\(p^{*}=(-1)^{\frac{p-1}{2}}p\).
-
\(\zeta _{p}=\exp (\frac{2\pi i}{p})\) is a primitive p-th root of unity.
-
\({\bar{\eta }}\) is the quadratic character of \({\mathbb {F}}_{p}^{*}\). It is extended by letting \({\bar{\eta }}(0)=0\).
-
Let \({\mathbb {Z}}\) be the rational integer ring and \({\mathbb {Q}}\) be the rational field. Let \({\mathbb {K}}\) be the cyclotomic field \({\mathbb {Q}}(\zeta _{p})\). The field extension \({\mathbb {K}}/{\mathbb {Q}}\) is Galois of degree \(p-1\). The Galois group \(\mathrm {Gal}({\mathbb {K}}/{\mathbb {Q}})=\Big \{\sigma _{z}: z\in ({\mathbb {Z}}/ p{\mathbb {Z}})^{*}\Big \}\), where the automorphism \(\sigma _{z}\) is defined by \(\sigma _{z}(\zeta _{p})=\zeta _{p}^{z}\).
-
\(\sigma _{z}(\sqrt{p^{*}})={\bar{\eta }}(z)\sqrt{p^{*}}\), for \(1\le z \le p-1\).
-
Let \(\Big \langle \alpha _{1},\alpha _{2},\ldots ,\alpha _{r}\Big \rangle \) denote a space spanned by \(\alpha _{1},\alpha _{2},\ldots ,\alpha _{r}\).
2.2 Quadratic form
Viewing \({\mathbb {F}}_{q}\) as an \({\mathbb {F}}_{p}\)-linear space and fixing \(\upsilon _{1},\upsilon _{2},\ldots ,\upsilon _{e} \in {\mathbb {F}}_{q} \) as its \({\mathbb {F}}_{p}\)-basis, then for any \(x=x_{1}\upsilon _{1}+x_{2}\upsilon _{2}+\cdots +x_{e}\upsilon _{e} \in {\mathbb {F}}_{q}\) with \(x_i\in {\mathbb {F}}_{p}, i=1,2,\ldots ,e\), there is an \({\mathbb {F}}_{p}\)-linear isomorphism \({\mathbb {F}}_{q}\simeq {\mathbb {F}}_{p}^e\) defined as:
where \(X=(x_1,x_2,\ldots ,x_e)\) is called the coordinate vector of x under the basis \(v_1,v_2,\ldots ,v_e\) of \({\mathbb {F}}_{q}\).
A quadratic form g over \({\mathbb {F}}_{q}\) with values in \({\mathbb {F}}_{p}\) can be represented by
where \(A=(a_{ij})_{n\times n}, a_{ij}\in {\mathbb {F}}_{p}, a_{ij}=a_{ji}\) and \(X^T\) is the transposition of X. Denote by \(R_g=\text {Rank}\ A\) the rank of g, there exists an invertible matrix M over \({\mathbb {F}}_{p}\) such that
is a diagonal matrix, where \(\lambda _{1},\lambda _{2},\ldots ,\lambda _{R_{g}}\in {\mathbb {F}}_{p}^{*}\). Let \(\varDelta _{g}=\lambda _{1}\lambda _{2}\cdots \lambda _{R_{g}}\), and \(\varDelta _{g}=1\) if \(R_{g}=0.\) We call \({\bar{\eta }}(\varDelta _{g})\) the sign \(\varepsilon _{g}\) of the quadratic form g. It is an invariant under nonsingular linear transformations in matrix.
Let
For an r-dimensional subspace H of \({\mathbb {F}}_{q}\), its dual space \(H^{\perp _g}\) is defined by
Restricting the quadratic form g to H, it becomes a quadratic form denoted by \(g|_{H}\) over H in r variables. In this situation, we denote by \(R_{H}\) and \(\varepsilon _{H}\) the rank and sign of \(g|_{H}\), respectively.
In the following, we suppose \(R_{g}=e\), i.e., g is a non-degenerate quadratic form. For \(\beta \in {\mathbb {F}}_{p}\), set
we shall give some lemmas, which are essential to prove our main results.
Lemma 1
[28, Proposition 1] Let g be a non-degenerate quadratic form and H be an r-dimensional nonzero subspace of \({\mathbb {F}}_{q}\), then
where \(v(\beta )=p-1\) if \(\beta =0\), otherwise \(v(\beta )=-1\).
Lemma 2
[28, Proposition 2] Let g be a non-degenerate quadratic form. For each \( r\ (0<2r < e)\), there exists an r-dimensional subspace \(H\subseteq {\mathbb {F}}_{p^{e}}(e>2)\) such that \(H\subseteq H^{\perp _g}\).
Lemma 3
[28, Proposition 3] Let g be a non-degenerate quadratic form and \( e=2s>2\). There exists an s-dimensional subspace \(H_{s}\subset {\mathbb {F}}_{p^{e}}\) such that \(H_{s}=H^{\perp _g}_{s}\) if and only if \(\varepsilon _{g}=(-1)^{\frac{e(p-1)}{4}}\).
Lemma 4
[28, Theorem 1] Let g be a non-degenerate quadratic form and \(\beta \) be a nonzero element in \({\mathbb {F}}_{p}\). If \(e(e > 2)\) is even, then for the linear codes \(C_{{\overline{D}}_{\beta }}\) in (1) with defining sets \({\overline{D}}_{\beta }\) defined in (6), we have
Lemma 5
[28, Theorem 2] Let g be a non-degenerate quadratic form and \(\beta \) be a nonzero element in \({\mathbb {F}}_{p}\). If \({\bar{\eta }}(\beta )=(-1)^{\frac{(e-1)(p-1)}{4}}\varepsilon _{g}\) and \(e\ (e\ge 3)\) is odd, then for the linear codes \(C_{{\overline{D}}_{\beta }}\) in (1) with defining sets \({\overline{D}}_{\beta }\) defined in (6), we have
In the following, we present some auxiliary results about f defined in (3), which will play important roles in settling the weight distributions and weight hierarchies. For more details, one is referred to [44].
For any \(x\in {\mathbb {F}}_{q}\), x can be uniquely expressed as \(x=x_{1}\upsilon _{1}+x_{2}\upsilon _{2}+\cdots +x_{e}\upsilon _{e}\) with \(x_i\in {\mathbb {F}}_{p}\). Hence, we have
where \(X=(x_1,x_2,\ldots ,x_e)\) and \(B=\Big (\frac{1}{2}\sum _{i=0}^{e-1}\mathrm {Tr}\big (a_i(v_j^{p^i}v_k+v_jv_k^{p^i})\big )\Big )_{e\times e}\). Thus, f is a quadratic form and for any \(x,y\in {\mathbb {F}}_{q}\), we have
where \(L_{f}\) is a linearized polynomial over \({\mathbb {F}}_q\) defined as
Let \(\mathrm {Im}(L_{f})=\Big \{L_{f}(x):x\in {\mathbb {F}}_q\Big \},\ \mathrm {Ker}(L_{f})=\Big \{x\in {\mathbb {F}}_q: L_{f}(x)=0\Big \}\) denote the image and kernel of \(L_{f}\), respectively. Noticing that f(x) is non-degenerate, we have \(R_f = e, \mathrm {Ker}(L_{f}) = \{0\}\) and \(\mathrm {Im}(L_{f}) = {\mathbb {F}}_q\). If \(L_{f}(a)=-\frac{b}{2},\) we denote a by \(x_{b}\).
The following two lemmas are essential to prove our main results.
Lemma 6
[44, Lemma 5] Let the symbols and notation be as above and f be defined in (3) and \(b\in {\mathbb {F}}_{q}\). Then
-
(1)
\(\sum \limits _{x\in {\mathbb {F}}_{q}}\zeta _{p}^{f(x)}=\varepsilon _{f}(p^{*})^{\frac{R_{f}}{2}}p^{e-R_f}\).
-
(2)
\( \sum \limits _{x\in {\mathbb {F}}_{q}}\zeta _{p}^{f(x)-\mathrm {Tr}(bx)} =\left\{ \begin{array}{ll} 0, &{} \text {if } b\notin \mathrm {Im}(L_{f}), \\ \varepsilon _{f}(p^{*})^{\frac{R_{f}}{2}}p^{e-R_f}\zeta _{p}^{-f(x_{b})}, &{} \text {if } b\in \mathrm {Im}(L_{f}). \end{array} \right. \)
where \(x_{b}\) satisfies \(L_{f}(x_{b})=-\frac{b}{2}\).
Lemma 7
[44, Lemma 4] With the symbols and notation above, we have the following.
-
(1)
\( \sum \limits _{y\in {\mathbb {F}}_{p}^{*}}\sigma _{y}((p^{*})^{\frac{r}{2}}) =\left\{ \begin{array}{ll} 0, &{} \text {if } r \ \text {is odd }, \\ p^r(p^{*})^{-\frac{r}{2}}(p-1), &{} \text {if } r \ \text {is even }. \end{array} \right. \)
-
(2)
For any \(z\in {\mathbb {F}}_{p}^{*}\), then
$$\begin{aligned} \sum \limits _{y\in {\mathbb {F}}_{p}^{*}}\sigma _{y}((p^{*})^{\frac{r}{2}}\zeta _{p}^{z}) =\left\{ \begin{array}{ll} {\bar{\eta }}(-z)p^r(p^{*})^{-\frac{r-1}{2}}, &{} \text {if } r \ \text {is odd }, \\ -p^r(p^{*})^{-\frac{r}{2}}, &{} \text {if } r \ \text {is even }. \end{array} \right. \end{aligned}$$
3 Linear codes from inhomogeneous quadratic functions
In this section, we study the weight distribution and weight hierarchy of \(C_\mathrm {D}\) in (5), where its defining set is
with \(\alpha \in {\mathbb {F}}_{q}^{*}\) and f(x) is defined in (3) and non-degenerate.
3.1 The weight distribution of the presented linear code
In this subsection, we first calculate the length of \(C_{\mathrm {D}}\) defined in (5) and the Hamming weight of nonzero codewords of \( C_{\mathrm {D}}\).
Lemma 8
Let \(\alpha \in {\mathbb {F}}_{q}^{*}\) and \(\mathrm {D}\) be defined in (4) and \(C_{\mathrm {D}}\) be defined in (5). Define \(n=|\mathrm {D}|\). Then,
Proof
By the orthogonal property of additive characters, we have
The desired conclusion then follows from \(\alpha \ne 0\) and \( \sum _{y\in {\mathbb {F}}_{q}}\zeta _{p}^{\mathrm {Tr}(z\alpha y)}=0\). \(\square \)
Lemma 9
Let \(\alpha \in {\mathbb {F}}_{q}^{*}\) and \(\mathrm {D}\) be defined in (4) and \(C_{\mathrm {D}}\) be defined in (5). Let \(c_{(u,v)}\) be the corresponding codeword in \(C_{\mathrm {D}}\) with \((u,v)\in {\mathbb {F}}_{q}^{2}\). We have the following.
-
(1)
When \(v\in {\mathbb {F}}_{q}\setminus {\mathbb {F}}_{p}^{*}\alpha \), we have \(\mathrm {wt}(c_{(u,v)})=p^{2e-2}(p-1)\).
-
(2)
When \(v\in {\mathbb {F}}_{p}^{*}\alpha \), we have the following three cases.
-
(2.1)
If \(u=0\), then
$$\begin{aligned} \mathrm {wt}(c_{(u,v)}) =\left\{ \begin{array}{ll} p^{2e-2}(p-1), &{} \text {if } e \ \text {is odd }, \\ p^{2e-2}(p-1)\Big (1-\varepsilon _{f}(p^{*})^{-\frac{e}{2}}\Big ), &{} \text {if } e \ \text {is even }. \end{array} \right. \end{aligned}$$ -
(2.2)
If \( u \ne 0 \) and \(f(x_{u})=0\), then
$$\begin{aligned} \mathrm {wt}(c_{(u,v)}) =\left\{ \begin{array}{ll} p^{2e-2}(p-1), &{} \text {if } e \ \text {is odd }, \\ p^{2e-2}(p-1)\Big (1-\varepsilon _{f}(p^{*})^{-\frac{e}{2}}\Big ), &{} \text {if } e \ \text {is even }. \end{array} \right. \end{aligned}$$ -
(2.3)
If \( u \ne 0 \) and \(f(x_{u}) \ne 0 \), then
$$\begin{aligned} \mathrm {wt}(c_{(u,v)}) =\left\{ \begin{array}{ll} p^{2e-2}\Big (p-1-\varepsilon _{f}{\bar{\eta }}(f(x_{u}))(p^{*})^{-\frac{e-1}{2}}\Big ), &{} \text {if } e \ \text {is odd }, \\ p^{2e-2}\Big (p-1+\varepsilon _{f}(p^{*})^{-\frac{e}{2}}\Big ), &{} \text {if } e \ \text {is even }. \end{array} \right. \end{aligned}$$
-
(2.1)
Proof
Put \(N(u,v)=\Big \{(x,y)\in {\mathbb {F}}_{q}^{2}: f(x)+\mathrm {Tr}(\alpha y)=0, \mathrm {Tr}(ux+vy) = 0\Big \}\), then the Hamming weight of \(c_{(u,v)}\) is \(n-|N(u,v)|+1\), where n is given in Lemma 8. Thus, we just need to evaluate the value of |N(u, v)|.
By the orthogonal property of additive characters, we have
-
(1)
When \(v\in {\mathbb {F}}_{q}\setminus {\mathbb {F}}_{p}^{*}\alpha \), the desired conclusion then follows from
$$\begin{aligned} \sum _{y\in {\mathbb {F}}_{q}}\zeta _{p}^{\mathrm {Tr}(z_{2}vy+z_{1}\alpha y)}=0. \end{aligned}$$ -
(2)
When \(v\in {\mathbb {F}}_{p}^{*}\alpha \), i.e., \(\alpha =zv\) for some \(z\in {\mathbb {F}}_{p}^{*}\), (8) becomes
$$\begin{aligned} |N(u,v)|&=p^{2e-2}+p^{e-2}\sum _{z_{1}\in {\mathbb {F}}_{p}^{*}}\sum _{x\in {\mathbb {F}}_{q}}\zeta _{p}^{z_{1}f(x)-z_{1}\mathrm {Tr}(zux)}\nonumber \\&=p^{2e-2}+p^{e-2}\sum _{z_{1}\in {\mathbb {F}}_{p}^{*}}\sigma _{z_{1}}\left( \sum _{x\in {\mathbb {F}}_{q}}\zeta _{p}^{f(x)-\mathrm {Tr}(zux)}\right) . \end{aligned}$$(9)If \(u=0\), by Lemmas 6 and 7, we have
$$\begin{aligned} |N(u,v)|&=p^{2e-2}+p^{e-2}\sum _{z_{1}\in {\mathbb {F}}_{p}^{*}}\sigma _{z_{1}}\Big (\varepsilon _{f}(p^{*})^{\frac{R_{f}}{2}}p^{e-R_f}\Big ) \\&=p^{2e-2}+p^{e-2}\varepsilon _{f}\sum _{z_{1}\in {\mathbb {F}}_{p}^{*}}\sigma _{z_{1}}\big ((p^{*})^{\frac{e}{2}}\big ) \\&=\left\{ \begin{array}{ll} p^{2e-2}, &{} \text {if } e \ \text {is odd }, \\ p^{2e-2}\Big (1+\varepsilon _{f}(p^{*})^{-\frac{e}{2}}(p-1)\Big ), &{} \text {if } e \ \text {is even }. \end{array} \right. \end{aligned}$$The desired conclusion of (2.1) is obtained. If \(u \ne 0 \), define \(c=zu\), we have \(x_{c}=zx_{u}\). By Lemma 6, (9) becomes
$$\begin{aligned} |N(u,v)|&=p^{2e-2}+p^{e-2}\sum _{z_{1}\in {\mathbb {F}}_{p}^{*}}\sigma _{z_{1}}\Big (\varepsilon _{f}(p^{*})^{\frac{R_{f}}{2}}p^{e-R_f}\zeta _{p}^{-f(x_{c})}\Big ) \\&=p^{2e-2}+p^{e-2}\varepsilon _{f}\sum _{z_{1}\in {\mathbb {F}}_{p}^{*}}\sigma _{z_{1}}\Big ((p^{*})^{\frac{e}{2}}\zeta _{p}^{-f(x_{c})}\Big ). \end{aligned}$$The last two conclusions follow directly from Lemma 7. \(\square \)
Remark 1
By Lemma 9, we know that, for \((u,v)(\ne (0,0))\in {\mathbb {F}}_{q}^{2}\), we have \(\mathrm {wt}(c_{(u,v)})>0\). So, the map: \({\mathbb {F}}_{q}^{2}\rightarrow C_{\mathrm {D}}\) defined by \((u,v)\mapsto c_{(u,v)} \) is an isomorphism in linear spaces over \({\mathbb {F}}_{p}\). Hence, the dimension of the code \(C_{\mathrm {D}}\) in (5) is equal to 2e.
Lemma 10
Let \(C_{\mathrm {D}}\) be defined in (5). Then, the minimal distance of the dual code \(C_{\mathrm {D}}^{\perp }\) is at least 2.
Proof
We prove it by contradiction. If the minimal distance of the dual code \(C_{\mathrm {D}}^{\perp }\) is less than 2, then there exists a coordinate i such that the i-th entry of all of the codewords of \(C_{\mathrm {D}}\) is 0, that is, \(\mathrm {Tr}(ux+vy)=0\) for all \((u,v)\in {\mathbb {F}}_{q}^{2}\), where \((x,y)\in \mathrm {D}\). Thus, by the properties of the trace function, we have \((x,y)=(0,0)\). It contradicts with \((x,y) \ne (0,0)\). \(\square \)
Theorem 1
Let \(\alpha \in {\mathbb {F}}_{q}^{*}\) and f be a non-degenerate homogeneous quadratic function defined in (3). Let \(\mathrm {D}\) be defined in (4) and the code \(C_{\mathrm {D}}\) be defined in (5). Then the code \(C_{\mathrm {D}}\) is a \([p^{2e-1}-1,2e]\) linear code over \( {\mathbb {F}}_{p} \) with the weight distribution in Tables 1 and 2.
Proof
By Lemma 8 and Remark 1, the code \(C_{\mathrm {D}}\) is a \([p^{2e-1}-1,2e]\) linear code over \( {\mathbb {F}}_{p} \). Now we shall prove the multiplicities \(A_{\omega _{i}}\) of codewords with weight \(\omega _{i}\) in \(C_{\mathrm {D}}\). Let us give the proofs of two cases, respectively.
(1) The case that e is odd.
For each \((u,v)\in {\mathbb {F}}_{q}^{2}\) and \( (u,v) \ne (0,0)\). By Lemmas 8 and 9, \(\mathrm {wt}(c_{(u,v)})\) has only three values, that is,
By Lemma 9, we have
where we use the fact that the number of nonzero solutions of the equation \(f(x)=0\) in \({\mathbb {F}}_{q}\) is \(p^{e-1}-1\) (see [32, Theorem 6.27]).
By Lemma 10 and the first two Pless power moments [18, p. 259], we obtain the system of linear equations as follows:
Solving the system, we get
This completes the proof of the weight distribution of Table 1.
(2) The case that e is even.
The proof is similar to that of Case (1) and we omit it here. The desired conclusion then follows from Lemmas 8 and 9 and the first two Pless power moments. \(\square \)
Example 1
Let \((p,e,\alpha )=(5,3,1)\) and \(f(x)=\mathrm {Tr}(x^{2})\). Then, the corresponding code \(C_{\mathrm {D}}\) has parameters [3124, 6, 2375] and the weight enumerator \(1+240x^{2375}+15224x^{2500}+160x^{2625}\), which is verified by a Magma program.
Example 2
Let \((p,e,\alpha )=(3,4,1)\) and \(f(x)=\mathrm {Tr}(\theta x^{2})\), where \(\theta \) is a primitive element of \({\mathbb {F}}_{q}\). By Corollary 1 in [44], we have \(\varepsilon _{f}=1\). Then, the corresponding code \(C_{\mathrm {D}}\) has parameters [2186, 8, 1296] and the weight enumerator \(1+66x^{1296}+6398x^{1458}+96x^{1539}\), which is verified by a Magma program.
Example 3
Let \((p,e,\alpha )=(3,4,\theta )\) and \(f(x)=\mathrm {Tr}(x^{2})\), where \(\theta \) is a primitive element of \({\mathbb {F}}_{q}\). By Corollary 1 in [44], we have \(\varepsilon _{f}=-1\). Then, the corresponding code \(C_{\mathrm {D}}\) has parameters [2186, 8, 1377] and the weight enumerator \(1+120x^{1377}+6398x^{1458}+42x^{1620}\), which is verified by a Magma program.
3.2 The weight hierarchy of the presented linear code
In this subsection, we give the weight hierarchy of \(C_{\mathrm {D}}\) in (5).
By Remark 1, we know that the dimension of the code \(C_{\mathrm {D}}\) defined in (5) is 2e. So, by [31, Proposition 2.1], we give a general formula, that is
which will be employed to calculate the generalized Hamming weight \(d_r(C_\mathrm {D})\). Here \(H_r^\perp = \Big \{\mathrm {x}\in {\mathbb {F}}_{q}^{2}:\ \mathrm {Tr}(\mathrm {x}\cdot \mathrm {y}) =0, \text {for any } \mathrm {y}\in H_r \Big \}\).
Let \(H_r\) be an r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\) and \(\beta _{1},\ldots ,\beta _{r}\) be an \({\mathbb {F}}_{p}\)-basis of \(H_r\). Set
Then, \(N(H_r) = (H_r^\perp \cap \mathrm {D})\cup \{(0,0)\}\), which concludes that \(|N(H_r)|=|H_r^\perp \cap \mathrm {D} |+1\). Hence, we have
Lemma 11
Let \(\alpha \in {\mathbb {F}}_{q}^{*}\) and f be a non-degenerate homogeneous quadratic function defined in (3) with the sign \(\varepsilon _f\). \(H_r\) and \(N(H_r)\) are defined as above. We have the following.
-
(1)
If \(\alpha \notin \mathrm {Prj}_{2}(H_r)\), then \(|N(H_r)|=p^{2e-(r+1)}\).
-
(2)
If \(\alpha \in \mathrm {Prj}_{2}(H_r)\), then
$$\begin{aligned} |N(H_r)|=p^{e-(r+1)}\left( q+\varepsilon _{f}\sum \limits _{(y_1,-u)\in H_r}\sum \limits _{z\in {\mathbb {F}}_{p}^{*}}\sigma _{z}\Big ((p^{*})^{\frac{e}{2}}\zeta _{p}^{f(x_{y_1})}\Big )\right) . \end{aligned}$$
Here \( \mathrm {Prj}_{2}\) is the second projection from \({\mathbb {F}}_{q}^{2}\) to \({\mathbb {F}}_{q}\) defined by \((x,y)\mapsto y\).
Proof
By the orthogonal property of additive characters, we have
where the last equation comes from
Denote \(B_{H_r}=\sum \limits _{\mathrm {x}=(x,y)\in {\mathbb {F}}_{q}^{2}}\sum \limits _{z\in {\mathbb {F}}_{p}^{*}}\sum \limits _{\mathrm {y}\in H_r}\zeta _{p}^{z f(x)+\mathrm {Tr}(\mathrm {x}\cdot \mathrm {y}+z \alpha y)}\), then we have
and
If \(\alpha \notin \mathrm {Prj}_{2}(H_r)\), then \(B_{H_r}=0\), which follows from \(\sum _{y\in {\mathbb {F}}_{q}}\zeta _{p}^{z\mathrm {Tr}(y_2y+\alpha y)}=0\).
If \(\alpha \in \mathrm {Prj}_{2}(H_r)\), by Lemma 6, we have
So, the desired result is obtained. Thus, we complete the proof. \(\square \)
In the following, we shall determine the weight hierarchy of \(C_{\mathrm {D}}\) in (5) by calculating \(|N(H_r)|\) in Lemma 11 and \(|H_{2e-r}\cap \mathrm {D}|\) in (11).
Theorem 2
Let \(e\ge 3\) and \(\alpha \in {\mathbb {F}}_{q}^{*}\) and f be a non-degenerate homogeneous quadratic function defined in (3) with the sign \(\varepsilon _f\). Let \(\mathrm {D}\) be defined in (4) and the code \(C_{\mathrm {D}}\) be defined in (5). Define
Then we have the following.
-
(1)
When \(e-e_0+1 \le r \le 2e\), we have
$$\begin{aligned} d_{r}(C_{\mathrm {D}})=p^{2e-1}-p^{2e-r}. \end{aligned}$$ -
(2)
When \(0< r\le e-e_0\), we have
$$\begin{aligned} d_{r}(C_{\mathrm {D}})=\left\{ \begin{array}{ll} p^{2e-1}-p^{2e-r-1}-p^{\frac{3e-3}{2}}, \text {if } 2\not \mid e \}, \\ p^{2e-1}-p^{2e-r-1}-(p-1)p^{\frac{3e-4}{2}}, \text {if } 2\mid e \text { and } \varepsilon _{f}=(-1)^{\frac{e(p-1)}{4}},\\ p^{2e-1}-p^{2e-r-1}-p^{\frac{3e-4}{2}}, \text {if } 2\mid e \text { and } \varepsilon _{f}=-(-1)^{\frac{e(p-1)}{4}}. \end{array} \right. \end{aligned}$$
Proof
-
(1)
When \(e-e_0+1 \le r \le 2e\), then \(0 \le 2e-r \le e_0+e-1\). Let \(T_{\alpha }=\Big \{x\in {\mathbb {F}}_{q}:\ \mathrm {Tr}(\alpha x)=0\Big \}\). It is easy to know that \(\dim (T_{\alpha })=e-1\). By Lemmas 2 and 3, there exists an \(e_0\)-dimensional subspace \(J_{e_0}\) of \({\mathbb {F}}_{q}\) such that \(f(x)=0\) for any \(x\in J_{e_0}\). Note that the dimension of the subspace \(J_{e_0}\times T_{\alpha }\) is \(e_0+e-1\). Let \(H_{2e-r}\) be a \((2e-r)\)-dimensional subspace of \(J_{e_0}\times T_{\alpha }\), then, \(|H_{2e-r}\cap \mathrm {D}|=p^{2e-r}-1\). Hence, by (11), we have
$$\begin{aligned} d_{r}(C_{\mathrm {D}})=n-\max \Big \{|\mathrm {D} \cap H|: H \in \big [{\mathbb {F}}_{p^{e}}^{2},2e-r\big ]_{p}\Big \}=p^{2e-1}-p^{2e-r}. \end{aligned}$$Thus, it remains to determine \(d_r(C_{\mathrm {D}})\) when \(0 < r \le e-e_0\).
-
(2)
When \(0 < r\le e-e_0\), we discuss case by case. Case 1 \(e (e\ge 3)\) is odd. In this case, \(e_0 = \frac{e-1}{2}\) and \(e-e_0 = \frac{e+1}{2}\), that is, \(0< r\le \frac{e+1}{2}\). When \(0< r < \frac{e+1}{2}\), let \(H_r\) be an r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\). If \(\alpha \in \mathrm {Prj}_{2}(H_{r})\), by Lemmas 7 and 11, we have
$$\begin{aligned} |N(H_r)|=p^{2e-(r+1)}\left( 1+(-1)^{\frac{(e-1)(p-1)}{4}}\varepsilon _{f}{\bar{\eta }}(-1)p^{-\frac{e-1}{2}}\sum _{(y_1,-\alpha )\in H_{r}}{\bar{\eta }}\big (f(x_{y_1})\big )\right) . \end{aligned}$$Now we want to construct \(H_r\) such that \(|N(H_r)|\) reaches its maximum, that is, the number of such as \((y_1,-\alpha )\) is maximal in \(H_{r}\) and for any \((y_1,-\alpha )\in H_{r}, {\bar{\eta }}(f(x_{y_1})) = (-1)^{\frac{(e-1)(p-1)}{4}}\varepsilon _{f}{\bar{\eta }}(-1)\). The constructing method is as follows. Taking an element \(a\in {\mathbb {F}}_{p}^{*}\) satisfying \({\overline{\eta }}(a)=(-1)^{\frac{(e-1)(p-1)}{4}}\varepsilon _{f}{\bar{\eta }}(-1)\), then, by Lemma 1 (or [32, Theorem 6.27]), we know that the length and the dimension of \(C_{{\overline{D}}_{a}}\) in (1) are \(p^{e-1}+{\bar{\eta }}(-1)p^{\frac{e-1}{2}}\) and e, respectively. Combining formula (11) with Lemma 5 ( or [28, Theorem 3] ), we have
$$\begin{aligned} d_{e-r}(C_{{\overline{D}}_{a}})&=p^{e-1}+{\bar{\eta }}(-1)p^{\frac{e-1}{2}}-\max \Big \{|{\overline{D}}_{a} \cap H|: H \in [{\mathbb {F}}_{q},r]_{p}\Big \}\\&=p^{e-1}+{\bar{\eta }}(-1)p^{\frac{e-1}{2}}-2p^{e-(e-r)-1}, \end{aligned}$$which follows that \( \max \Big \{|{\overline{D}}_{a} \cap H|: H \in [{\mathbb {F}}_{q},r]_{p}\Big \}=2p^{r-1}\). Thus, there exists an r-dimensional subspace \(J_{r}\) of \({\mathbb {F}}_{q}\) such that \(|{\overline{D}}_{a} \cap J_r| = 2p^{r-1}\). By Lemma 1, we know that \(R_{J_{r}}=1\) and \(\varepsilon _{J_r}={\overline{\eta }}(a)\), which concludes that there exists an \((r-1)\)-dimensional subspace \(J_{r-1}\) of \(J_{r}\) satisfying \(f(J_{r-1})=0\) and \({\overline{\eta }}(f(x))=(-1)^{\frac{(e-1)(p-1)}{4}}\varepsilon _{f}{\bar{\eta }}(-1)\), for each \(x\in J_{r}\setminus J_{r-1}\). Let \(\alpha _{1},\alpha _{2},\ldots ,\alpha _{r-1}\) be an \({\mathbb {F}}_{p}\)-basis of \(J_{r-1}\). Take an element \(\alpha _{r}\in J_{r}\setminus J_{r-1}\) and set
$$\begin{aligned} \mu _{1}=\alpha _{1}+\alpha _{r},\mu _{2}=\alpha _{2}+\alpha _{r},\ldots ,\mu _{r-1}=\alpha _{r-1}+\alpha _{r},\mu _{r}=\alpha _{r}, \end{aligned}$$clearly, \(\mu _{1},\mu _{2},\ldots ,\mu _{r-1},\mu _{r}\) is an \({\mathbb {F}}_{p}\)-basis of \(J_{r}\). Define
$$\begin{aligned} \lambda _{1}=(\mu _{1},-\alpha ),\lambda _{2}=(\mu _{2},-\alpha ),\ldots ,\lambda _{r-1}=(\mu _{r-1},-\alpha ),\lambda _{r}=(\mu _{r},-\alpha ) \end{aligned}$$and \(V_{r}=\Big \langle \lambda _{1},\lambda _{2},\ldots ,\lambda _{r-1},\lambda _{r}\Big \rangle \), then \(V_{r}\) is an r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\). Set \(S(-\alpha )=\Big \{(y,z)\in V_{r}:\ z=-\alpha \Big \}\), it is easy to know that the cardinal number of \(S(-\alpha )\) is \(p^{r-1}\). We assert that \(f(y)=f(\alpha _{r})\) for any \((y,-\alpha )\in S(-\alpha )\). In fact, \((y,-\alpha )\) has the following unique representation:
$$\begin{aligned} (y,-\alpha )&=x_{1}\lambda _{1}+x_{2}\lambda _{2}+\cdots +x_{r-1}\lambda _{r-1}+x_{r}\lambda _{r},\\&=(x_{1}\alpha _{1}+x_{2}\alpha _{2}+\cdots +x_{r-1}\alpha _{r-1}+\alpha _{r},-\alpha ), x_{i}\in {\mathbb {F}}_{p}, \end{aligned}$$thus, we have \(y=x_{1}\alpha _{1}+x_{2}\alpha _{2}+\cdots +x_{r-1}\alpha _{r-1}+\alpha _{r}\), which concludes that \(f(y)=f(\alpha _{r})\). Take
$$\begin{aligned} H_{r}=\Big \langle (L_f(\mu _{1}),-\alpha ),(L_f(\mu _{2}),-\alpha ),\ldots ,(L_f(\mu _{r-1}),-\alpha ),(L_f(\mu _{r}),-\alpha )\Big \rangle , \end{aligned}$$it is easily seen that \(H_{r}\) is our desired r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\) and its \(|N(H_r)|\) reaches the maximum
$$\begin{aligned} |N(H_r)|=p^{2e-(r+1)}\Big (1+p^{r-1-\frac{e-1}{2}}\Big ) = p^{2e-r-1} + p^{\frac{3e-3}{2}}. \end{aligned}$$So, for \(0< r < \frac{e+1}{2}\), the desired result is obtained by Lemma 11 and (12).
When \(r = \frac{e+1}{2}\), let \(H_r\) be an r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\). By Lemmas 7 and 11, we have \(|N(H_r)|\le 2p^{\frac{3(e-1)}{2}}\), which concludes that
by formula (12). On the other hand, by formula (11), we have
Now we want to construct a \(\frac{3e-1}{2}\)-dimensional subspace \(H_{\frac{3e-1}{2}}\) of \({\mathbb {F}}_{q}^{2}\) such that \(|H_{\frac{3e-1}{2}}\cap \mathrm {D}|\ge 2p^{\frac{3(e-1)}{2}}-1\), which concludes that
In fact, by the proof of (1), we know that the dimension of \( J_{\frac{e-1}{2}}\) is \( \frac{e-1}{2}\), then the dimension of \( J_{\frac{e-1}{2}}^{\perp _f}\) is \( \frac{e+1}{2}\). Taking \((u,v)\in \mathrm {D}\), where \(u\in J_{\frac{e-1}{2}}^{\perp _f}\) and \(f(u) \ne 0\), define \(H_{\frac{3e-1}{2}} = (J_{\frac{e-1}{2}}\times T_{\alpha }) \oplus \Big \langle (u,v) \Big \rangle \), then \(H_{\frac{3e-1}{2}}\) is our desired subspace of \({\mathbb {F}}_{q}^{2}\). So, for \(r = \frac{e+1}{2}\), we have
Case 2 \(e(e\ge 3) \) is even and \(\varepsilon _{f}=(-1)^{\frac{e(p-1)}{4}}\). In this case, \(e_0 = \frac{e}{2}\) and \(e-e_0 = \frac{e}{2}\), that is, \(0< r\le \frac{e}{2}\).
Suppose \(H_r\) is an r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\) and \(\alpha \in \mathrm {Prj}_{2}(H_{r})\). Recall that \(v(0)=p-1\) and \(v(x)=-1\) for \(x\in {\mathbb {F}}_{p}^{*}\) defined in Lemma 1. By Lemmas 7 and 11, we have
Let \(J_{r}\) be a subspace of \(J_{\frac{e}{2}}\) with a basis \(\mu _{1},\mu _{2},\ldots ,\mu _{r}\). Take
then \(|N(H_r)|\) reaches its maximum
So, for \(0< r\le \frac{e}{2}\), the desired result is obtained by Lemma 11 and (12).
Case 3 \(e (e\ge 3)\) is even and \(\varepsilon _{f}=-(-1)^{\frac{e(p-1)}{4}}\). In this case, \(e_0 = \frac{e-2}{2}\) and \(e-e_0 = \frac{e}{2}+1\), that is, \(0< r\le \frac{e}{2}+1\).
Suppose \(H_r\) is an r-dimensional subspace of \({\mathbb {F}}_{q}^{2}\) and \(\alpha \in \mathrm {Prj}_{2}(H_{r})\). By Lemmas 7 and 11, we have
Taking an element \(a\in {\mathbb {F}}_{p}^{*}\), then, by Lemma 1 (or [32, Theorem 6.26]), we know that the length and the dimension of \(C_{{\overline{D}}_{a}}\) in (1) are \(p^{e-1}+p^{\frac{e-2}{2}}\) and e, respectively.
When \(0< r\le \frac{e}{2}\), combining formula (11) with Lemma 4, we have
which follows that \(\max \Big \{|{\overline{D}}_{a} \cap H|: H \in [{\mathbb {F}}_{q},r]_{p}\Big \}=2p^{r-1}\). Thus, there exists an r-dimensional subspace \(J_{r}\) of \({\mathbb {F}}_{q}\) such that \(|{\overline{D}}_{a} \cap J_r| = 2p^{r-1}\). By Lemma 1, we know that \(R_{J_{r}}=1\) and \(\varepsilon _{J_r}={\overline{\eta }}(a)\), which concludes that there exists an \((r-1)\)-dimensional subspace \(J_{r-1}\) of \(J_{r}\) satisfying \(f(J_{r-1})=0\) and \({\overline{\eta }}(f(x))=(-1)^{\frac{(e-1)(p-1)}{4}}\varepsilon _{f}\), for each \(x\in J_{r}\setminus J_{r-1}\). Let \(\alpha _{1},\alpha _{2},\ldots ,\alpha _{r-1}\) be an \({\mathbb {F}}_{p}\)-basis of \(J_{r-1}\). Take an element \(\alpha _{r}\in J_{r}\setminus J_{r-1}\) and set
it’s obvious that \(\mu _{1},\mu _{2},\ldots ,\mu _{r-1},\mu _{r}\) is an \({\mathbb {F}}_{p}\)-basis of \(J_{r}\). Take
then \(|N(H_r)|\) reaches its maximum
So, for \(0< r\le \frac{e}{2}\), the desired result is obtained by Lemma 11 and (12).
When \(r=\frac{e}{2}+1\), combining formula (11) with Lemma 4, we have
which follows that \(\max \Big \{|{\overline{D}}_{a} \cap H|: H \in [{\mathbb {F}}_{q},\frac{e}{2}+1]_{p}\Big \}=p^{\frac{e}{2}}+p^{\frac{e-2}{2}}\). Thus, there exists an r-dimensional subspace \(J_{r}\) of \({\mathbb {F}}_{q}\) such that \(|{\overline{D}}_{a} \cap J_r| = p^{\frac{e-2}{2}}+p^{\frac{e}{2}}\). By the proof of Lemma 4 (or [28, Theorem 1]), we know that \(R_{J_r}=2\) and \(\varepsilon _{J_r}={\bar{\eta }}((-1)^{\frac{e}{2}-1})\varepsilon _f\). So, there exists an \((r-2)\)-dimensional subspace \(J_{r-2}\) of \( J_{r}\) satisfying \(f(J_{r-2})=0\). Let \(\alpha _{1},\alpha _{2},\ldots ,\alpha _{r-2}\) be an \({\mathbb {F}}_{p}\)-basis of \(J_{r-2}\). Choose two elements \(\gamma _{1}, \gamma _{2}\in J_{r}\setminus J_{r-2}\) such that \(\alpha _{1},\ldots ,\alpha _{r-2},\gamma _{1}, \gamma _{2}\) is an \({\mathbb {F}}_{p}\)-basis of \(J_{r}\). Set
it’s easy to see that \(\mu _{1},\mu _{2},\ldots ,\mu _{r-1},\mu _{r}\) is an \({\mathbb {F}}_{p}\)-basis of \(J_{r}\). Take \(H_{r}=\Big \langle (L_f(\mu _{1}),-\alpha ),(L_f(\mu _{2}),-\alpha ),\ldots ,(L_f(\mu _{r-1}),-\alpha ),(L_f(\mu _{r}),-\alpha )\Big \rangle \), then \(|N(H_r)|\) reaches its maximum
So, for \( r=\frac{e}{2}+1\), the desired result is obtained. \(\square \)
4 Concluding remarks
In this paper, inspired by the works of [28, 44], we constructed a family of three-weight linear codes using a special inhomogeneous quadratic function, and determined their weight distributions and weight hierarchies. Compared with the codes Tang et al. constructed in [44], the obtained codes in this paper have different weight distributions. They are also different from the weight distributions in the classical families in [11, 51, 52]. In our case, we note that the quadratic form f defined in (3) is non-degenerate. It is an open problem to determine the weight hierarchy of the code when f is degenerate.
Let \(w_{\min }\) and \(w_{\max }\) denote the minimum and maximum nonzero weight of our obtained code \(C_{\mathrm {D}}\) defined in (5), respectively. If \(e\ge 3\), then it can be easily checked that
By the results in [1] and [50], we know that every nonzero codeword of \(C_{\mathrm {D}}\) is minimal and most of the codes we constructed are suitable for constructing secret sharing schemes with interesting properties.
References
Ashikhmin A., Barg A.: Minimal vectors in linear codes. IEEE Trans. Inf. Theory 44(50), 2010–2017 (1998).
Ahn J., Ka D., Li C.: Complete weight enumerators of a class of linear codes. Des. Codes Cryptogr. 83(1), 83–99 (2017).
Beelen P.: A note on the generalized Hamming weights of Reed-Muller codes. Appl. Algebra Eng. Commun. 30, 233–242 (2019).
Bras-Amorós M., Lee K., Vico-Oton A.: New lower bounds on the generalized Hamming weights of AG codes. IEEE Trans. Inf. Theory 60(10), 5930–5937 (2014).
Calderbank A.R., Goethals J.M.: Three-weight codes and association schemes. Philips J. Res. 39, 143–152 (1984).
Calderbank A.R., Kantor W.M.: The geometry of two-weight codes. Bull. Lond. Math. Soc. 18, 97–122 (1986).
Cheng J., Chao C.: On generalized Hamming weights of binary primitive BCH codes with minimum distance one less than a power of two. IEEE Trans. Inf. Theory 43(1), 294–298 (1997).
Choi S.T., Kim J.Y., No J.S., Chung H.: Weight distribution of some cyclic codes. In: Proceedings of the International Symposium on Information Theory, pp. 2911–2913 (2012).
Ding C.: A construction of binary linear codes from Boolean functions. Discret. Math. 9, 2288–2303 (2016).
Ding C., Niederreiter H.: Cyclotomic linear codes of order \(3\). IEEE Trans. Inf. Theory 53(6), 2274–2277 (2007).
Ding K., Ding C.: A class of two-weight and three-weight codes and their applications in secret sharing. IEEE Trans. Inf. Theory 61(11), 5835–5842 (2015).
Ding K., Ding C.: Binary linear codes with three weights. IEEE Commun. Lett. 18(11), 1879–1882 (2014).
Ding C., Helleseth T., Kløve T., Wang X.: A generic construction of Cartesian authentication codes. IEEE Trans. Inf. Theory 53(6), 2229–2235 (2007).
Ding C., Li C., Li N., Zhou Z.: Three-weight cyclic codes and their weight distributions. Discret. Math. 339(2), 415–427 (2016).
Ding C., Liu Y., Ma C., Zeng L.: The weight distributions of the duals of cyclic codes with two zeros. IEEE Trans. Inf. Theory 57(12), 8000–8006 (2011).
Heijnen P., Pellikaan R.: Generalized Hamming weights of q-ary Reed-Muller codes. IEEE Trans. Inf. Theory 44(1), 181–196 (1998).
Helleseth T., Kløve T., Ytrehus O.: Codes, weight hierarchies, and chains. In: Singapore Iccs/isita 92 Communications on the Move IEEE (1992).
Huffman W.C., Pless V.: Fundamentals of Error-Correcting Codes. Cambridge University Press, Cambridge (2003).
Ireland K., Rosen M.: A classical introduction to modern number theory. In: Graduate Texts in Mathematics, vol. 84, 2nd edn. Springer, New York (1990).
Janwa H., Lal A.K.: On the generalized Hamming weights of cyclic codes. IEEE Trans. Inf. Theory 43(1), 299–308 (1997).
Jian G., Feng R., Wu H.: Generalized Hamming weights of three classes of linear codes. Finite Fields Appl. 45, 341–354 (2017).
Jian G., Lin C., Feng R.: Two-weight and three-weight linear codes based on Weil sums. Finite Fields Appl. 57, 92–107 (2019).
Kløve T.: Codes for Error Detection. World Scientific, Hackensack (2007).
Kong X., Yang S.: Complete weight enumerators of a class of linear codes with two or three weights. Discret. Math. 342(11), 3166–3176 (2019).
Li C., Bae S., Yang S.: Some results on two-weight and three-weight linear codes. Adv. Math. Commun. 13(1), 195–211 (2019).
Li C., Yue Q., Fu F.: A construction of several classes of two-weight and three-weight linear codes. Appl. Algebra Eng. Commun. 28(1), 1–20 (2018).
Li F.: A class of cyclotomic linear codes and their generalized Hamming weights. Appl. Algebra Eng. Commun. 29, 501–511 (2018).
Li F.: Weight hierarchy of a class of linear codes relating to non-degenerate quadratic forms. IEEE Trans. Inf. Theory 67(1), 124–129 (2021).
Li F., Li X.: Weight hierarchies of a family of linear codes associated with degenerate quadratic forms, arXiv:1804.06866 (2018).
Li F., Li X.: Weight distributions of several families of \(3\)-weight binary linear codes, arXiv:2002.01853v2 (2020).
Li F., Li X.: Weight distributions and weight hierarchies of two classes of binary linear codes. Finite Fields Appl. 73, 101865 (2021).
Lidl R., Niederreiter H.: Finite Fields. Cambridge University Press, New York (1997).
Liu H., Liao Q.: Several classes of linear codes with a few weights from defining sets over \({\mathbb{F}}_{p}+u{\mathbb{F}}_{p}\). Des. Codes Cryptogr. 87(1), 15–29 (2017).
Liu Y., Liu Z.: On some classes of codes with a few weights. Adv. Math. Commun. 12(2), 415–428 (2018).
Liu Z., Wang J.: Notes on generalized Hamming weights of some classes of binary codes. Cryptogr. Commun. 10, 645–657 (2020).
Luo G., Cao X.: Five classes of optimal two-weight linear codes. Cryptogr. Commun. 10, 1119–1135 (2018).
Luo J., Feng K.: On the weight distribution of two classes of cyclic codes. IEEE Trans. Inf. Theory 54(12), 5332–5344 (2008).
Olmez O.: A link between combinatorial designs and three-weight linear codes. Des. Codes Cryptogr. 86, 817–833 (2018).
Shi M., Guan Y., Solé P.: Two new families of two-weight codes. IEEE Trans. Inf. Theory 63(10), 6240–6246 (2017).
Shi M., Liu Y., Solé P.: Optimal two weight codes from trace codes over \({\mathbb{F}}_{2} + u{\mathbb{F}}_{2}\). IEEE Commun. Lett. 20(12), 2346–2349 (2016).
Shi M., Wu R., Liu Y., Solé P.: Two and three weight codes over \({\mathbb{F}}_{p} + u{\mathbb{F}}_{p}\). Cryptogr. Commun. 9(5), 637–646 (2017).
Shi M., Liu Y., Solé P.: Optimal two weight codes from trace codes over a non-chain ring. Discret. Appl. Math. 219, 176–181 (2017).
Shi M., Wu R., Qian L., Lin S., Solé P.: New Classes of \(p\)-ary few weights codes. Bull. Malays. Math. Sci. Soc. 42(4), 1393–1412 (2019).
Tang C., Xiang C., Feng K.: Linear codes with few weights from inhomogeneous quadratic functions. Des. Codes Cryptogr. 83(3), 691–714 (2017).
Wei V.K.: Generalized Hamming weights for linear codes. IEEE Trans. Inf. Theory 37(5), 1412–1418 (1991).
Wan Z.: The weight hierarchies of the projective codes from nondegenerate quadrics. Des. Codes Cryptogr. 4(4), 283–300 (1994).
Xiong M., Li S., Ge G.: The weight hierarchy of some reducible cyclic codes. IEEE Trans. Inf. Theory 62(7), 4071–4080 (2016).
Yang M., Li J., Feng K., Lin D.: Generalized Hamming weights of irreducible cyclic codes. IEEE Trans. Inf. Theory 61(9), 4905–4913 (2015).
Yang S., Yao Z., Zhao C.: The weight distributions of two classes of p-ary cyclic codes with few weights. Finite Fields Appl. 44, 76–91 (2017).
Yuan J., Ding C.: Secret sharing schemes from three classes of linear codes. IEEE Trans. Inf. Theory 52(1), 206–212 (2006).
Zhou Z., Ding C.: A class of three-weight cyclic codes. Finite Fields Appl. 25, 79–93 (2014).
Zhou Z., Li N., Fan C., Helleseth T.: Linear codes with two or three weights from quadratic bent functions. Des. Codes Cryptogr. 81(2), 283–295 (2016).
Acknowledgements
The authors are very grateful to the reviewers and the editors, for their comments and suggestions that improved the presentation and quality of this paper.
Author information
Authors and Affiliations
Corresponding author
Additional information
Communicated by V. A. Zinoviev.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
The research was supported by Anhui Provincial Natural Science Foundation No. 1908085MA02 and the National Science Foundation of China Grant Nos. 12001312 and 11701001.
Rights and permissions
About this article
Cite this article
Li, F., Li, X. Weight distributions and weight hierarchies of a family of p-ary linear codes. Des. Codes Cryptogr. 90, 49–66 (2022). https://doi.org/10.1007/s10623-021-00962-9
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10623-021-00962-9