Skip to main content

Exact-Bound Analyzes and Optimal Strategies for Mastermind with a Lie

  • Conference paper
Advances in Computer Games (ACG 2005)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4250))

Included in the following conference series:

Abstract

This paper presents novel and systematic algorithms to solve a variant of the Mastermind game, which is called “Mastermind with a Lie”. Firstly, we use the k-way-branching(KWB) algorithm to get an upper bound of the number of guesses for the problem. With the help of clustering technique, the KWB algorithm is able to obtain near-optimal results effectively and efficiently. Secondly, we propose a fast backtracking(PPBFB) algorithm based on the pigeonhole principle to get the lower bounds of the number of guesses. That is a computer-aided approach, which is able to estimate the depth of the game tree and to backtrack when the depth is larger than a predefined value. Moreover, we also develop two novel methods, named “volume-renewing” and “preprocessing”. They can improve the precision in the estimation of the lower bound and speed up the game tree search. As a result of applying the KWB algorithm and the PPBFB algorithm, we are able to show that the upper bound is 7 and that is also the lower bound. Thus, the problem is solved completely and the exact bound of the number of guesses for the problem is 7.

This research was funded by a grant NSC 93-2213-E-003-001 from National Science Council, R.O.C.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Chen, S.T., Lin, S.S.: Novel Algorithms for Deductive Games. In: Proceedings of the 2004 International Computer Symposium on Artificial Intelligence, TA-E1 (2004)

    Google Scholar 

  2. Chen, S.T., Lin, S.S., Huang, L.T.: Two-Phase Optimization Algorithm for Hard-Combinatorial Problems. In: Proceedings of the Fifteenth Australasian Workshop on Combinatorial Algorithms, pp. 248–259 (2004)

    Google Scholar 

  3. Irving, R.W.: Towards an Optimum Mastermind Strategy. Journal of Recreational Mathematics 11(2), 81–87 (1978–1979)

    Google Scholar 

  4. Knuth, D.E.: The Computer as Mastermind. Journal of Recreational Mathematics 9(1), 1–6 (1976)

    MathSciNet  Google Scholar 

  5. Koyama, K., Lai, T.W.: An Optimal Mastermind Strategy. Journal of Recreational Mathematics 25, 251–256 (1993)

    MATH  Google Scholar 

  6. Merelo, J.J., Carpio, J., Castillo, P., Rivas, V.M., Romero, G. (GeNeura Team): Finding a Needle in a Haystack Using Hints and Evolutionary Computation: The Case of Genetic Mastermind. In: Genetic and Evolutionary Computation Conference, pp. 184–192. Late breaking papers books (1999)

    Google Scholar 

  7. Neuwirth, E.: Some Strategies for Mastermind. Zeitschrift für Operations Research 26, 257–278 (1982)

    Article  MATH  MathSciNet  Google Scholar 

  8. Renyi, A.: On a Problem of Information Theory. MTA Mat. Kut. Int. Kozl. 6B, 505–516 (1961)

    MathSciNet  Google Scholar 

  9. Ulam, S.M.: Adventures of a Mathematician. Charles Scribner’s Sons, New York (1976)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Huang, LT., Chen, ST., Lin, SS. (2006). Exact-Bound Analyzes and Optimal Strategies for Mastermind with a Lie. In: van den Herik, H.J., Hsu, SC., Hsu, Ts., Donkers, H.H.L.M.(. (eds) Advances in Computer Games. ACG 2005. Lecture Notes in Computer Science, vol 4250. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11922155_15

Download citation

  • DOI: https://doi.org/10.1007/11922155_15

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-48887-3

  • Online ISBN: 978-3-540-48889-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics