Passer à la navigation principale Passer à la recherche Passer au contenu principal

Playing mastermind with many colors

  • UPMC Univ Paris 06
  • Sorbonne Université
  • Engineering and Information Technology
  • Bern University of Applied Sciences
  • Institute of Theoretical Computer Science
  • ETH Zurich

Résultats de recherche: Contribution à un journal › Article › Revue par des pairs

28 Citations (Scopus)

Résumé

We analyze the general version of the classic guessing game Mastermind with n positions and k colors. Since the case k ≤ n1-ϵ , ϵ > 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 n2 log log n colors. These bounds are almost tight, as the known lower bound of δ(n) shows. Unlike for k ≤ n1-ϵ , 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.

langue originaleAnglais
Numéro d'article42
journalJournal of the ACM
Volume63
Numéro de publication5
Les DOIs
étatPublié - 1 nov. 2016

Empreinte digitale

Examiner les sujets de recherche de « Playing mastermind with many colors ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation