Skip to main content
Springer Nature - PMC COVID-19 Collection logoLink to Springer Nature - PMC COVID-19 Collection
. 2020 Jun 6;12097:173–180. doi: 10.1007/978-3-030-52200-1_17

Classification of Linear Codes by Extending Their Residuals

Stefka Bouyuklieva 13,, Iliya Bouyukliev 14
Editors: Anna Maria Bigatti8, Jacques Carette9, James H Davenport10, Michael Joswig11, Timo de Wolff12
PMCID: PMC7340893

Abstract

An approach for classification of linear codes with given parameters starting from their proper residual codes or subcodes is presented. The base of the algorithm is the concept of canonical augmentation which is important for parallel implementations. The algorithms are implemented in the programs LengthExtension and DimExtension of the package QextNewEdition. As an application, the nonexistence of binary [41, 14, 14] codes is proved.

Keywords: Linear code, Classification, Residual code

Introduction

The paper is a contribution to the problem of classifying linear codes with given parameters over finite fields with q elements. Many authors have considered this problem before [2, 3, 5, 10], and it is known to be very hard. The structure of the codes for classification is very important in the generation process. We discuss an algorithm that solves the following problem: Find all inequivalent codes with given parameters if the set of all residual codes with respect to a codeword with a given weight is given. The extension of the generator matrix of a given residual code can be done row by row or column by column. We consider in more details the problem how to generate only inequivalent codes and obtain all of needed codes. To do this, we use the concept of canonical augmentation [10, 12]. This concept is very important for parallel implementations. We also mention the dual problem namely the classification of linear codes by extending their proper subcodes.

The algorithms presented in this paper are implemented in the programs LengthExtension and DimExtension of the package QextNewEdition. Restrictions on the dual distance, minimum distance, etc. can be applied. The program will be available on the webpage

http://www.moi.math.bas.bg/moiuser/~data/Software/QextNewEdition

Preliminaries

Let q be a prime power and Inline graphic the finite field with q elements, Inline graphic. A linear code of length n, dimension k, and minimum distance d over Inline graphic is called an Inline graphic code. Two linear codes of the same length and dimension are equivalent if one can be obtained from the other by a sequence of the following transformations: (1) a permutation of the coordinate positions of all codewords; (2) a multiplication of a coordinate of all codewords with a nonzero element from Inline graphic; (3) a field automorphism. A sequence of the transformations given above that maps a code C to itself is called an automorphism of C. The set of all automorphisms of C forms a group, called the automophism group of the code and denoted by Inline graphic. The action of Inline graphic on the code partitions the set of its codewords into orbits.

The defined equivalence relation in the set of all linear Inline graphic codes partitions this set into equivalence classes. We choose a canonical representative of each equivalence class. If C is a linear Inline graphic code, we call the canonical representative of its equivalence class the canonical form of C and denote it by Inline graphic. If two codes Inline graphic and Inline graphic are equivalent they have the same canonical form, or Inline graphic.

Let C be an Inline graphic code and let c be a codeword of weight w. Then the residual code of C with respect to c, denoted Res(Cc), is the code of length Inline graphic punctured on the set of coordinates on which c is nonzero. If only the weight w of c is of importance, we will denote it by Res(Cw). The next result gives a lower bound for the minimum distance of residual codes.

Theorem 1

[8] Let C be an [nkd] code over Inline graphic and let c be a codeword of weight Inline graphic. Then Res(Cc) is an Inline graphic code, where Inline graphic.

We need also the following theorem

Theorem 2

Let C be an [nkd] code over Inline graphic and Inline graphic be codewords of the same weight Inline graphic such that Inline graphic for an automorphism Inline graphic. Then the residual codes Res(Cx) and Res(Cy) are equivalent.

Proof

Let Inline graphic, where Inline graphic, Inline graphic. Then for any Inline graphic we have

graphic file with name M29.gif

Without loss of generality we can take Inline graphic. Then the support of Inline graphic will be Inline graphic. If v is a codeword in C then Inline graphic and Inline graphic. Hence the restriction of Inline graphic on the first Inline graphic coordinates maps Res(Cx) to Res(Cy).

