Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.ai    |    Awaiting the gospel from Sarah Connor    |    1,954 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 581 of 1,954    |
|    Eddie901 to All    |
|    Missionaries & Cannibals    |
|    27 Jan 05 17:34:41    |
      From: eddie901@gmail.com              I have a problem with this classic problem. Many cite the solution       takes 11 steps but my program tells me there's a 9-step soln.              Start       -> moving 1 M and 1 C across [M 2]:[C 2]:[B false]       -> moving 0 M and 1 C back [M 2]:[C 3]:[B true]       -> moving 2 M and 0 C across [M 0]:[C 3]:[B false]       -> moving 1 M and 0 C back [M 1]:[C 3]:[B true]       -> moving 1 M and 1 C across [M 0]:[C 2]:[B false]       -> moving 0 M and 1 C back [M 0]:[C 3]:[B true]       -> moving 0 M and 2 C across [M 0]:[C 1]:[B false]       -> moving 1 M and 0 C back [M 1]:[C 1]:[B true]       -> moving 1 M and 1 C across [M 0]:[C 0]:[B false]              Goal found at depth 9       [M 0]:[C 0]:[B false]              I guess it depends how you interpret the constraints on legal states. I       assume no Ms or Cs can be outnumbered unless the boat is present.       Does anyone have any thoughts on this?              Thanks.              [ comp.ai is moderated. To submit, just post and be patient, or if ]       [ that fails mail your article to |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca