Businessmen_Crossing_SRC

所属分类:控制台编程
开发工具:Visual C++
文件大小:8KB
下载次数:4
上传日期:2010-05-08 20:03:17
上 传 者猪猪天堂
说明:  解决商人渡河问题。该问题为:有三个商人,三个强盗,和一条船(船每次只可以载小于等于两个人)他们同在河的一边,想渡过河去,但是必须保证在河的任何一边必须保证商人的数目大于等于强盗的数目,并要满足渡河次数尽可能的少,应该怎么过这条河呢?
(To solve business problems crossing. The problem is: There are three businessmen, three robbers, and a boat (each boat can only contain two people or less) side of the river with them, to get over the river to go, but must ensure that any side of the river must be ensure that the number of merchants greater than equal to the number of robbers, and to meet the few crossing times as much as possible, should be over how the river then?)

文件列表:
商人渡河\river.cpp (4059, 2008-03-19)
商人渡河\river.dsp (4271, 2008-03-19)
商人渡河\river.dsw (533, 2008-03-19)
商人渡河\river.ncb (50176, 2010-05-08)
商人渡河\river.opt (48640, 2010-05-08)
商人渡河\river.plg (1258, 2008-03-19)
商人渡河 (0, 2010-05-08)

近期下载者

相关文件


收藏者