To see the connection to the dual code, we use a theorem that gives the relation between a punctured of a code C and a shortened of its dual code Inline graphic. A code C can be punctured on a coordinate set T of size t. We denote the resulting code by Inline graphic. Consider the set C(T) of codewords whose i-th coordinate is 0 if Inline graphic. C(T) is a subcode of C. Shortening C(T) on T gives a code of length Inline graphic called shortened code of C on T and denoted by Inline graphic. If we take T to be the support of the codeword Inline graphic of weight w, then Inline graphic is the residual code of Res(Cc) with respect to c.

Theorem 3

([9, Theorem 1.5.7]). Let C be an [nkd] code and T be a set of t coordinates. Then:

  • (i)

    Inline graphic and Inline graphic;

  • (ii)

    if Inline graphic, then Inline graphic and Inline graphic have dimensions k and Inline graphic, respectively;

  • (iii)

    if Inline graphic and T is the set of coordinates where a minimum weight codeword is nonzero, then Inline graphic and Inline graphic have dimensions Inline graphic and Inline graphic, respectively.

As a corollary we obtain

Corollary 1

Let C be an [nkd] code over Inline graphic with dual distance Inline graphic and let c be a codeword of weight Inline graphic. If T is the support of c then Inline graphic is a linear Inline graphic code and Inline graphic is a linear Inline graphic code.

Since Inline graphic is a shortened code of Inline graphic, its minimum distance is at least Inline graphic. Therefore we consider all Inline graphic codes with dual distance Inline graphic as residual codes and then extend them to the linear Inline graphic codes with dual distance Inline graphic.

We developed a second algorithm which extends all possible Inline graphic shortened codes to the [nkd] codes provided that their dual codes contain codewords of weight w, Inline graphic. The theoretical base of this algorithm is the following corollary.

Corollary 2

If C is a linear Inline graphic code whose dual code Inline graphic contains a codeword of weight w, Inline graphic, then C has a shortened code with parameters Inline graphic and dual distance Inline graphic.

Proof

Let Inline graphic be a vector of weight w. According to Theorem 2, its residual code Inline graphic has parameters Inline graphic where Inline graphic. Then Inline graphic is a shortened code of C with parameters Inline graphic (see Theorem 3 and Corollary 1).

Corollary 3

Let C be a linear Inline graphic code with dual distance Inline graphic. If no linear Inline graphic codes exist for Inline graphic then Inline graphic.

Proof

Suppose that Inline graphic and Inline graphic is a vector of weight Inline graphic. Then Inline graphic is a shortened code of C with parameters Inline graphic which is not possible. Hence Inline graphic.

The Construction

We are looking for all inequivalent linear codes with length n, dimension k, minimum distance d and dual distance at least Inline graphic. We propose two algorithms depending on the input codes.

The input in the first algorithm is a set of all inequivalent linear Inline graphic codes with dual distance Inline graphic where Inline graphic. These codes are all possible residual codes of Inline graphic linear codes with dual distance at least Inline graphic with respect to a codeword of weight w.

Without loss of generality, we can consider the generator matrices in the form

graphic file with name 495991_1_En_17_Equ3_HTML.gif

where Inline graphic is a Inline graphic matrix that generates the residual code Res(Cx), Inline graphic, Inline graphic. We construct the matrix Inline graphic row by row in the same way as it is in the program qext_l of the package Q-Extension [3]. The main question is which of the constructed in this way codes to take in our set of representatives of the equivalence classes. To do this, we use canonical augmentation [10, 12]. The presentation that follows differs from the original McKay’s paper [12] but the idea is the same.

First, we find the canonical form and the automorphism group of the constructed [nkd] code C. The orbits are ordered in the way described in [1] and this ordering depends on the canonical form Inline graphic and the automorphism group Inline graphic. Then we check if the vector x is in the first orbit in the set of all codewords of weight w in C. If not, we reject it (it can be obtained by another residual code), if yes we say that this code passes the parent test. Finally, we check for equivalence the codes obtained from the same residual code that have passed the parent test. A pseudocode is presented in Algorithm 1.

Theorem 4

The set M, obtained by Algorithm 1, consists of all inequivalent Inline graphic codes with dual distance Inline graphic that have codewords of weight w.

Proof

