Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2009-03-18, 10:15   #1
weisen19
初级会员
 
注册日期: 2009-03-18
年龄: 39
帖子: 3
声望力: 0
weisen19 正向着好的方向发展
默认 挑战智力极限 国外某大学脑残又变态的路程问题 需要matlab

1。两地相距100km
2。每走一个公里 要补充一块巧克力
3。A最多只能带100块巧克力每次
4。A可以往返多次在这100公里的路程上(目的:在路上扔下巧克力 之后剩下的确保返程就可以)
5。A到达100km远的地方 有人会补充40块巧克力给他(但是只能补充一次)
6。用matlab或者excel设计放案 得到最小直(就是A往返多少次 每次带多少巧克力 可以顺利的完成往返 是最小值)

我手算的是330 但是不知道怎么用matlab 懂行的大家来八下


英文原文如下
Chocolate bars and deserts/desserts
A cyclist is standing beside a bicycle with wide tyres suitable for travel over flat sand, in the middle of Lake Eyre (dry at the time). Beside the cyclist is a very large pile indeed of chocolate bars. The cyclist can carry at most 100 chocolate bars on the bike and needs one chocolate bar in order to travel 1km (the cyclist eats a chocolate bar for every km travelled). The cyclist wants to visit a friend, 100km away, and then to return to the starting place. The friend has 40 chocolate bars and will give them to the cyclist when the cyclist arrives. The question you have to investigate is “What is the minimum number of chocolate bars required by the cyclist in the pile at the start to complete this mission?”
Develop a strategy of your own to approach this problem and programme it in Excel or, better, Matlab. Demonstrate that the task can be achieved with the number of starting chocolate bars that you specify.
weisen19 当前离线   回复时引用此帖
旧 2009-03-19, 14:15   #2
weisen19
初级会员
 
注册日期: 2009-03-18
年龄: 39
帖子: 3
声望力: 0
weisen19 正向着好的方向发展
默认 回复: 挑战智力极限 国外某大学脑残又变态的路程问题 需要matlab

可不可以用穷举法
weisen19 当前离线   回复时引用此帖
旧 2009-03-20, 15:40   #3
yangwenli
初级会员
 
注册日期: 2008-06-07
年龄: 47
帖子: 2
声望力: 0
yangwenli 正向着好的方向发展
默认 回复: 挑战智力极限 国外某大学脑残又变态的路程问题 需要matlab

最优化问题?
yangwenli 当前离线   回复时引用此帖
旧 2009-03-23, 05:46   #4
weisen19
初级会员
 
注册日期: 2009-03-18
年龄: 39
帖子: 3
声望力: 0
weisen19 正向着好的方向发展
默认 回复: 挑战智力极限 国外某大学脑残又变态的路程问题 需要matlab

我得的是280 第一次20km处扔60 第二次40km60 (用了第一次扔的)
第三次80bar带着 然后 ok了
weisen19 当前离线   回复时引用此帖
回复

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码


相似的主题
主题 主题作者 版面 回复 最后发表
[MATLAB毕业设计] 求助:怎样用matlab编程求这个式子的表达式啊? changanmigui MATLAB论坛 1 2009-05-14 19:54
[MATLAB毕业设计] 求各位大大帮个忙,帮小弟设计一段程序,关于车辆噪声处理的~ kblipu MATLAB论坛 0 2009-05-13 15:51
如何实现gui窗口嵌套 beulah MATLAB论坛 1 2008-12-28 17:57
模糊控制隶属函数问题 yangwenhui MATLAB论坛 0 2008-11-18 17:32


所有时间均为北京时间。现在的时间是 23:52


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.