Welcome![Sign In][Sign Up]
Location:
Search - wolf sheep cabbage

Search list

[Otherthrough_river

Description: 农夫过河:农夫带着一只狼、一只羊、一颗白菜,要从河的左岸过去河的右岸。狼要吃羊,羊要吃白菜,只有农夫在的的时候才不会右被吃的情况发生,要怎么过河呢?-farmer across the river : a farmer with a wolf, a goat, a Chinese cabbage, from the left bank of the river past the right bank of the river. Wolf to Qiyang, the sheep eat cabbage, the only farmer in the time would not be right to eat happen, how the river?
Platform: | Size: 1300 | Author: 王丽霞 | Hits:

[Otherthrough_river

Description: 农夫过河:农夫带着一只狼、一只羊、一颗白菜,要从河的左岸过去河的右岸。狼要吃羊,羊要吃白菜,只有农夫在的的时候才不会右被吃的情况发生,要怎么过河呢?-farmer across the river : a farmer with a wolf, a goat, a Chinese cabbage, from the left bank of the river past the right bank of the river. Wolf to Qiyang, the sheep eat cabbage, the only farmer in the time would not be right to eat happen, how the river?
Platform: | Size: 1024 | Author: 王丽霞 | Hits:

[AI-NN-PRRiveProblem

Description: 自己写的一个农夫,狼,羊,白菜过河问题的源代码.-Himself a farmer, wolf, sheep, and cabbage across the river
Platform: | Size: 281600 | Author: 曹彪 | Hits:

[Console3

Description: 关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为0,1,2,3;但他们都有河这边和那边两种状态;为方便则定义一个结构,只含一个int型变量n;当在河这边时n设为0;在河那边时n设为1。由于每次过河与返回都要考虑狼能否吃羊或羊能否吃白菜;则需要一个函数来判断每次选择是否满足条件。-Hunters across the river on the issues to resolve this issue so we should cross the river when the two set out across the river to return to when there is only one back as far as possible. Using a string array to keep hunters, the wolf, sheep, and cabbage subscript followed by 0,1,2,3 but they have a river here and there two states To facilitate the definition of a structure containing only an int variable n When in the river here when n is set to 0 in the river when n is set to one side. Due to cross the river and return each time to consider whether the wolf can eat the sheep吃羊or cabbage you need a function to determine each choose whether or not to meet the conditions.
Platform: | Size: 153600 | Author: STartBoy | Hits:

[Windows Developlieren+lang

Description: 猎人要带一条狼、一只羊和一棵大白菜过河。船太小,一次只能带一样。但猎人不在场的情况下,狼要吃羊,羊要吃白菜。请设计一个C++程序为猎人指出一个安全的渡河放案。 资源中有c++源程序和文档说明-Hunters to take a wolf, a sheep and a cabbage across the river. Ship is too small, one can only bring the same. However, the presence of hunters, the wolf to吃羊, sheep eat cabbage. Please design a C++ Procedures for Hunter pointed out that a safe place to cross the river case. Resources are c++ Source code and documentation
Platform: | Size: 157696 | Author: piit | Hits:

[Otherguohe

Description: 用C语言编写的农夫过河问题,解决羊,白菜,狼的过河问题-Farmer with a C language cross the river and solve sheep, cabbage, wolf river issues
Platform: | Size: 1024 | Author: 骞骞 | Hits:

[Data structsfamercrossriver

Description: 农夫过河问题描述的是一个农夫带着一只狼、一只羊和一棵白菜,处于河的南岸,而他要将这些东西带到北岸。但是他面前只有一条小船,而每次他只能带一件东西过河,由于食物链的关系,他不能将狼和羊同时留下,也不能将羊和白菜同时留下,但可以将狼和白菜同时留下。编写一段代码,描述农夫所采用的过河方法。 -Problem description farmer across the river is a farmer with a wolf, a sheep and a cabbage, in the south bank of the river, and he brought these things to north. However, only a small boat in front of him, but he could only bring one thing each river, as the relationship between food chain, he can not leave the wolf and the sheep at the same time, nor can the sheep and cabbage leaves at the same time, but it can be the wolf and Chinese cabbage leaves at the same time. Write a code to describe the farmer across the river used method.
Platform: | Size: 9216 | Author: 李晓东 | Hits:

[Othermain

Description: 经典的农夫羊狼白菜过河问题,每次农夫只能带一个动物或物品,而要防止狼吃羊羊吃白菜 -Wolf sheep cabbage farmer classic problem across the river, each farmer can only take an animal or article, but to prevent the wolves eat sheep sheep eat cabbage
Platform: | Size: 1024 | Author: 宋志源 | Hits:

[VC/MFCfarmerwolfsheepvegetable

Description: 用vc++编写的程序,实现了农夫,狼,羊,白菜过河的经典问题,源码通过调试,可运行出结果-With programs written in vc++ to realize the farmer, wolf, sheep, and cabbage across the river in the classical problem, the source code through the debugger, run the result
Platform: | Size: 3072 | Author: 陈素敏 | Hits:

[CSharpcross-river

Description: 过河问题,农夫带狼、羊、白菜在一定条件下过河-Crossing problem, the farmer with the wolf, sheep, and cabbage across the river, under certain conditions
Platform: | Size: 1024 | Author: | Hits:

[VC/MFCCabbage-wolf-issue

Description: 农夫狼羊白菜过河,农夫不在,狼会吃羊,羊会吃白菜,船只能同时载两样东西,但只有农夫会划船,问怎样才能安全过河-Wolf sheep cabbage farmer across the river, not the farmer, the wolf will eat the sheep, the sheep will eat the cabbage, the ship only contained two things simultaneously, but only the farmer will be boating, ask how it can be safely across the river
Platform: | Size: 659456 | Author: 李明 | Hits:

[Software EngineeringThe-farmer-across-the-river

Description: 一个农夫带着—只狼、一只羊和—棵白菜,身处河的南岸。他要把这些东西全部运到北岸。他面前只有一条小船,船只能容下他和—件物品,另外只有农夫才能撑船。如果农夫在场,则狼不能吃羊,羊不能吃白菜,否则狼会吃羊,羊会吃白菜,所以农夫不能留下羊和白菜自己离开,也不能留下狼和羊自己离开,而狼不吃白菜。请求出农夫将所有的东西运过河的方案。-A farmer with- wolves, a sheep and- cabbage, living in the river' s south bank. All these things he wanted shipped to the North Shore. He is only one boat in front of the boat can only put him and- items, in addition to punt only farmer. If the farmer is present, the wolf can not eat the sheep, the sheep can not eat cabbage, or the wolf will eat the sheep, the sheep will eat the cabbage, so the farmer can not leave his sheep and cabbage left, leaving the wolf and the sheep can not he left, the wolf is not eat cabbage. Request a farmer across the river to transport all the things the program.
Platform: | Size: 14336 | Author: 潇洒 | Hits:

[OtherFRAMER

Description: 一个农夫带着一只羊,一条狼和一颗白菜想从河的东岸到西岸去。河上仅有一条船。只有农夫一人会开船。假设他每次只能带一只羊,或者一条狼,或者一颗白菜过河,并且当人不在场时,狼和羊,或羊和白菜不能单独在一起,因为狼会吃羊,羊会吃白菜。试编写程序求出他带一只羊,一条狼和一颗白菜过河的所有办法。-A farmer with a sheep, a wolf and a cabbage would like to go from the eastern shore of the river to the West Bank. Only one boat on the river. Only one farmer will set sail. Suppose every time he can only bring a sheep or a wolf, or a cabbage across the river, and when the person is not present, the wolves and sheep, or sheep and cabbage can not be alone together, because the wolf will eat the sheep, the sheep will eat the cabbage. Try to write the program obtained him with a sheep, a wolf and a cabbage across the river all the way.
Platform: | Size: 8192 | Author: 李平 | Hits:

[Documents农夫过河算法与数据结构设计a

Description: 农夫过河问题讲述的是一位农夫带着一只狼,一只羊和一颗白菜要渡过一条河,只有农夫能开船,且每次农夫只能带最多一样东西,并且农夫不在的时候,狼和羊,羊和白菜不能共存,我们需要在这个前提下找到渡河的最短路径。(About the farmer across the river is a farmer with a wolf, a sheep and a cabbage to cross a river, the farmer can only sail, and each farmer can only take up something, and when the farmer is not the wolf and sheep, sheep and cabbage can not coexist, the shortest path we need find the river on the premise of the)
Platform: | Size: 33792 | Author: 百劫 | Hits:

[assembly languageinclude1

Description: 一个农夫在河边带了一只狼、一只羊和一颗白菜,他需要把这三样东西用船带到河的对岸。然而,这艘船只能容下农夫本人和另外一样东西。如果农夫不在场的话,狼会吃掉羊,羊也会吃掉白菜。(A farmer took a wolf, a sheep and a cabbage on the riverside. He needed to take the three things to the opposite side of the river by boat. However, the boat can only contain the farmer himself and something else. If the farmer is not there, the wolf will eat the sheep, and the sheep will eat the cabbage.)
Platform: | Size: 17408 | Author: 漾漾 | Hits:

[Internet-Network农夫过河

Description: 一个农夫带着一只狼、一只羊和一棵白菜,身处河的南岸,他要把这些东西 全部运到北岸。他面前只有一只小船,船只能容下他和一件物品,另外只有农夫 才能撑船。如果农夫在场,则狼不能吃羊,羊不能吃白菜;否则狼会吃羊,羊会 吃白菜。所以农夫不能留下羊和白菜自己离开,也不能留下狼和羊自己离开,但 是狼不吃白菜。要求给出农夫将所有东西运过河的方案。(A farmer with a wolf, a sheep and a cabbage is on the South Bank of the river. He wants to carry all these things to the north bank. There was only a small boat in front of him. The boat could only hold him and an object. Only the farmer could support the boat. If the farmer is present, the wolf can't eat the sheep, and the sheep can't eat cabbage. Otherwise, the wolf will eat the sheep and the sheep will eat the cabbage. So the farmer can not leave the sheep and cabbage himself to leave, nor can he leave the wolf and the sheep themselves to leave, but the wolf does not eat cabbage. It is required to give the farmer a plan to transport everything across the river.)
Platform: | Size: 1024 | Author: 123zl | Hits:

[Data structslogic1net

Description: 农夫 要运输 白菜 羊 狼去对岸, 农夫不在的情况下,狼会吃羊,羊会吃白菜。 每次运输一个去对岸(help the man in the boat to move the wolf the sheep and the box of cabbage to the other side of the lake)
Platform: | Size: 86016 | Author: 谈不上 | Hits:

CodeBus www.codebus.net