Skip Navigation

The Computer Journal 2004 47(5):602-611; doi:10.1093/comjnl/47.5.602
© 2004 by British Computer Society
This Article
Right arrow Full Text (PDF)
Right arrow Alert me when this article is cited
Right arrow Alert me if a correction is posted
Services
Right arrow Email this article to a friend
Right arrow Similar articles in this journal
Right arrow Alert me to new issues of the journal
Right arrow Add to My Personal Archive
Right arrow Download to citation manager
Right arrow Search for citing articles in:
ISI Web of Science (3)
Right arrowRequest Permissions
Google Scholar
Right arrow Articles by Chen, S.-T.
Right arrow Articles by Lin, S.-S.
Right arrow Search for Related Content
Social Bookmarking
 Add to CiteULike   Add to Connotea   Add to Del.icio.us  
What's this?

Optimal Algorithms for 2 x n Mastermind Games—a Graph-Partition Approach

Shan-Tai Chen1 and Shun-Shii Lin2 *

1 Department of Information and Computer Education, National Taiwan Normal University, Taipei, Taiwan, Republic of China, 2 Graduate Institute of Computer Science and Information Engineering, National Taiwan Normal University, No. 88, Sec. 4, Ting-Chow Rd, Taipei, Taiwan, Republic of China

This paper presents new and systematic methodologies for analyzing deductive games and obtaining optimal algorithms for 2 x n Mastermind games, where n ≥ 2. We have developed a graphic model to represent the game-guessing process. With this novel approach, we find some symmetric and recursive structures in the process. This not only reduces the size of the search space but also helps us to derive the optimum strategies more efficiently. By using this technique, we develop optimal strategies for 2 x n Mastermind games in the expected and worst cases and are able to derive the following new results:

  1. {lfloor}n/2{rfloor} + 2 guesses are necessary and sufficient for 2 x n Mastermind games in the worst case.
  2. The minimum number of guesses required for 2 x n Mastermind games in the expected case is (8n3 + 51n2 – 74n + 48)/24n2 if n is even and (8n3 + 51n2 80n + 69)/24n2 if n is odd.

The optimization of this problem bears a resemblance to other computational problems such as circuit testing, differential cryptanalysis, on-line models with equivalent queries and additive search problems. Any conclusion of this kind of deductive game may be applied, although probably not directly, to any of these problems as well as to any other combinatorial optimization problem.


Received 21 February 2003. Revised 2 October 2003.

* Email: linss{at}csie.ntnu.edu.tw


Add to CiteULike CiteULike   Add to Connotea Connotea   Add to Del.icio.us Del.icio.us    What's this?




Disclaimer:
Please note that abstracts for content published before 1996 were created through digital scanning and may therefore not exactly replicate the text of the original print issues. All efforts have been made to ensure accuracy, but the Publisher will not be held responsible for any remaining inaccuracies. If you require any further clarification, please contact our Customer Services Department.