Back to Search
Start Over
Playing Mastermind With Many Colors.
- Source :
- Journal of the ACM; Nov2016, Vol. 63 Issue 5, p1-23, 23p
- Publication Year :
- 2016
-
Abstract
- We analyze the general version of the classic guessing game Mastermind with n positions and k colors. Since the case k ⩽ n<superscript>1-ε</superscript> , ε > 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(nlog log n) guesses. This bound is valid also when only black answer pegs are used. It improves the O(nlog n) bound first proven by Chvátal. We also show that if both black and white answer pegs are used, then the O(nlog log n) bound holds for up to n<superscript>2</superscript> log log n colors. These bounds are almost tight, as the known lower bound of Ω(n) shows. Unlike for k ⩽ n<superscript>1-ε</superscript>, simply guessing at random until the secret code is determined is not sufficient. In fact, we show that an optimal nonadaptive strategy (deterministic or randomized) needs Θ(nlog n) guesses. [ABSTRACT FROM AUTHOR]
- Subjects :
- PHYSIOLOGICAL optics
VISION
PIGMENTS
COLORS
COLORING matter
Subjects
Details
- Language :
- English
- ISSN :
- 00045411
- Volume :
- 63
- Issue :
- 5
- Database :
- Complementary Index
- Journal :
- Journal of the ACM
- Publication Type :
- Academic Journal
- Accession number :
- 119407296
- Full Text :
- https://doi.org/10.1145/2987372