Talk:Sailors, coconuts and a monkey problem: Difference between revisions
Talk:Sailors, coconuts and a monkey problem (view source)
Revision as of 14:43, 13 May 2015
, 9 years ago→Analysis
m (→Analysis) |
m (→Analysis) |
||
Line 132:
1596 319
1276 255
</pre>
::So in spite of stopping and starting I find the solution with 8 candidates. Which is certainly more calculated than the Python candidate selection which would better be described as brainless. As with all good AI programs on classical computers it is possible to ask the program to explain its reasoning, the output for the 100 case is [[Sailors, coconuts and a monkey problem/Ruby output 100 honest sailors]]. As you can see it selects 4950 candidates to find the solution for 100 sailors, less than the Python solution uses for 5 sailors.
|