English

The Exact Query Complexity of Yes-No Permutation Mastermind

Data Structures and Algorithms 2020-03-27 v1 Combinatorics

Abstract

Mastermind is famous two-players game. The first player (codemaker) chooses a secret code which the second player (codebreaker) is supposed to crack within a minimum number of code guesses (queries). Therefore, codemaker's duty is to help codebreaker by providing a well-defined error measure between the secret code and the guessed code after each query. We consider a variant, called Yes-No AB-Mastermind, where both secret code and queries must be repetition-free and the provided information by codemaker only indicates if a query contains any correct position at all. For this Mastermind version with n positions and knk\le n colors we prove a lower bound of log2(k+1n)+log2(k+2n)++log2(k)\log_2(k+1-n)+\log_2(k+2-n)+\dots+\log_2(k) and an upper bound of nlog2(n)+kn\log_2(n)+k on the number of queries necessary to break the secret code. For the important case k=nk=n, where both secret code and queries represent permutations, our results imply an exact asymptotic complexity of Θ(nlog2(n))\Theta(n\log_2(n)) queries.

Cite

@article{arxiv.2003.11538,
  title  = {The Exact Query Complexity of Yes-No Permutation Mastermind},
  author = {Moura El Ouali and Volkmar Sauerland},
  journal= {arXiv preprint arXiv:2003.11538},
  year   = {2020}
}

Comments

12 pages, 2 figures, submitted to GAMES

R2 v1 2026-06-23T14:27:09.852Z