Playing Mastermind with Many Colors
Abstract
We analyze the general version of the classic guessing game Mastermind with positions and colors. Since the case , a constant, is well understood, we concentrate on larger numbers of colors. For the most prominent case , our results imply that Codebreaker can find the secret code with guesses. This bound is valid also when only black answer-pegs are used. It improves the 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 bound holds for up to colors. These bounds are almost tight as the known lower bound of shows. Unlike for , 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 guesses.
Cite
@article{arxiv.1207.0773,
title = {Playing Mastermind with Many Colors},
author = {Benjamin Doerr and Carola Doerr and Reto Spöhel and Henning Thomas},
journal= {arXiv preprint arXiv:1207.0773},
year = {2013}
}
Comments
Extended abstract appeared in SODA 2013. This full version has 22 pages and 1 picture