Playing Mastermind with many colors

From MaRDI portal
Publication:3177818

DOI10.1145/2987372zbMATH Open1425.91078arXiv1207.0773OpenAlexW1923754076MaRDI QIDQ3177818FDOQ3177818


Authors: Benjamin Doerr, Carola Doerr, Reto Spöhel, Henning Thomas, Carola Winzen Edit this on Wikidata


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 klen1varepsilon, 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(nloglogn) guesses. This bound is valid also when only black answer-pegs are used. It improves the O(nlogn) 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(nloglogn) bound holds for up to n2loglogn colors. These bounds are almost tight as the known lower bound of Omega(n) shows. Unlike for klen1varepsilon, 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(nlogn) guesses.


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




Recommendations





Cited In (22)





This page was built for publication: Playing Mastermind with many colors

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3177818)