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átal (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.
Connections
Explore this paper’s authors, topics and related work.
Building this map preview
BZPEER is loading the nearby papers, people, topics and institutions for this page.
Reviews 0
Write a review
No reviews yet.
Discussion 0
Add a comment
No comments yet.