arXiv:2609.02096cs.ITSep 2026

Manuscript Offprint

arXiv:2609.02096

New binary optimal LCD codes using heuristic embedding

Haeun Lim, Junmin An, Jon-Lark Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this paper, we investigate the construction of binary optimal LCD codes through short LCD embeddings. For this purpose, we design heuristic frameworks based on a greedy algorithm. We explore the search spaces of LCD embeddings using the fact that an invertible matrix together with an arbitrary matrix yields an LCD embedding. We therefore use elementary row operations on the invertible block and single entry-flips on the arbitrary block as local moves in a greedy algorithm. Using this method, we have found 14 optimal new LCD codes with dimensions 7 and 8 for lengths from 55 to 201.

1 Introduction

In 1992, J. L. Massey [19] defined LCD codes as linear codes with complementary duals. He showed that the nearest-codeword decoding problem for LCD codes can be reduced to the problem of finding the nearest codeword in a code C\mathcal{C} given a codeword in its dual. Also, LCD codes have been the subject of wide interest since Carlet and Guilley [6] investigated their application against side-channel attacks and fault injection attack.

Since finding optimal linear codes is a central problem in coding theory, the same problem is also fundamental for LCD codes. There has been extensive research in determining the largest minimum distances of LCD codes. Galvez et al. [8] determined the largest minimum distances of binary LCD codes for n≤12n \leq 12. For binary LCD codes with n≤50n \leq 50, partial results for various dimensions have been established in [3, 5, 10, 11, 15, 20]. A standard approach to determine the largest minimum distance of LCD codes is to explicitly construct codes obtaining the best known bounds. Various construction methods have been proposed in [5, 10, 11, 12, 15, 20], and these methods have produced new LCD codes that attain the best known upper bounds. In particular, Araya et al. [4] provided a classification of binary optimal LCD codes of dimensions three and four. Also, Liu et al. [18] provided a partial classification of binary optimal LCD codes of dimension five, while Liu and Li [17] obtained partial results on binary LCD codes of dimension six.

More recently, embedding methods have been developed as a new approach to constructing optimal LCD codes. Kim et al. [14] first proposed the shortest self-orthogonal embedding method, which constructs a given code into a self-orthogonal code by appending columns to its generator matrix. They provided an algorithm to embed a binary linear code of dimension three or four into a self-orthogonal code by appending the smallest number of columns. Kim and Choi [13] extended this result to codes of dimension five and six. The minimum number of columns required

*haeunlim@sogang.ac.kr, Department of Mathematics and Institute for Mathematical and Data Sciences, Sogang University, Seoul, Korea †junmin0518@sogang.ac.kr, Department of Mathematics and Institute for Mathematical and Data Sciences, Sogang University, Seoul, Korea ‡jlkim@sogang.ac.kr, Department of Mathematics and Institute for Mathematical and Data Sciences, Sogang University, Seoul, Korea to embed a given binary code into a self-orthogonal code was completely determined by An et al. [2]. Later, An et al. [1] extended the shortest self-orthogonal embedding method to LCD codes. Although their shortest LCD embedding method produced several new LCD codes, they noted a limitation of their approach. Since the shortest LCD embeddings are parameterized by an arbitrary invertible matrix and an arbitrary matrix of prescribed sizes, the resulting search space is too large for exhaustive enumeration.

Recently, heuristic algorithms have been employed to construct new LCD codes in [21]. Motivated by this work, we apply a heuristic algorithm to the shortest LCD embedding problem to efficiently find, among the shortest LCD embeddings of a given code, one with the largest possible minimum distance. We use a greedy algorithm in which local moves are defined on the two blocks of a shortest LCD embedding, namely, the invertible-matrix block and the arbitrary-matrix block. Specifically, we use elementary row operations on the invertible-matrix block and randomly flipped a single entry of the arbitrary-matrix block. As a result, we obtained 19 optimal LCD codes with dimensions 6≤k≤86 \leq k \leq 8 for lengths from 55 to 225, 14 of which are previously unknown. In addition, we obtained 159 LCD codes whose minimum distances are one below the bounds we have derived and 255 LCD codes whose minimum distances are two below those bounds.

This paper is organized as follows. Section 2 reviews basic notions from coding theory and introduces shortest LCD embeddings of binary linear codes, followed by a brief review of greedy algorithms. Section 3 describes our upper-bound construction and computational methodology. We present our computational results in Section 4. We conclude our paper in Section 5.