IDEAS home Printed from https://ideas.repec.org/a/gam/jgames/v9y2018i1p2-d125079.html
   My bibliography  Save this article

On the Query Complexity of Black-Peg AB-Mastermind

Author

Listed:
  • Mourad El Ouali

    (Polydisciplinary Faculty Ouarzazate, University Ibn Zohr, Agadir 80000, Morocco)

  • Christian Glazik

    (Department of Computer Science, Kiel University, 24118 Kiel, Germany)

  • Volkmar Sauerland

    (Department of Computer Science, Kiel University, 24118 Kiel, Germany)

  • Anand Srivastav

    (Department of Computer Science, Kiel University, 24118 Kiel, Germany)

Abstract

Mastermind is a two players zero sum game of imperfect information. Starting with Erdős and Rényi (1963), its combinatorics have been studied to date by several authors, e.g., Knuth (1977), Chvátal (1983), Goodrich (2009). The first player, called “codemaker”, chooses a secret code and the second player, called “codebreaker”, tries to break the secret code by making as few guesses as possible, exploiting information that is given by the codemaker after each guess. For variants that allow color repetition, Doerr et al. (2016) showed optimal results. In this paper, we consider the so called Black-Peg variant of Mastermind, where the only information concerning a guess is the number of positions in which the guess coincides with the secret code. More precisely, we deal with a special version of the Black-Peg game with n holes and k ≥ n colors where no repetition of colors is allowed. We present upper and lower bounds on the number of guesses necessary to break the secret code. For the case k = n , the secret code can be algorithmically identified within less than ( n − 3 ) ⌈ log 2 n ⌉ + 5 2 n − 1 queries. This result improves the result of Ker-I Ko and Shia-Chung Teng (1985) by almost a factor of 2. For the case k > n , we prove an upper bound of ( n − 2 ) ⌈ log 2 n ⌉ + k + 1 . Furthermore, we prove a new lower bound of n for the case k = n , which improves the recent n − log log ( n ) bound of Berger et al. (2016). We then generalize this lower bound to k queries for the case k ≥ n .

Suggested Citation

  • Mourad El Ouali & Christian Glazik & Volkmar Sauerland & Anand Srivastav, 2018. "On the Query Complexity of Black-Peg AB-Mastermind," Games, MDPI, vol. 9(1), pages 1-12, January.
  • Handle: RePEc:gam:jgames:v:9:y:2018:i:1:p:2-:d:125079
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2073-4336/9/1/2/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2073-4336/9/1/2/
    Download Restriction: no
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Mourad El Ouali & Volkmar Sauerland, 2020. "The Exact Query Complexity of Yes-No Permutation Mastermind," Games, MDPI, vol. 11(2), pages 1-11, April.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jgames:v:9:y:2018:i:1:p:2-:d:125079. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.