home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!yuma!boll
- From: boll@CS.ColoState.EDU (dave boll)
- Subject: Re: Master Mind:A question.
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Message-ID: <Dec14.212442.31746@yuma.ACNS.ColoState.EDU>
- Date: Mon, 14 Dec 1992 21:24:42 GMT
- References: <1992Dec5.180849.15981@dartvax.dartmouth.edu> <1992Dec13.221551.12761@scorch.apana.org.au> <gay.724358375@sfu.ca>
- Nntp-Posting-Host: handel.cs.colostate.edu
- Organization: Colorado State University, Computer Science Department
- Keywords: Master Mind Game
- Lines: 25
-
- In article <gay.724358375@sfu.ca> gay@selkirk.sfu.ca (Ian D. Gay) writes:
- >jimgar@scorch.apana.org.au (Jim Garner) writes:
- >
- >>evant@coos.dartmouth.edu (Evan E. Thomas) writes:
- >
- >>|My question regards the game "MasterMind" where 4 pegs are chosen (from an
- >>[deletions]
-
- >>There is an optimal strategy that has been published. It is very long
- >>and divided into cases, so I wouldn't call it an algorithm. But it
- >>certainly can be done in less than 10 guesses every time. All I
- >>remember is that your first guess should contain 2 colours only, 2
- >>pegs of each.
- >
- One such algorithm was published in the Journal of Recreational
- Mathematics; in '70 or '71 (I think), which always solved the
- 4 peg problem in 5 moves. Knuth later published an algorithm which
- solves the problem in a shorter # of moves - on average - but can
- take six guesses on certain combinations.
-
- --
- ------------------------------------------------------------
- Dave Boll boll@handel.cs.colostate.edu
- "The speed of time is 1 second per second"
- ------------------------------------------------------------
-