In this paper, we construct quaternary linear codes via simplicial complexes and we also determine the weight distributions of these codes. Moreover, we present an infinite family of minimal quaternary linear codes, which also meet the Griesmer bound.
Yang Pan, Yan Liu .
New classes of few-weight ternary codes from simplicial complexes. AIMS Mathematics, 2022, 7(3): 4315-4325.
doi: 10.3934/math.2022239
[2]
Hao Song, Yuezhen Ren, Ruihu Li, Yang Liu .
Optimal quaternary Hermitian self-orthogonal $ [n, 5] $ codes of $ n \geq 492 $. AIMS Mathematics, 2025, 10(4): 9324-9331.
doi: 10.3934/math.2025430
[3]
Shudi Yang, Zheng-An Yao .
Weight distributions for projective binary linear codes from Weil sums. AIMS Mathematics, 2021, 6(8): 8600-8610.
doi: 10.3934/math.2021499
[4]
Claude Carlet .
Identifying codewords in general Reed-Muller codes and determining their weights. AIMS Mathematics, 2024, 9(5): 10609-10637.
doi: 10.3934/math.2024518
[5]
Boran Kim, Chang Heon Kim, Soonhak Kwon, Yeong-Wook Kwon .
Jacobi forms over number fields from linear codes. AIMS Mathematics, 2022, 7(5): 8235-8249.
doi: 10.3934/math.2022459
[6]
Victoria Herranz, Diego Napp, Carmen Perea .
Weight-2 input sequences of $ 1/n $ convolutional codes from linear systems point of view. AIMS Mathematics, 2023, 8(1): 713-732.
doi: 10.3934/math.2023034
[7]
Jianying Rong, Fengwei Li, Ting Li .
Two classes of two-weight linear codes over finite fields. AIMS Mathematics, 2023, 8(7): 15317-15331.
doi: 10.3934/math.2023783
[8]
Yang Liu, Ruihu Li, Qiang Fu, Hao Song .
On the minimum distances of binary optimal LCD codes with dimension 5. AIMS Mathematics, 2024, 9(7): 19137-19153.
doi: 10.3934/math.2024933
[9]
Zhen Du, Chuanze Niu .
Weight distributions of a class of skew cyclic codes over $ M_{2}(\mathbb{F}_{2}) $. AIMS Mathematics, 2025, 10(5): 11435-11443.
doi: 10.3934/math.2025520
[10]
Sumaira Yasmin, Muhammad Qiyas, Lazim Abdullah, Muhammad Naeem .
Linguistics complex intuitionistic fuzzy aggregation operators and their applications to plastic waste management approach selection. AIMS Mathematics, 2024, 9(11): 30122-30152.
doi: 10.3934/math.20241455
Abstract
In this paper, we construct quaternary linear codes via simplicial complexes and we also determine the weight distributions of these codes. Moreover, we present an infinite family of minimal quaternary linear codes, which also meet the Griesmer bound.
1.
Introduction
Let m be a positive integer, q be a power prime, and (Vm,⋅) be an m-dimensional vector space over Fq, where ⋅ denotes an inner product on Vm. For a linear code of length n over Fq, there is a generic construction as follows:
CD={(x⋅d1,x⋅d2,⋯,x⋅dn):x∈Vm}
(1.1)
where, D={d1,⋯,dn}⊆Vm. The set D is called the defining set of the code CD. Although different orderings of the elements of D result in different codes, these codes are permutation equivalent and have the same parameters. If the set D is properly chosen, the code CD may have good parameters. The following two situations are common:
(1) When Vm=Fqm, x⋅y=Trm(xy) for x,y∈Fqm and Trm is the trace function from Fqm to Fq. In this case, the corresponding code CD in (1.1) is called a trace code over Fq. This generic construction was first introduced by Ding et al. [3]. Many known codes have been produced by selecting a proper defining set, see [6,10] for examples. Note that defining sets here are almost all related with trace functions, and the computations of weight distributions of corresponding linear codes are heavily dependent on known results of exponential sums.
(2) When Vm=Fmq, x⋅y=∑mi=1xiyi for x=(x1,…,xm),y=(y1,…,ym)∈Fmq. This standard construction in (1.1) can be also found in [7]. Recently, Zhou et al. [13] investigated four infinite families of binary linear codes and obtained some binary linear complementary dual or self-orthogonal codes based on the above generic construction.
Based on the construction for linear codes from functions, Hyun et al. [9] constructed some infinite families of binary optimal linear codes by choosing the support set of a Boolean function as the complement of some simplicial complexes. After that, a more general situation was considered by Hyun et al. [8] by using posets, and they presented some optimal and minimal binary linear codes not satisfying the condition of Ashikhmin-Barg [1]. Notice that linear codes from the generic construction via posets are all over prime fields and the main difficulty is to calculate the frequencies of their codewords. It seems that new techniques are required to go beyond prime fields. In this paper, we will provide such a technique for linear codes over the finite field F4.
The rest of this paper is organized as follows. In Section 2, we will recall some concepts of simplicial complexes, generating functions and investigate the structure of the finite field F4. In Section 3, we determine the weight distributions of these quaternary codes and find a class of minimal quaternary linear codes.
2.
Preliminaries
Let C be an [n,k,d] linear code over Fq. Assume that there are Ai codewords in C with Hamming weight i for 1≤i≤n. Then C has weight distribution (1,A1,…,An) and weight enumerator 1+A1z+⋯+Anzn. Moreover, if the number of nonzero Ai's in the sequence (A1,…,An) is exactly equal to t, then the code is called t-weight. An [n,k,d] code C is called distance optimal if there is no [n,k,d+1] code (that is, this code has the largest minimum distance for given length n and dimension k), and it is called almost optimal if an [n,k,d+1] code is distance optimal (refer to [7, Chapter 2]). On the other hand, the Griesmer bound[5] on an [n,k,d] linear code over Fq is given by ∑k−1i=0⌈dqi⌉≤n, where ⌈⋅⌉ is the ceiling function. We say that a linear code is a Griesmer code if it meets the Griesmer bound with equality. One can verify that Griesmer codes are distance-optimal.
2.1. Simplicial complexes and generating functions
Let Fq be the finite field with order q. Assume that m is a positive integer. The support supp(v) of a vector v∈Fmq is defined by the set of nonzero coordinates. The Hamming weight wt(v) of v∈Fmq is defined by the size of supp(v). For two subsets A,B⊆[m], the set {x:x∈A and x∉B} and the number of elements in the set A are denoted by A∖B and |A|, respectively.
For two vectors u,v∈Fm2, we say v⊆u if supp(v)⊆supp(u). We say that a family Δ⊆Fm2 is a simplicial complex if u∈Δ and v⊆u imply v∈Δ. For a simplicial complex Δ, a maximal element of Δ is one that is not properly contained in any other element of Δ. Let F={F1,…,Fl} be the family of maximal elements of Δ. For each F⊆[m], the simplicial complex ΔF generated by F is defined to be the family of all subsets of F.
Let X be a subset of Fm2. Hyun et al. [2] introduced the following m-variable generating function associated with the set X:
HX(x1,x2,…,xm)=∑u∈Xm∏i=1xuii∈Z[x1,x2,…,xm],
where u=(u1,u2,…,um)∈Fm2 and Z is the ring of integers.
The following lemma plays an important role in determining the weight distributions of the quaternary codes defined in (1.1).
Lemma 2.1.[2, Theorem 1] Let Δ be a simplicial complex of Fm2 with the set of maximal elements F. Then
HΔ(x1,x2,…,xm)=∑∅≠S⊆F(−1)|S|+1∏i∈∩S(1+xi),
where ∩S denotes the intersection of all elements in S. In particular, we also have |Δ|=∑∅≠S⊆F(−1)|S|+12|∩S|.
Example 2.2. Let Δ be a simplicial complex of F42 with the set of maximal elements F={(1,1,0,0),(1,0,1,1)}. Then
In the paper [12], the authors first constructed linear codes over the finite ring F2+uF2 with u2=0 and obtained many optimal binary linear codes by Gray map. After that, Wu et al. [11] also considered the case of Fp+uFp with u2=0 and p is an odd prime number. Let Z4 be the ring of integers modulo 4. For each u∈Z4 there is a unique representation u=a+2b, where a,b∈F2. Here the element 2 in Z4 plays a similar role, which like u for the ring F2+uF2, and the only difference is the characteristics of the two rings.
For the finite field F4, as we known F4≅F2[x]/⟨x2+x+1⟩, where x2+x+1 is the only irreducible polynomial of degree two in F2[x]. Let w be an element in some extend field of F2 such that w2+w+1=0. Then we have F4=F2(w) and for each u∈F4 there is a unique representation u=a+wb, where a,b∈F2. Let m be a positive integer, and Fm4 be the set of m-tuples over F4. Any vector x∈Fm4 can be written as x=a+wb, where a,b∈Fm2.
3.
Weight distributions of quaternary codes
In this section, we will construct some quaternary codes via simplicial complexes and determine the weight distributions of these codes.
There is a bijection between Fm2 and 2[m] being the power set of [m]={1,…,m}, defined by v↦ supp(v). Throughout this paper, we will identify a vector in Fm2 with its support.
Let A,B be two subsets of [m] and D=ΔcA+wΔB=Fm2∖ΔA+wΔB⊂Fm4, where w is an element in some extension field of F2 such that w2+w+1=0. We define a quaternary code as follows:
CD={ca=(a⋅d)d∈D:a∈Fm4}.
(3.1)
First of all, from (3.1), it is easy to check that the code CD is a linear quaternary code. The length of the code CD is |D|. If a=0, then the Hamming weight of the codeword ca is equal to wt(ca)=0. Next we assume that a≠0. Suppose that a=α+wβ, d=d1+wd2, where α=(α1,⋯,αm),β=(β1,⋯,βm)∈Fm2, d1∈ΔcA, and d2∈ΔB. Then
Theorem 3.1. Let A,B be two subsets of [m] and D=ΔcA+wΔB⊂Fm4. Then CD in (3.1) is a [(2m−2|A|)2|B|,m] quaternary code and its weight distribution is presented in Table 1.
Table 1.
Weight distribution of the code in Theorem 3.1.
Proof. It is easy to check that the length of the code CD is |D|=(2m−2|A|)2|B|. To compute the weight and frequency of a codeword, we need to introduce the following notation.
For X a subset of Fm2, we use χ(u|X) to denote a Boolean function in m-variable, and χ(u|X)=1 if and only if u⋂X=∅. For a vector u=(u1,…,um)∈Fm2 and a nonempty simplicial complex ΔA, by Lemma 2.1 we have
wt(ca)=34|D|−14(2m−2|A|)2|B|χ(β|B)+142|A|+|B|χ(β|A)(χ(β|B)+1)={34(2m−2|A|)2|B|, ifχ(β|B)=0 and χ(β|A)=0,34(2m−2|A|)2|B|+142|A|+|B|, ifχ(β|B)=0 and χ(β|A)=1,12(2m−2|A|)2|B|, ifχ(β|B)=1 and χ(β|A)=0,12(2m−2|A|)2|B|+122|A|+|B|, if χ(β|B)=1 and χ(β|A)=1.
(1) Note that χ(β|B)=0 and χ(β|A)=0 if and only if β∩(A∩B)≠∅. The number of such β is 2m−|A∩B|(2|A∩B|−1)=2m−2m−|A∩B|.
(2) Note that χ(β|B)=1 and χ(β|A)=1 if and only if β∩(A∪B)=∅. The number of such β is 2m−|A∪B|−1.
(3) Note that χ(β|B)=1 and χ(β|A)=0 if and only if β∩B=∅ and β∩A≠∅. The number of such β is (2m−|B|−1)−(2m−|A∪B|−1)=2m−|B|−2m−|A∪B|.
(4) The number of β such that χ(β|B)=0 and χ(β|A)=1 is 2m−1−(2m−2m−|A∩B|)−(2m−|A∪B|−1)−(2m−|B|−2m−|A∪B|)=2m−|A∩B|−2m−|B|.
Case 2. α≠0 and β=0. Then
wt(ca)=34|D|−14(2m−2|A|)2|B|χ(α|B)+142|A|+|B|χ(α|A)(χ(α|B)+1)={34(2m−2|A|)2|B|, ifχ(α|B)=0 and χ(α|A)=0,34(2m−2|A|)2|B|+142|A|+|B|, ifχ(α|B)=0 and χ(α|A)=1,12(2m−2|A|)2|B|, if χ(α|B)=1 and χ(α|A)=0,12(2m−2|A|)2|B|+122|A|+|B|, ifχ(α|B)=1 and χ(α|A)=1.
Similar to Case 1, the numbers of such α can be determined.
Case 3. α=β≠0. Then
wt(ca)=34|D|−14(2m−2|A|)2|B|χ(α|B)+142|A|+|B|χ(α|A)(χ(α|B)+1)={34(2m−2|A|)2|B|, if χ(α|B)=0 and χ(α|A)=0,34(2m−2|A|)2|B|+142|A|+|B|, if χ(α|B)=0 and χ(α|A)=1,12(2m−2|A|)2|B|, if χ(α|B)=1 and χ(α|A)=0,12(2m−2|A|)2|B|+122|A|+|B|, ifχ(α|B)=1 and χ(α|A)=1.
Similar to Case 1, the numbers of such α can be determined.
Hence α∩A≠∅. Note that the support of the vector α+β is equal to (supp(α)∪supp(β))∖(supp(α)∩supp(β)). From α∩A≠∅ and β∩A=∅, we have (α+β)∩A≠∅, which is a contradiction with (α+β)∩A=∅. Similarly, we have that there is no (α,β) such that T=2.
(3) T=1. In this case we have wt(ca)=34(2m−2|A|)2|B|+142|A|+|B|. Because α,β,α+β have the same status, without loss of generality, we suppose that χ(β|A)χ(β|B)=1. Then we have
{χ(β|A)χ(β|B)=1χ(β|A)χ(α+β|B)=0χ(α+β|A)χ(α|B)=0⟺{α∩A=∅,β∩B=∅β∩A≠∅ or (α+β)∩B≠∅(α+β)∩A≠∅ or α∩B≠∅⟺{α∩A=∅,β∩B=∅(α+β)∩(A∪B)≠∅.
The number of such (α,β) is (2m−|A|−1)(2m−|B|−2)−(2m−|A∪B|−1)(2m−|A∪B|−2).
(4) T=0. In this case we have wt(ca)=34(2m−2|A|)2|B|. The number of such (α,β) is (2m−1)(2m−2)−(2m−|A∪B|−1)(2m−|A∪B|−2)−(2m−|A|−1)(2m−|B|−2)+(2m−|A∪B|−1)(2m−|A∪B|−2)=(2m−1)(2m−2)−(2m−|A|−1)(2m−|B|−2).
This completes the proof.
Corollary 3.2. Let B be a subset of [m] and D=Fm2+wΔB⊂Fm4. Then CD is a [2m+|B|,m,2m+|B|−1] two-weight quaternary code and its weight distribution is presented in Table 2.
Table 2.
Weight distribution of the code in Corollary 3.2.
Corollary 3.3. Let A be a subset of [m] and D=ΔcA+wFm2⊂Fm4. Then CD is a [2m(2m−2|A|),m,3×22m−2−3×2|A|+m−2] two-weight quaternary code and its weight distribution is presented in Table 3.
Table 3.
Weight distribution of the code in Corollary 3.3.
We give the following examples to illustrate our main results.
Example 3.4. Let m=4, |B|=2, and D=Fm2+wΔB⊂Fm4. By Corollary 3.3, CD is a [64,4,32] quaternary code and its weight distribution is given by 1+9z32+246z48.
Example 3.5. Let m=4, |A|=3, and D=ΔcA+wFm2⊂Fm4. By Corollary 3.3 and database in [4], CD is a [128,4,96] quaternary optimal code and its weight distribution is given by 1+252z96+3z128.
Proposition 3.6. The code in Corollary 3.3 is a Griesmer code.
Proof. By Corollary 3.3, the parameters of the code are
For two vectors u,v∈Fmq, we say that u covers v if supp(v)⊆supp(u). A nonzero codeword u in a linear code C is said to be minimal if u covers the zero vector and the u itself but no other codewords in the code C. A linear code C is said to be minimal if every nonzero codeword in the code C is minimal.
The following lemma developed by Aschikhmin and Barg [1] is a useful criterion for a linear code to be minimal.
Lemma 3.7. A linear code C over Fq with minimum distance wmin is minimal provided that wmin/wmax>(q−1)/q, where wmax denotes the maximum nonzero Hamming weight in the code C.
Corollary 3.8. Let A be a proper subset of [m] and D=ΔcA+wFm2⊂Fm4 in Corollary 3.3. Then the code CD is minimal.
This work was supported by National Natural Science Foundation of China (12071138, 61772015 and 11961050) and the Guangxi Natural Science Foundation (2020GXNSFAA159053).
Conflict of interest
Authors declare no conflict of interest in this paper.
References
[1]
A. Ashikhmin, A. Barg, Minimal vectors in linear codes, IEEE T. Inform. Theory, 44 (1998), 2010-2017. doi: 10.1109/18.705584
[2]
S. Chang, J. Y. Hyun, Linear codes from simplicial complexes, Des. Codes Cryptogr., 86 (2018), 2167-2181. doi: 10.1007/s10623-017-0442-5
[3]
C. Ding, Linear codes from some 2-designs, IEEE T. Inform. Theory, 61 (2015), 3265-3275. doi: 10.1109/TIT.2015.2420118
[4]
M. Grassl, Bounds on the minimum distance of linear codes. Available from: http://www.codetables.de.
[5]
J. H. Griesmer, A bound for error correcting codes, IBM J. Res. Dev., 4 (1960), 532-542. doi: 10.1147/rd.45.0532
[6]
Z. Heng, Q. Yue, A class of binary linear codes with at most three weights, IEEE Commun. Lett., 19 (2015), 1488-1491. doi: 10.1109/LCOMM.2015.2455032
[7]
W. C. Huffman, V. Pless, Fundamentals of error-correcting codes, Cambridge: Cambridge University Press, 2003.
[8]
J. Y. Hyun, H. K. Kim, Y. S. Wu, Q. Yue, Optimal minimal linear codes from posets, Des. Codes Cryptogr., 88 (2020), 2475-2492. doi: 10.1007/s10623-020-00793-0
[9]
J. Y. Hyun, J. Lee, Y. Lee, Infinite families of optimal linear codes constructed from simplicial complexes, IEEE T. Inform. Theory, 66 (2020), 6762-6775. doi: 10.1109/TIT.2020.2993179
[10]
C. J. Li, Q. Yue, F. W. Li, Weight distributions of cyclic codes with respect to pairwise coprime order elements, Finite Fields Th Appl., 28 (2014), 94-114. doi: 10.1016/j.ffa.2014.01.009
[11]
Y. S. Wu, J. Y. Hyun, Few-weight codes over Fp+uFp associated with down sets and their distance optimal Gray image, Discrete Appl. Math., 283 (2020), 315-322. doi: 10.1016/j.dam.2020.01.019
[12]
Y. S. Wu, X. M. Zhu, Q. Yue, Optimal few-weight codes from simplicial complexes, IEEE T. Inform. Theory, 66 (2020), 3657-3663. doi: 10.1109/TIT.2019.2946840
[13]
Z. Zhou, X. Li, C. Tang, Binary LCD codes and self-orthogonal codes from a generic construction, IEEE T. Inform. Theory, 65 (2019), 16-27. doi: 10.1109/TIT.2018.2823704
This article has been cited by:
1.
Vidya Sagar, Ritumoni Sarma,
Octanary linear codes using simplicial complexes,
2022,
1936-2447,
10.1007/s12095-022-00617-z
2.
Yansheng Wu, Chengju Li, Fu Xiao,
Quaternary Linear Codes and Related Binary Subfield Codes,
2022,
68,
0018-9448,
3070,
10.1109/TIT.2022.3142300
3.
Yang Pan, Yan Liu,
New classes of few-weight ternary codes from simplicial complexes,
2022,
7,
2473-6988,
4315,
10.3934/math.2022239
4.
Vidya Sagar, Ritumoni Sarma,
Codes Over the Non-Unital Non-Commutative Ring E Using Simplicial Complexes,
2024,
70,
0018-9448,
3373,
10.1109/TIT.2024.3374420
5.
Hongwei Liu, Zihao Yu,
Linear codes from simplicial complexes over F2n