{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,17]],"date-time":"2026-03-17T09:36:59Z","timestamp":1773740219105,"version":"3.50.1"},"reference-count":30,"publisher":"Association for Computing Machinery (ACM)","issue":"5","license":[{"start":{"date-parts":[[2016,11,8]],"date-time":"2016-11-08T00:00:00Z","timestamp":1478563200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100001665","name":"Agence Nationale de la Recherche","doi-asserted-by":"crossref","award":["ANR-09-JCJC-0067-01"],"award-info":[{"award-number":["ANR-09-JCJC-0067-01"]}],"id":[{"id":"10.13039\/501100001665","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Feodor Lynen Research Fellowship for Postdoctoral Researchers of the Alexander von Humboldt Foundation"},{"name":"Google Fellowship"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["J. ACM"],"published-print":{"date-parts":[[2016,12,20]]},"abstract":"<jats:p>\n            We analyze the general version of the classic guessing game Mastermind with\n            <jats:italic>n<\/jats:italic>\n            positions and\n            <jats:italic>k<\/jats:italic>\n            colors. Since the case\n            <jats:italic>k<\/jats:italic>\n            \u2264\n            <jats:italic>n<\/jats:italic>\n            <jats:sup>1 \u2212 \u03b5<\/jats:sup>\n            , \u03b5 &gt; 0 a constant, is well understood, we concentrate on larger numbers of colors. For the most prominent case\n            <jats:italic>k<\/jats:italic>\n            =\n            <jats:italic>n<\/jats:italic>\n            , our results imply that Codebreaker can find the secret code with\n            <jats:italic>O<\/jats:italic>\n            (\n            <jats:italic>n<\/jats:italic>\n            log log\n            <jats:italic>n<\/jats:italic>\n            ) guesses. This bound is valid also when only black answer pegs are used. It improves the\n            <jats:italic>O<\/jats:italic>\n            (\n            <jats:italic>n<\/jats:italic>\n            log\n            <jats:italic>n<\/jats:italic>\n            ) bound first proven by Chv\u00e1tal. We also show that if both black and white answer pegs are used, then the\n            <jats:italic>O<\/jats:italic>\n            (\n            <jats:italic>n<\/jats:italic>\n            log log\n            <jats:italic>n<\/jats:italic>\n            ) bound holds for up to\n            <jats:italic>n<\/jats:italic>\n            <jats:sup>2<\/jats:sup>\n            log log\n            <jats:italic>n<\/jats:italic>\n            colors. These bounds are almost tight, as the known lower bound of \u03a9(\n            <jats:italic>n<\/jats:italic>\n            ) shows. Unlike for\n            <jats:italic>k<\/jats:italic>\n            \u2264\n            <jats:italic>n<\/jats:italic>\n            <jats:sup>1 \u2212 \u03b5<\/jats:sup>\n            , 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 \u0398(\n            <jats:italic>n<\/jats:italic>\n            log\n            <jats:italic>n<\/jats:italic>\n            ) guesses.\n          <\/jats:p>","DOI":"10.1145\/2987372","type":"journal-article","created":{"date-parts":[[2016,11,9]],"date-time":"2016-11-09T13:36:49Z","timestamp":1478698609000},"page":"1-23","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":22,"title":["Playing Mastermind With Many Colors"],"prefix":"10.1145","volume":"63","author":[{"given":"Benjamin","family":"Doerr","sequence":"first","affiliation":[{"name":"Max-Planck-Institut f\u00fcr Informatik"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Carola","family":"Doerr","sequence":"additional","affiliation":[{"name":"Max-Planck-Institut f\u00fcr Informatik and Universit\u00e9 Paris Diderot"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Reto","family":"Sp\u00f6hel","sequence":"additional","affiliation":[{"name":"Max-Planck-Institut f\u00fcr Informatik"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Henning","family":"Thomas","sequence":"additional","affiliation":[{"name":"ETH Z\u00fcrich, Z\u00fcrich, Switzerland"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2016,11,8]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.cor.2008.06.004"},{"key":"e_1_2_1_2_1","volume-title":"Proceedings of the 22nd Conference on Learning Theory (COLT\u201909)","author":"Bshouty Nader H.","year":"2009","unstructured":"Nader H. Bshouty . 2009 . Optimal algorithms for the coin weighing problem with a spring scale . In Proceedings of the 22nd Conference on Learning Theory (COLT\u201909) . Nader H. Bshouty. 2009. Optimal algorithms for the coin weighing problem with a spring scale. In Proceedings of the 22nd Conference on Learning Theory (COLT\u201909)."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.4153\/CJM-1966-007-2"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.5555\/646715.701422"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF02579188"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00224-012-9438-8"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00224-004-1177-z"},{"key":"e_1_2_1_8_1","unstructured":"Paul Erd\u0151s and Alfr\u00e9d R\u00e9nyi. 1963. On two problems of information theory. Magyar Tudom\u00e1nyos Akad\u00e9mia Matematikai Kutat\u00f3 Int\u00e9zet K\u00f6zlem\u00e9nyei 8 229--243.  Paul Erd\u0151s and Alfr\u00e9d R\u00e9nyi. 1963. On two problems of information theory. Magyar Tudom\u00e1nyos Akad\u00e9mia Matematikai Kutat\u00f3 Int\u00e9zet K\u00f6zlem\u00e9nyei 8 229--243."},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the 5th International Conference on Fun with Algorithms (FUN\u201910)","author":"Focardi Riccardo","unstructured":"Riccardo Focardi and Flaminia L. Luccio . 2010. Cracking bank PINs by playing Mastermind . In Proceedings of the 5th International Conference on Fun with Algorithms (FUN\u201910) . 202--213. Riccardo Focardi and Flaminia L. Luccio. 2010. Cracking bank PINs by playing Mastermind. In Proceedings of the 5th International Conference on Fun with Algorithms (FUN\u201910). 202--213."},{"key":"e_1_2_1_10_1","first-page":"225","article-title":"Static Mastermind","volume":"47","author":"Goddard Wayne","year":"2003","unstructured":"Wayne Goddard . 2003 . Static Mastermind . Journal of Combinatorial Mathematics and Combinatorial Computing 47 , 225 -- 236 . Wayne Goddard. 2003. Static Mastermind. Journal of Combinatorial Mathematics and Combinatorial Computing 47, 225--236.","journal-title":"Journal of Combinatorial Mathematics and Combinatorial Computing"},{"key":"e_1_2_1_11_1","first-page":"215","article-title":"Mastermind revisited","volume":"51","author":"Goddard Wayne","year":"2004","unstructured":"Wayne Goddard . 2004 . Mastermind revisited . Journal of Combinatorial Mathematics and Combinatorial Computing 51 , 215 -- 220 . Wayne Goddard. 2004. Mastermind revisited. Journal of Combinatorial Mathematics and Combinatorial Computing 51, 215--220.","journal-title":"Journal of Combinatorial Mathematics and Combinatorial Computing"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2009.4"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2009.02.021"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/s004530010033"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.5555\/2008402.2008415"},{"key":"e_1_2_1_16_1","volume-title":"Proceedings of the IEEE Congress on Evolutionary Computation (CEC\u201911)","author":"Merelo Guerv\u00f3s Juan J.","year":"2011","unstructured":"Juan J. Merelo Guerv\u00f3s , Antonio Miguel Mora , and Carlos Cotta . 2011 b. Optimizing worst-case scenario in evolutionary solutions to the Mastermind puzzle . In Proceedings of the IEEE Congress on Evolutionary Computation (CEC\u201911) . IEEE, 2669--2676. Juan J. Merelo Guerv\u00f3s, Antonio Miguel Mora, and Carlos Cotta. 2011b. Optimizing worst-case scenario in evolutionary solutions to the Mastermind puzzle. In Proceedings of the IEEE Congress on Evolutionary Computation (CEC\u201911). IEEE, 2669--2676."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1109\/18.761251"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2009.02.016"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2011.06.009"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.5555\/1756582.1756623"},{"key":"e_1_2_1_21_1","first-page":"1","article-title":"The computer as a master mind","volume":"9","author":"Knuth Donald E.","year":"1977","unstructured":"Donald E. Knuth . 1977 . The computer as a master mind . Journal of Recreational Mathematics 9 , 1 -- 5 . Donald E. Knuth. 1977. The computer as a master mind. Journal of Recreational Mathematics 9, 1--5.","journal-title":"Journal of Recreational Mathematics"},{"key":"e_1_2_1_22_1","first-page":"251","article-title":"An optimal mastermind strategy","volume":"25","author":"Koyama Kenji","year":"1993","unstructured":"Kenji Koyama and Tony W. Lai . 1993 . An optimal mastermind strategy . Journal of Recreational Mathematics 25 , 251 -- 256 . Kenji Koyama and Tony W. Lai. 1993. An optimal mastermind strategy. Journal of Recreational Mathematics 25, 251--256.","journal-title":"Journal of Recreational Mathematics"},{"key":"e_1_2_1_23_1","first-page":"195","article-title":"On a combinatory detection problem I","volume":"9","author":"Lindstr\u00f6m Bernt","year":"1964","unstructured":"Bernt Lindstr\u00f6m . 1964 . On a combinatory detection problem I . Publications of the Mathematical Institute of the Hungarian Academy of Science 9 , 195 -- 207 . Bernt Lindstr\u00f6m. 1964. On a combinatory detection problem I. Publications of the Mathematical Institute of the Hungarian Academy of Science 9, 195--207.","journal-title":"Publications of the Mathematical Institute of the Hungarian Academy of Science"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.4153\/CMB-1965-034-2"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1536414.1536462"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(01)00303-6"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(94)90181-3"},{"key":"e_1_2_1_28_1","first-page":"25","article-title":"Mastermind is NP-complete","volume":"5","author":"Stuckman Jeff","year":"2006","unstructured":"Jeff Stuckman and Guo-Qiang Zhang . 2006 . Mastermind is NP-complete . INFOCOMP Journal of Computer Science 5 , 25 -- 28 . Jeff Stuckman and Guo-Qiang Zhang. 2006. Mastermind is NP-complete. INFOCOMP Journal of Computer Science 5, 25--28.","journal-title":"INFOCOMP Journal of Computer Science"},{"key":"e_1_2_1_29_1","volume-title":"Proceedings of the 2003 UK Workshop on Computational Intelligence (UKCI\u201903)","author":"Temporel Alexandre","year":"2003","unstructured":"Alexandre Temporel and Tim Kovacs . 2003 . A heuristic hill climbing algorithm for Mastermind . In Proceedings of the 2003 UK Workshop on Computational Intelligence (UKCI\u201903) . 189--196. Alexandre Temporel and Tim Kovacs. 2003. A heuristic hill climbing algorithm for Mastermind. In Proceedings of the 2003 UK Workshop on Computational Intelligence (UKCI\u201903). 189--196."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-30347-0_36"}],"container-title":["Journal of the ACM"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2987372","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2987372","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T21:38:37Z","timestamp":1750282717000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2987372"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2016,11,8]]},"references-count":30,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2016,12,20]]}},"alternative-id":["10.1145\/2987372"],"URL":"https:\/\/doi.org\/10.1145\/2987372","relation":{},"ISSN":["0004-5411","1557-735X"],"issn-type":[{"value":"0004-5411","type":"print"},{"value":"1557-735X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2016,11,8]]},"assertion":[{"value":"2013-01-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2016-08-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2016-11-08","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}