Constant composition codes derived from linear codes
Long Yu, Xiusheng Liu

TL;DR
This paper introduces a new class of linear codes with known weight distributions and constructs constant composition codes as their subcodes, some of which are nearly optimal.
Contribution
It presents a novel method for deriving constant composition codes from linear codes, expanding the coding theory toolkit.
Findings
Some codes are nearly optimal in performance.
Explicit constructions of constant composition codes are provided.
Weight distributions of the proposed codes are determined.
Abstract
In this paper, we propose a class of linear codes and obtain their weight distribution. Some of these codes are almost optimal. Moreover, several classes of constant composition codes(CCCs) are constructed as subcodes of linear codes.
| weight | frequency |
|---|---|
| weight | frequency |
|---|---|
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 · Algorithms and Data Compression
Constant composition codes derived
from linear codes
Long Yu, Xiusheng Liu Corresponding author.
Email addresses: [email protected] (Long Yu), [email protected] (Xiusheng Liu).
( School of Mathematics and Physics, Hubei Polytechnic University, Huangshi, 435003, China)
Abstract
In this paper, we propose a class of linear codes and obtain their weight distribution. Some of these codes are almost optimal. Moreover, several classes of constant composition codes(CCCs) are constructed as subcodes of linear codes.
Key Words Linear codes, Gauss sum, Constant composition codes
1 Introduction
Let be an odd prime and be a power of . A linear code over the finite field is a -dimensional subspace of with minimum Hamming distance . Let , where is a positive integer. Let denote the trace function from to . We define a linear code of length over by
[TABLE]
Let denote the number of codewords with Hamming weight in a linear code of length . The weight enumerator of is defined by
[TABLE]
The sequence is called the weight distribution of the code .
The construction of linear code defined by (1.1) is generic in the sense that many classes of known codes could be produced by selecting the suitable defining set . So, the corrosponing exponential sums can be computed by some technologies of finite field. Therefore, the weight distributions of a large number of linear codes (cyclic codes) were obtained (see [5, 6, 8, 9, 11, 12, 14, 15, 17, 18, 19, 20, 21, 22], and references theirin).
Let be an alphabet of size . An constant composition code(CCC) is a subset of size , minimal distance and where the element occurs exactly times in each codeword in .
Constant composition codes were studied already in the 1960s. Both algebraic and combinatorial constructions of CCCs have been proposed. For further information, the reader is referred to [1, 2, 3, 4, 13].
The aim of this paper is to construct CCCs from linear codes. Luo and Helleseth [13] proposed a new way to obtain CCCs from some known cyclic codes. Recently, Yu and Liu [16] construct several classes of CCCs form linear codes. Following this line, we define a class of linear codes by the set . When , Ding and Ding [6] have already studied this kind of linear codes. So, for , we investigate the weight distribution of (see Theorem 3.3). Furthermore, we choose a kind of set and obtain several classes of CCCs (see Theorem 4.1).
2 Preliminaries
Throughout this paper, we let , where is a positive integer. Let and be the quadratic multiplicative character on and , respectively. Let and be the canonical additive characters on and , respectively. We define , then the quadratic Gaussian sum on is defined by
[TABLE]
and the quadratic Gaussian sum on is defined by
[TABLE]
The following results are well known.
Lemma 2.1**.**
[7]** Let the notations be given as above, we have
[TABLE]
and
[TABLE]
Lemma 2.2**.**
[7]** Let be a nontrivial additive character of , and let with . Then
[TABLE]
The conclusion of the following lemma is easy to obtain.
Lemma 2.3**.**
If is odd, then for any . If is even, then for any .
We will need the following lemma.
Lemma 2.4**.**
[6]** With the notations given as above. For each , let
[TABLE]
Then
[TABLE]
At the end of this section, we give the LFVC bound of constant composition code.
Proposition 2.5**.**
[10]** Assume . Then, an CCC satisfies the following inequality
[TABLE]
If
[TABLE]
then we call CCC is optimal.
3 A class of linear code
In this section, for a fixed , we define set
[TABLE]
The corresponding linear code is given as
[TABLE]
where is the length of . In particular, when , Ding and Ding [6] investigated the weight distribution of linear code . Furthermore, Yu and Liu constructed a class of CCCs from code . Here, we calculate the weight distribution of linear code for and construct CCCs form .
Let for odd and for even , we have the following result.
Lemma 3.1**.**
With the notations given as above. Then
[TABLE]
Proof.
By Lemma 2.2, we have
[TABLE]
If , by Lemma 2.3, one has
[TABLE]
If , by Lemmas 2.2 and 2.3, then (3.3) is equal to
[TABLE]
The desired conclusions then follow from Lemma 2.1. ∎
The following lemma will be employed later.
Lemma 3.2**.**
For and , let
[TABLE]
Then
[TABLE]
Proof.
By definition, we have
[TABLE]
The desired conclusions then follow from Lemmas 2.4 and 3.1.
∎
Now, we give the main result in this section.
Theorem 3.3**.**
Let the notations be given as above.
- •
For odd , defined by (3.1) is an code with weight distribution in Table .
where .
- •
For even , defined by (3.1) is an code with weight distribution in Table .
where .
Proof.
It is easy to obtain from Lemma 2.4. If is odd, for , then
[TABLE]
Note that is a square element, then, by Lemma 2.4, we have the number of is
[TABLE]
Note that is a non-square element, then, by Lemma 2.4, we get the number of is
[TABLE]
If is even, then
[TABLE]
Note that when , we have for any . This implies that the dimension of linear code is .
Example 3.4**.**
Let , and is quare. By Magma, we have is a code, whcih confirms the results in Table .
Let , and is non-square. By Magma, we have is a code, whcih agrees with the results in Table .
Let , . By Magma, we have is a code, whcih agrees with the results in Table .
Let , . By Theorem 3.3, we have is a code, whcih confirms the results in Table . As we known, for , , the best code has parameters . This implies that is almost optimal.
∎
4 Constant composition codes
In this section, we will construct a class of CCCs as subcodes of linear code defined by (3.1). For each , we let
[TABLE]
Let . Define
[TABLE]
Theorem 4.1**.**
Let be even and . The code is a CCC with parameters , where
1) in the case of :
[TABLE]
2) in the case of square :
[TABLE]
3) in the case of non-square :
[TABLE]
Proof.
Note that , for any , by Lemmas 2.2 and 2.3, we have
[TABLE]
If , i.e. , then (4.7) is equal to
[TABLE]
If , i.e. , then (4.7) is equal to
[TABLE]
Case I: if is a square element, then we have
[TABLE]
Case II: if is a non-square element, then we have
[TABLE]
is the length of linear code . Note that is the size of , which can be obtained from Lemma 2.4. Denote by the Hamming distance of and . When and run through with , then runs through . Therefore, the minimal distance of is the same as that of .
The desired conclusions then follow from Lemmas 2.1 and 3.3. ∎
Corollary 4.2**.**
Let , then
[TABLE]
Proof.
Note that
[TABLE]
By Theorem 4.1, we finish the proof. ∎
Therefore, from Theorem 4.1 and Corollary 4.2, we have the following result.
Proposition 4.3**.**
For , then
[TABLE]
Remark 4.4**.**
By Proposition 4.3 and Theorem 4.1, We can check that
[TABLE]
Therefore, the LFVC bound cannot be applied to measure the optimality of these CCCs.
Acknowledgment
The authors would like to thank the referees for their comments that improved the readability of the paper. The work of L. Yu was support by research funds of HBPU(Grant No. 17xjz04R).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] W. Chu, C.J.Colbourn and P. Dukes, “Constructions for permutation codes in powerline communnications,” Des. Codes Cryptogr , 32 , 51–64, 2004.
- 2[2] C. Ding, “Optimal constant composition codes from zero-difference balanced functions,” IEEE Trans. Inf. Theory , 54 (12), 5766–5770, 2008.
- 3[3] C. Ding and J. Yin, “Algebraic constructions of constant composition codes,” IEEE Trans. Inf. Theory , 51 (4), 1585–1589, 2005.
- 4[4] C. Ding and J. Yuan, “A family of optimal constant-composition codes,” IEEE Trans. Inf. Theory , 51 (10), 3668–3671, 2005.
- 5[5] C. Ding and H. Niederreiter, “Cyclotomic linear codes of order 3 3 3 ,” IEEE Trans. Inf. Theory , 53 (6), 2274–2277, 2007.
- 6[6] K. Ding and C. Ding. “A Class of Two-Weight and Three-Weight Codes and Their Applications in Secret Sharing,” IEEE Trans. Inf. Theory , 61 (11), 5835–5842, 2015.
- 7[7] R. Lidl and H. Niederreiter, “Finite Fields,” Cambridge, U.K.: Cambridge Univ. Press, 1997.
- 8[8] C. Li, Q. Yue and F. Li, “Hamming weights of the duals of cyclic codes with two zeros,” IEEE Trans. Inform. Theory , 60 (7), 3895–3902, 2014.
