文件名称:code
- 所属分类:
- 人工智能/神经网络/遗传算法
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 121kb
- 下载次数:
- 0次
- 提 供 者:
- wangd*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
利用C解决传教士与野人问题。有N个传教士和N个野人来到河边准备渡河,河岸有一条船,每次之多可供k个人乘渡。传教士为了安全起见,任何时刻,河两岸以及船上的野人数目总是不能超过传教士的数目(传教士数目为0除外)。求解一个可以令传教士和野人安全从左岸全部摆渡到右岸的过程。-Missionaries and savages in C to solve the problem. There are N and N Savage missionaries came to the river ready to cross the river, there is a river boat, as much as for each individual by crossing k. Missionaries to be safe, at any time, Savage River and the boat can not exceed the number of missionaries is always the number (the number of missionaries, except for the 0). Solving a missionary and Savage can make all the ferry to safety from the left bank of the right bank of the process.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bin
readme.txt
src
...\1.txt
...\2.txt
...\a.exe
...\one.cpp
readme.txt
src
...\1.txt
...\2.txt
...\a.exe
...\one.cpp