Abstract
We determine the maximum size \(W_k(n)\) of a commafree code with codeword length k and alphabet size n for a few previously unknown values of k and n. With the aid of modern SAT solver tooling we prove that \(W_4(5) = 139\), \(W_6(3) = 113\), and \(W_{12}(2) = 334\) and exhibit codes that achieve these bounds.
Similar content being viewed by others
References
Biere, A., Fazekas, K., Fleury, M., Heisinger, M.: CaDiCaL, Kissat, Paracooba, Plingeling and Treengeling entering the SAT Competition 2020. In: Balyo, T., Froleyks, N., Heule, M., Iser, M., Järvisalo, M., Suda, M. (eds.), Proc. of SAT Competition 2020 – Solver and Benchmark Descriptions, volume B-2020-1 of Department of Computer Science Report Series B, pages 51–53. University of Helsinki (2020)
Bright, C., Cheung, K.K.H., Stevens, B., Kotsireas, I., Ganesh, V.: Unsatisfiability proofs for weight 16 codewords in Lam’s problem. In: Bessiere, C. (ed.), Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20, pp. 1460–1466. International Joint Conferences on Artificial Intelligence Organization, (7 2020). Main track
Davis, M., Putnam, H.: A computing procedure for quantification theory. J. ACM 7(3), 201–215 (1960)
Eastman, W.: On the construction of comma-free codes. IEEE Trans. Info. Theory 11(2), 263–267 (1965)
Golomb, S.W., Gordon, B., Welch, L.R.: Comma-free codes. Can. J. Math. 10, 202–209 (1958)
Heule, M.J.H.: Schur number five. In: AAAI, (2018)
Heule, M.J.H., Kullmann, O., Wieringa, S., Biere, A.: Cube and conquer: guiding CDCL SAT solvers by lookaheads. In: Eder, K., Lourenço, J., Shehory, O. (eds.) Hardware and software: verification and testing, pp. 50–65. Springer, Berlin (2012)
Heule, M.J.H., Kullmann, O., Marek, V.W.: Solving and verifying the boolean pythagorean triples problem via cube-and-conquer. In: Creignou, N., Le Berre, D. (eds.) Theory Appl. Satisfiability Testing —SAT 2016, pp. 228–245. Springer, Cham (2016)
Jiggs, B.H.: Recent results in comma-free codes. Can. J. Math. 15, 178–187 (1963)
Knuth, D.E.: Combinatorial algorithms, Part 2, volume 4B of The Art of Computer Programming. Addison-Wesley Professional, first edition (October 2022)
Konev, B., Lisitsa, A.: Computer-aided proof of Erdős discrepancy properties. Artif. Intell. 224, 103–118 (2015)
Kouril, M., Paul, J.L.: The van der Waerden number \(W(2,6)\) is 1132. Exp. Math. 17(1), 53–61 (2008)
Manthey, N., Heule, M.J.H., Biere, A.: Automated reencoding of boolean formulas. In: Biere, A., Nahir, A., Vos, T. (eds.) Hardware and Software: Verification and Testing, pp. 102–117. Springer, Berlin (2013)
Niho, Y.: On maximal comma-free codes (corresp.). IEEE Trans. Inf. Theory 19, 580–581 (1973)
Niklas, E., Sörensson, N.: Translating pseudo-boolean constraints into SAT. J. Satisfiability Boolean Modeling Comput. 4, 1–26 (2006)
Zinovik, I., Kroening, D., Chebiryak, Y.: Computing binary combinatorial gray codes via exhaustive search with sat solvers. IEEE Trans. Inf. Theory 54(4), 1819–1823 (2008)
Acknowledgements
We thank both of the anonymous reviewers for many helpful suggestions and corrections that improved the presentation of this paper. In particular, one reviewer noticed that a BVA preprocessor substantially reduced the original encoding size, which inspired the improved incoding in Sect. 3.1.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix
Appendix
A code that achieves \(W_4(5) = 139\):
The code above omits representatives from the following equivalence classes:
A code that achieves \(W_6(3) = 113\):
The code above omits representatives from the following equivalence classes:
Finally, a code that achieves \(W_{12}(2) = 334\):
The code above omits a representative from only the equivalence class [000011001011].
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Windsor, A.A. Computer-Aided Constructions of Commafree Codes. J Autom Reasoning 67, 12 (2023). https://doi.org/10.1007/s10817-023-09662-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10817-023-09662-6