Publication:3177818: Difference between revisions

From MaRDI portal
Publication:3177818
Created automatically from import240305080351
 
 
(No difference)

Latest revision as of 15:56, 2 May 2024

DOI10.1145/2987372zbMath1425.91078arXiv1207.0773OpenAlexW1923754076MaRDI QIDQ3177818

Henning Thomas, Reto Spöhel, Benjamin Doerr, Carola Doerr, Carola Winzen

Publication date: 2 August 2018

Published in: Journal of the ACM, Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms (Search for Journal in Brave)

Abstract: We analyze the general version of the classic guessing game Mastermind with $n$ positions and $k$ colors. Since the case $k le n^{1-varepsilon}$, $varepsilon>0$ a constant, is well understood, we concentrate on larger numbers of colors. For the most prominent case $k = n$, our results imply that Codebreaker can find the secret code with $O(n log log n)$ guesses. This bound is valid also when only black answer-pegs are used. It improves the $O(n log n)$ bound first proven by Chv'atal (Combinatorica 3 (1983), 325--329). We also show that if both black and white answer-pegs are used, then the $O(n loglog n)$ bound holds for up to $n^2 loglog n$ colors. These bounds are almost tight as the known lower bound of $Omega(n)$ shows. Unlike for $k le n^{1-varepsilon}$, simply guessing at random until the secret code is determined is not sufficient. In fact, we show that an optimal non-adaptive strategy (deterministic or randomized) needs $Theta(n log n)$ guesses.


Full work available at URL: https://arxiv.org/abs/1207.0773






Related Items (17)





This page was built for publication: Playing Mastermind With Many Colors