Manuscript Offprint
arXiv:2610.23626Four New Single-Error-Correcting Binary Codes
Abstract
We construct a (16, 3072, 3)-code, a (17, 6144, 3)-code, an (18, 12288, 3)-code and a (19, 24576, 3)-code. Consequently, we get four new lower bounds: , , and . Each of the codes consists of a union of cosets of a linear code. The constructions are the result of a computer search executing a tabu search algorithm.
1 Introduction
A fundamental problem in Coding Theory is to find a q-ary block code of codeword length n and minimum Hamming distance d with the maximum possible number of codewords, for given integers q, n and d. This optimal number of codewords is denoted by , and for simply by . An M-codeword binary code of length n with minimum Hamming distance d is called an -code.
For small values of , Brouwer [5] maintains an online table of the best known lower and upper bounds on . For the exact values of are known, but for larger values of , in most cases only lower and upper bounds were determined.
In this paper we construct four new binary codes: a (16,3072,3)-code, a (17,6144,3)-code, an (18,12288,3)-code and a (19,24576,3)-code. The existence of the codes implies four new lower bounds on as detailed in Table 1. We found the codes using a computer search for a suitable union of cosets of a linear code.
The rest of the paper is organized as follows. Section 2 describes the search algorithm we used. Section 3 provides some details about the computational experiments and includes a link to the results.
| n | d | Known Lower Bound | Improved Lower Bound | Known Upper Bound | References |
|---|---|---|---|---|---|
| 16 | 3 | 2816 | 3072 | 3276 | [12, 11, 2] |
| 17 | 3 | 5632 | 6144 | 6551 | [11, 14] |
| 18 | 3 | 10496 | 12288 | 13104 | [9, 2] |
| 19 | 3 | 20480 | 24576 | 26168 | [1, 8] |
Table 1: Improved Lower Bounds on
accessible is to restrict the search to codes that consist of cosets of a linear code. This restriction was used to find some lower bounds on for small values of [15, 6]. We follow this method here. We use stochastic local search rather than complete search for finding a set of suitable cosets. More specifically, we use the tabu search metaheuristic [7].
Let be a linear code of length , dimension and minimum distance at least . We define a graph whose vertices correspond to the cosets of the linear code , and whose edges connect two vertices if the corresponding cosets are at distance less than from each other. Let be an -vertex independent set in the graph. The union of the cosets that correspond to the vertices of is an -codeword code of length with minimum distance at least . Therefore, finding an -vertex independent set in the graph yields a good code if is large enough.
For solving the independent set existence problem we use a stochastic local search algorithm. The general outline of a stochastic local search algorithm is as follows [10]. We start from an initial candidate solution. At every iteration we move from the current candidate solution to another candidate solution . The new candidate solution is chosen from a set of candidate solutions called the neighborhood of , using some stochastic criteria. An evaluation function that assigns a value to every candidate solution guides the choice of the neighbor . A candidate solution that meets the problem requirements is called a solution, and if we encounter one the algorithm is successful.
For the rest of this section we describe in detail the search algorithm we used.
The input for our algorithm consists of integers (the codeword length), (a minimum distance), (the number of cosets in the union we are trying to find), (the dimension of the linear code), and a linear code of length , dimension and minimum distance at least . Additionally, we have two tabu search parameters: tt (tabu tenure) and maxNoRecordIter (the allowed maximum number of consecutive iterations that do not improve the best evaluation value seen so far).
Let be the graph with vertices corresponding to the cosets of and edges connecting cosets with distance less than from each other. The output is either an -vertex independent set in or FAIL if the algorithm cannot find such a set.
We define a candidate solution as an m-vertex subset of the graph G. A solution is a candidate solution that is an independent set. We define a neighbor of a candidate solution s as a candidate solution obtained by replacing a vertex from s with a vertex that is not in s (a swap move).
We now define an evaluation function that assigns to each candidate solution s a value that reflects in some sense the quality s. Larger evaluation values suggest worse quality of the m-subset.
First, let and be vectors in , and let be the Hamming distance between them. We define a cost function
Next, we assign weights to the edges of G. Let e be an edge connecting two distinct cosets , of the linear code C. The weight of the edge e is defined naturally by
Finally, the evaluation value of a candidate solution s is the sum of the edge weights in the subgraph induced by s. The evaluation value is 0 if and only if s is a solution.
The initial candidate solution is an m-vertex subset chosen uniformly at random. A swap is declared tabu if it involves inserting a vertex that was removed in the last tt iterations. The aspiration criterion is met by any move that leads to a neighbor with an evaluation value that is smaller than any evaluation value encountered in previous iterations. An admissible move is a move that is not tabu or meet the aspiration criterion. At any iteration our next move is a uniformly random best admissible move, that is, we only consider an admissible move if no other admissible move leads to a lower valued neighbor.
The algorithm stops if one of the following occurs: a solution is found, the record evaluation value did not improve in the last maxNoRecordIter iterations or no admissible moves exist.
3 Computational Experiments and Results
We refer to the algorithm described in Section 2 as the basic algorithm. We now describe the computational experiments we performed with the basic algorithm.
We picked some and for which we want to improve the best known lower bound . We set to try the minimum possible improvement. We chose some , and generated all the inequivalent linear codes of length , dimension and minimum distance at least . For the linear codes classification we used the Generation program from the software project QextNewEdition [3, 4]. For each linear code we executed the basic algorithm with increasing tabu tenures , one execution per tabu tenure. If the tabu tenure became large enough so that no admissible moves existed, or if
| n | d | k | Initial m | Largest m |
|---|---|---|---|---|
| 16 | 3 | 4 | 177 | 192 |
| 17 | 3 | 4 | 353 | 384 |
| 18 | 3 | 5 | 329 | 384 |
| 19 | 3 | 5 | 641 | 768 |
Table 2: Parameters of The Successful Runs
we reached tabu tenure with value we moved to the next linear code. We usually set the maxNoRecordIter parameter to 100,000.
In Table 2 we give the combinations of the parameters , and that yielded a solution. The size of the first solution we found appears in the column with the header Initial . This solution already implies a record-breaking code. In order to find a larger solution we executed a mix of the following procedures:
-
We added to the solution a vertex that was not adjacent to any solution vertex. This was possible quite often.
-
We kept the successful linear code and tabu tenure that yielded the solution fixed, increased somewhat and repeated the basic algorithm up to 1,000 times.
-
We increased and repeated the search over all the inequivalent linear codes of length , dimension and minimum distance at least .
The size of the largest solution we found after experimenting with the above three procedures appears in the column with the header Largest .
The total wall-clock run time of our program was several weeks, including time spent on failed attempts to further improve the lower bounds given in Table 1 and time spent trying to improve other lower bounds. The program ran on two computers: one with an AMD Ryzen 9 5950X 16-core processor and the other with an Intel Core i7-14700K 20-core processor. The implementation language was C++.
The codes we found can be accessed in [13]. For each code we provide two files that describe the construction exactly as it was found in the search. One file contains the generator matrix of the linear code and the other contains the coset leaders.
The bounds , , and follow from the four new codes. The first three bounds also immediately follow from the bound since .
References
[1] M. Best. Binary codes with a minimum distance of four (corresp.). IEEE Transactions on Information Theory, 26(6):738–742, 1980. doi: 10.1109/TIT.1980.1056269.
[2] M. Best, A. Brouwer, F. MacWilliams, A. Odlyzko, and N. Sloane. Bounds for binary codes of length less than 25. IEEE Transactions on Information Theory, 24(1):81–93, 1978. doi: 10.1109/TIT.1978.1055827.
[3] Iliya Bouyukliev and Stefka Bouyuklieva. Qextnewedition, 2019. URL https://www.moi.math.bas.bg/moiuser/%7edata/Software/QextNewEdition. Standard version v1.1 [software].
[4] Iliya Bouyukliev, Stefka Bouyuklieva, and Sascha Kurz. Computer classification of linear codes. IEEE Transactions on Information Theory, 67(12): 7807–7814, 2021. doi: 10.1109/TIT.2021.3114280.
[5] Andries Brouwer. Table of general binary codes, 2018. URL https://www.win.tue.nl/aeb/codes/binary-1.html.
[6] K. Elssel and K.-H. Zimmermann. Two new nonlinear binary codes. IEEE Transactions on Information Theory, 51(3):1189–1190, 2005. doi: 10.1109/TIT.2004.842767.
[7] Fred Glover. Tabu search—part i. ORSA Journal on Computing, 1(3): 190–206, 1989. doi: 10.1287/ijoc.1.3.190.
[8] Wolfgang Haas. On the failing cases of the johnson bound for error-correcting codes. The Electronic Journal of Combinatorics, 15(1):#R55, Apr. 2008. doi: 10.37236/779.
[9] H.O. Hamalainen. Two new binary codes with minimum distance three. IEEE Transactions on Information Theory, 34(4):875–, 1988. doi: 10.1109/18.9787.
[10] Holger H. Hoos and Thomas Stützle. 2 - sls methods. In Stochastic Local Search, The Morgan Kaufmann Series in Artificial Intelligence, pages 61–112. Morgan Kaufmann, San Francisco, 2005. ISBN 978-1-55860-872-6. doi: https://doi.org/10.1016/B978-155860872-6/50019-6. URL https://www.sciencedirect.com/science/article/pii/B9781558608726500196.
[11] Antti Laaksonen and Patric R.J. Östergård. Constructing error-correcting binary codes using transitive permutation groups. Discrete Applied Mathematics, 233:65–70, 2017. ISSN 0166-218X. doi: https://doi.org/10.1016/j.dam.2017.08.022.
[12] Moshe Milshtein. A new binary code of length 16 and minimum distance 3. Information Processing Letters, 115(12):975–976, 2015. ISSN 0020-0190. doi: https://doi.org/10.1016/j.ipl.2015.07.001.
[13] Moshe Milshtein. Generator matrices and coset leaders for "four new single-error-correcting binary codes", July 2026. URL https://doi.org/10.5281/zenodo.21633500. Version 1.
[14] Pin-Chieh Tseng, Ching-Yi Lai, and Wei-Hsuan Yu. Semidefinite programming bounds for binary codes from a split Terwilliger algebra. Designs, Codes and Cryptography, 91(10):3241–3262, October 2023. ISSN 1573-7586. doi: 10.1007/s10623-023-01250-4.
[15] Patric R. J. Östergård. Two New Four-Error-Correcting Binary Codes. Designs, Codes and Cryptography, 36(3):327–329, September 2005. ISSN 1573-7586. doi: 10.1007/s10623-004-1723-3.