arXiv:2609.02135cs.ITSep 2026

Manuscript Offprint

arXiv:2609.02135

Constraint-Preserving Genetic Algorithms for Embedding Linear Codes into Self-Orthogonal Codes

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 aim to construct binary optimal self-orthogonal codes using shortest self-orthogonal embedding methods. For this purpose, we design a heuristic framework based on a genetic algorithm. We explore the search space of shortest self-orthogonal embeddings using a fitness function based on the minimum distance and the number of minimum-weight codewords. We construct constraint-preserving crossover and mutation operations so that every chromosome yields a valid self-orthogonal embedding, while high-fitness structural features, such as favorable subsequences of orthogonal generators, are propagated across generations. We also analyze the time and storage complexity of the algorithm, and validate our design through an ablation study on guided crossover and a comparison with random search under an equal time budget. Using this method, we obtain 66 new binary optimal self-orthogonal codes that meet the upper bound, together with 135 further self-orthogonal codes attaining the best minimum distance found so far.

Keywords : self-orthogonal code, LCD code, embedding of codes, codes over rings

1 Introduction

Coding theory originated from Shannon's groundbreaking paper 'A Mathematical Theory of Communication' [26] and has developed into the study of error-correcting codes, which are used to detect and correct errors in noisy communication channels. One of the most fundamental problems in coding theory is to find optimal codes, namely, codes with the largest possible minimum distance for a given length and dimension. Finding optimal codes is generally a difficult problem, except for relatively small lengths and dimensions. Hence, there were many attempts to construct new optimal codes from previously known optimal codes. There are many methods that allow us to construct new codes from existing codes, including extension, puncturing, shortening, gluing [24], Plotkin construction [25], concatenation [8], Construction X [29], matrix-product codes [3], subfield subcodes [6], etc. By applying these methods, numerous new optimal codes have been constructed.

One of the most important classes of codes in coding theory is self-orthogonal codes. Ding [7] showed that self-orthogonal codes achieve the asymptotic Gilbert-Varshamov bound. Pless and

*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

Sloane [24] constructed unimodular lattices using self-dual codes, which form a subclass of self-orthogonal codes. Calderbank et al. [5] showed that constructing quantum error-correcting codes is equivalent to finding additive self-orthogonal codes over F4\mathbb{F}_4.

In this direction, methods for constructing optimal self-orthogonal codes have been widely studied. One such well-known method is the building-up construction, which constructs a self-orthogonal [n+2,k+1][n+2, k+1] code from a given self-orthogonal [n,k][n, k] code [17, 19, 11, 14]. Kim et al. [18] and Shi et al. [28] proposed methods to expand an [n,k][n, k] self-orthogonal code into an [n,k+1][n, k+1] self-orthogonal code over finite fields Fq\mathbb{F}_q and Z4\mathbb{Z}_4, respectively.

Recently, embedding method has been actively studied as a way to construct self-orthogonal codes by adding columns to a generator matrix of a given linear [n,k][n, k] code. One of the central problems in embedding method is to determine the minimum number of columns required to embed a given code into a self-orthogonal code. The embedding method was first introduced in [16], where the authors proposed an algorithm for constructing self-orthogonal codes over F2\mathbb{F}_2 by appending the minimum number of columns to a generator matrix of a linear code of dimension 3 or 4. Choi et al. [15] extended the original results to dimension 6. An et al. [1] determined the minimum number of columns required to embed a given code into a self-orthogonal code over F2\mathbb{F}_2. Wang et al. [30] generalized these results to linear codes over arbitrary finite fields Fq\mathbb{F}_q. Most recently, An et al. [2] studied the embedding of a linear code over Z4\mathbb{Z}_4 into self-orthogonal codes.

Although several new optimal codes have been discovered using these embedding methods, it is almost impossible, especially for codes with large dimensions, to search through all possible embeddings in order to find optimal codes. Thus, we aim to address this problem using a heuristic algorithm. Among heuristic algorithms, we choose a genetic algorithm for the self-orthogonal embedding.

Genetic algorithms(GA) are population-based metaheuristic optimization methods inspired by the mechanisms of natural selection and evolution [12]. Through gene-like operators such as crossover and mutations, GAs iteratively evolve candidate solutions toward optimality. Genetic algorithm is suitable for large-scale search problems, especially when the genetic operations can be designed to preserve the structural constraints of the problem. As a recent example of this approach in coding theory, Won et al. [31] successfully developed modified genetic algorithms to systematically construct new quaternary Hermitian LCD codes. By designing custom operators—such as modified crossover and complement—that intrinsically satisfy the strict algebraic conditions of quaternary Hermitian LCD codes, their algorithms effectively navigated the highly restricted search space.

Inspired by these successful applications of evolutionary computation, we propose a tailored genetic algorithm to discover the shortest self-orthogonal embeddings with high minimum distances. Our main contribution is to reformulate the shortest self-orthogonal embedding problem into a form suitable for a genetic algorithm. We encode chromosomes using generators of the orthogonal group so that genetic operations preserve the structural constraints of self-orthogonal embedding, and then apply a genetic algorithm to explore the search space of valid embeddings. We further analyze the time and storage complexity of the algorithm, and validate our design through experiments: an ablation study confirms the benefit of the guided crossover operator, and a comparison with random search under an equal time budget demonstrates the effectiveness of the genetic algorithm. As a result, we have found 66 new optimal self-orthogonal codes over F2\mathbb{F}_2 whose optimal minimum distances were previously not known, together with 135 further self-orthogonal codes attaining the best minimum distance obtained so far.

The remainder of this paper is organized as follows. Section 2 reviews the basic notions of coding theory and genetic algorithms. Section 3 formulates the shortest self-orthogonal embedding problem, presents our constraint-preserving genetic algorithm, and analyzes its complexity. Section 4 reports the numerical results, together with the running time, an ablation study, and a comparison with random search. Finally, Section 5 concludes the paper.