We have to prove that (1) any Inline graphic code with the needed dual distance is equivalent to a code in the set M, and (2) the codes in M are not equivalent.

  1. Let C be an Inline graphic code with dual distance Inline graphic. The set of all codewords of weight w is partitioned into orbits under the action of Inline graphic. These orbits are ordered depending on the canonical form Inline graphic (see [1] for details). Take a codeword x in the first orbit and the residual code Res(Cx). There is a code Inline graphic in the set R. If Inline graphic maps Res(Cx) into B, we can extend the map Inline graphic to Inline graphic, Inline graphic. If Inline graphic, then Inline graphic and the code Inline graphic passes the parent test (the codeword Inline graphic belongs to the first orbit in the partition of the set of all codewords of weight w in Inline graphic since Inline graphic). Hence there is a code that is equivalent to C, has a residual code in the set R and passes the parent test.

  2. If Inline graphic are two codes with the needed parameters, Inline graphic, Inline graphic are vectors of weight w, and both codes pass the parent test, then their residuals Inline graphic and Inline graphic are also equivalent (see Theorem 2).

graphic file with name 495991_1_En_17_Figa_HTML.jpg

The second algorithm extends all Inline graphic codes to the Inline graphic codes with dual distance Inline graphic whose dual codes contain codewords of weight w. The generator matrices of the considered codes have the form

graphic file with name 495991_1_En_17_Equ4_HTML.gif

where Inline graphic is the identity matrix, O is the Inline graphic zero matrix, A and Inline graphic are Inline graphic and Inline graphic matrices, respectively. We fill out the matrix A row by row in a similar way as it is done in [4]. The dual code Inline graphic has a generation matrix Inline graphic where Inline graphic generates the residual code of Inline graphic with respect to the codewords Inline graphic of weight w and it is the dual code of Inline graphic. To take only inequivalent codes, we apply Algorithm 1 to the dual codes.

Examples

We use the presented algorithms implemented in the programs LengthExtension and DimExtension to obtain a systematic classification of linear codes with specific properties and parameters over fields with 2, 3 and 4 elements. Besides specifying the parameters such as length (n), dimension (k) and minimum distance (d), many other constraints can be considered. We give two examples, both over the filed Inline graphic, but the first one uses the program LengthExtension and the second one DimExtension. All calculations have been done on 2 Inline graphic Intel Xeon E5-2620 V4, 32 thread computer.

Example 1

We construct all inequivalent Inline graphic codes from their residual Inline graphic codes with respect to a codeword of minimum weight 20. Since no Inline graphic code exists, the dual distance Inline graphic must be at least 2. Using the program Generation, we obtain 188572 inequivalent Inline graphic codes. Six of these codes have dual distance 1 (these codes have a zero coordinate) and therefore we cannot use them as residual codes. The other 188566 have dual distances 2 (30522 codes), 3 (158036 codes), and 4 (only 8 codes). Considering these codes as residual codes, the program LengthExtension constructs 424208 inequivalent Inline graphic codes. The calculations took 459 min. All doubly-even Inline graphic codes are classified in [11] and their number is 424207. There is only one code (up to equivalence) with these parameters which is not doubly-even. This code has a generator matrix

graphic file with name M151.gif

and weight enumerator Inline graphic. Its automorphism group is isomorphic to Inline graphic, where Inline graphic is the semi-direct product of the cyclic groups of orders 15 and 4, and Inline graphic is the symmetric group (calculated by GAP Computer Algebra System [6]). The group acts transitively on the coordinates and has order 360. The code is not self-orthogonal.

The following proposition allows one to reduce the number of cases that need to be considered for an exhaustive search for a certain class of codes.

Proposition 1

If binary linear [nk, 2d] codes exist then at least one of these codes is even.

Proof

Let C be a binary linear [nk, 2d] code. Suppose that C contains codewords of odd weight. If Inline graphic is the punctured code of C on the right-most coordinate then Inline graphic is an Inline graphic code where Inline graphic or 2d. Then we extend Inline graphic with one coordinate by adding an overall parity check. The resulting code Inline graphic is even and its parameters are [nk, 2d].

Proposition 2

Binary linear [41, 14, 14] codes do not exist.

Proof

According to Proposition 1, it is enough to prove the nonexistence of even codes with these parameters. Feulner proved in [5] that binary [35, 10, 13] code does not exist. We prove that binary [36, 11, 13] and [37, 12, 13] codes do not exist. The nonexistence of codes with these parameters proves that binary linear [36, 10, 14], [37, 11, 14] and [38, 12, 14] codes do not exist. This gives us that no linear Inline graphic codes exist for Inline graphic. According to Corollary 3, the dual distance of a binary [41, 14, 14] must be at least 6. Since no Inline graphic codes exist [7], Inline graphic. Therefore we are looking for binary even [41, 14, 14] codes with dual distance 6 and we try to construct them by extending all possible even Inline graphic codes with dual distance Inline graphic. The program Generation shows that there are exactly 209 inequivalent even Inline graphic codes with needed dual distance. Then we try to extend them using the program DimExtension. The result is ‘RES 0, Elapsed time: 432m’ which means that these codes cannot be extended to [41, 14, 14] codes and this result is obtained in 432 min.

