Remembering only the last question: size-one memory Mastermind and the price of forgetting
Jäger and Peczarski (Theoret. Comput. Sci. 596, 2015; IWOCA 2014 problems) asked whether a Mastermind codebreaker that keeps only its last question and the answer to it ever needs more questions in the worst case than one with unbounded memory. They settled two pegs in black-white Mastermind and up to three pegs in black-peg Mastermind, and left eight small cases open. This paper settles the eight cases: size-one memory attains the unbounded-memory optimum. The same holds for every entry of their black-white table of optimal worst-case values (54 entries, 38 of them already covered by their results or trivial) and for the black-peg pairs marked '=' in the paper. For black-peg Mastermind with four pegs it proves b1(4,c) = c+3 for every c ≥ 5, which equals their value b(4,c). It also determines b(5,5) = 8 and b(6,5) = 9 (previously known to lie between 8 and 9 and between 8 and 10) and b(p,2) for 9 ≤ p ≤ 14. On the classic board size-one memory attains both average optima of Koyama and Lai (5625/1296 and 5626/1296). On a weighted three-peg, four-colour board the full-history optimum is 646/216, every last-pair strategy needs 647/216, and one remembered bit restores 646/216. The worst-case question itself remains open. Files: the paper (PDF); an archive with the strategy tables, the checking programs, the Lean files, the all-colours proof and the certificates (start with shasum -a 256 -c SHA256SUMS and python3 -B verify.py quick, see README.md); and a companion archive with the CNF/DRAT pair for the fixed 4×4 opening. Use of AI tools: AI tools were used to write code, run computations, search the literature and edit the text. The author checked the results and is responsible for the content.
Authors
- Henry Chan Jung (ORCID: https://orcid.org/0009-0007-6512-3326)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24558403
- Primary Topic
- Complexity and Algorithms in Graphs
- Type
- preprint