Remark 1

The table of optimal codes [7] indicates that the existence of [40, 13, 14] binary codes is also unknown. If a code with these parameters exists, its dual distance can be 5 or 6. If C is a [40, 13, 14] binary even code with dual distance 5, it contains an even [35, 9, 14] shortened code with dual distance Inline graphic. By the program DimExtension, we obtain that these codes cannot be extended to [40, 13, 14] binary codes. This means that if a [40, 13, 14] binary even code exists, its dual distance is 6. Then this code contains a shortened code with parameters [34, 8, 14] and dual distance Inline graphic. There are 10 607 917 inequivalent [34, 8, 14] codes with needed dual distance. We were not able to extend all these codes for a reasonable time and therefore we have no result for the codes with parameters [40, 13, 14].

Acknowledgements

We are greatly indebted to the unknown referees for their useful suggestions.

Footnotes

Supported by Grant DN 02/2/13.12.2016 of the Bulgarian National Science Fund.

I. Bouyukliev—The research of the second author was supported, in part, by the Bulgarian Ministry of Education and Science by Grant No. DO1-221/03.12.2018 for NCHDC, a part of the Bulgarian National Roadmap on RIs.

Contributor Information

Anna Maria Bigatti, Email: bigatti@dima.unige.it.

Jacques Carette, Email: carette@mcmaster.ca.

James H. Davenport, Email: j.h.davenport@bath.ac.uk

Michael Joswig, Email: joswig@math.tu-berlin.de.

Timo de Wolff, Email: t.de-wolff@tu-braunschweig.de.

Stefka Bouyuklieva, Email: stefka@ts.uni-vt.bg.

Iliya Bouyukliev, Email: iliyab@math.bas.bg.

References

  • 1.Bouyukliev, I.: About the code equivalence. In: Shaska, T., Huffman, W., Joyner, D., Ustimenko, V. (eds.) Advances in Coding Theory and Cryptology, pp. 126–151 (2007)
  • 2.Bouyukliev, I., Bouyuklieva, S., Kurz, S.: Computer classification of linear codes. arXiv:2002.07826 [cs.IT] (2020)
  • 3.Bouyukliev I, Simonis J. Some new results for optimal ternary linear codes. IEEE Trans. Inf. Theory. 2002;48(4):981–985. doi: 10.1109/18.992814. [DOI] [Google Scholar]
  • 4.Bouyuklieva S, Bouyukliev I. Classification of the extremal formally self-dual even codes of length 30. Adv. Math. Commun. 2010;4(3):433–439. doi: 10.3934/amc.2010.4.433. [DOI] [Google Scholar]
  • 5.Feulner T. Classification and nonexistence results for linear codes with prescribed minimum distances. Des. Codes Cryptogr. 2014;70:127–138. doi: 10.1007/s10623-012-9700-8. [DOI] [Google Scholar]
  • 6.The GAP Group: GAP - Groups, Algorithms, and Programming, Version 4.11.0 (2020). https://www.gap-system.org
  • 7.Grassl, M.: Bounds on the minimum distance of linear codes and quantum codes. http://www.codetables.de. Accessed 10 Mar 2020
  • 8.Hill R, Newton DE. Optimal ternary linear codes. Des. Codes Crypt. 1992;2:137–157. doi: 10.1007/BF00124893. [DOI] [Google Scholar]
  • 9.Huffman WC, Pless V. Fundamentals of Error-Correcting Codes. Cambridge: Cambridge University Press; 2003. [Google Scholar]
  • 10.Kaski P, Östergård PR. Classification Algorithms for Codes and Designs. Heidelberg: Springer; 2006. [Google Scholar]
  • 11.Kurz, S.: The Inline graphic code is unique. arXiv:1906.02621v2 (2020)
  • 12.McKay B. Isomorph-free exhaustive generation. J. Algorithms. 1998;26:306–324. doi: 10.1006/jagm.1997.0898. [DOI] [Google Scholar]

Articles from Mathematical Software – ICMS 2020 are provided here courtesy of Nature Publishing Group

RESOURCES