文件名称:FourthExper
-
所属分类:
- 标签属性:
- 上传时间:2020-09-27
-
文件大小:3.33mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设有n种不同面值的硬币,第i种硬币的币值是vk(其中v1=1),重量是wi,i=1,
2,...,n且现在购买总价值为y的某些商品,需要用这些硬币付款,如果每种钱币使用的个数不限,问如何选择付款的方法使得付出钱币的总重量最轻?设计一个求解该问题的算法,给出算法的伪码描述并分析算法的时间复杂度.假设问题的输入实例是:
v1=1,v2=4,v3=6,v4=8
w1=1,w2=2,w3=4,w4=6
y=12
给出算法在该实例上计算的备忘录表和标记函数表,并说明付钱的方法。(There is an investigation team to the field investigation, there are N sites on the inspection route that can be used as camping sites. The known distance from the campsite to the starting point is x1, X2,..., xn, and X1 < x2 <... < xn. They can only advance 30 kilometers a day, and the distance between any two adjacent campsites is no more than 30 kilometers. They want to find an action plan to minimize the total number of camping days. Design an algorithm to solve this problem. The main steps of the algorithm are given, the correctness of the algorithm is proved, and the time complexity of the algorithm is estimated.)
2,...,n且现在购买总价值为y的某些商品,需要用这些硬币付款,如果每种钱币使用的个数不限,问如何选择付款的方法使得付出钱币的总重量最轻?设计一个求解该问题的算法,给出算法的伪码描述并分析算法的时间复杂度.假设问题的输入实例是:
v1=1,v2=4,v3=6,v4=8
w1=1,w2=2,w3=4,w4=6
y=12
给出算法在该实例上计算的备忘录表和标记函数表,并说明付钱的方法。(There is an investigation team to the field investigation, there are N sites on the inspection route that can be used as camping sites. The known distance from the campsite to the starting point is x1, X2,..., xn, and X1 < x2 <... < xn. They can only advance 30 kilometers a day, and the distance between any two adjacent campsites is no more than 30 kilometers. They want to find an action plan to minimize the total number of camping days. Design an algorithm to solve this problem. The main steps of the algorithm are given, the correctness of the algorithm is proved, and the time complexity of the algorithm is estimated.)
相关搜索: 算法
动态规划——硬币付款问题
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
FourthExper.sdf | 8650752 | 2020-05-01 |
FourthExper.sln | 1254 | 2020-04-16 |
FourthExper.v11.suo | 18944 | 2020-05-01 |
FourthExper | 0 | 2020-04-16 |
FourthExper\Debug | 0 | 2020-04-08 |
FourthExper\Debug\cl.command.1.tlog | 552 | 2020-04-08 |
FourthExper\Debug\CL.read.1.tlog | 12426 | 2020-04-08 |
FourthExper\Debug\CL.write.1.tlog | 390 | 2020-04-08 |
FourthExper\Debug\FourthExper.lastbuildstate | 95 | 2020-04-08 |
FourthExper\Debug\FourthExper.log | 1876 | 2020-04-08 |
FourthExper\Debug\link-cvtres.read.1.tlog | 2 | 2020-04-08 |
FourthExper\Debug\link-cvtres.write.1.tlog | 2 | 2020-04-08 |
FourthExper\Debug\link-rc.read.1.tlog | 2 | 2020-04-08 |
FourthExper\Debug\link-rc.write.1.tlog | 2 | 2020-04-08 |
FourthExper\Debug\link.command.1.tlog | 1164 | 2020-04-08 |
FourthExper\Debug\link.read.1.tlog | 2512 | 2020-04-08 |
FourthExper\Debug\link.write.1.tlog | 512 | 2020-04-08 |
FourthExper\Debug\vc110.idb | 273408 | 2020-04-08 |
FourthExper\Debug\vc110.pdb | 339968 | 2020-04-08 |
FourthExper\Debug\Դ.obj | 158381 | 2020-04-08 |
FourthExper\FourthExper.vcxproj | 5764 | 2020-04-16 |
FourthExper\FourthExper.vcxproj.filters | 941 | 2020-04-07 |
FourthExper\Release | 0 | 2020-04-16 |
FourthExper\Release\cl.command.1.tlog | 572 | 2020-04-16 |
FourthExper\Release\CL.read.1.tlog | 12426 | 2020-04-16 |
FourthExper\Release\CL.write.1.tlog | 398 | 2020-04-16 |
FourthExper\Release\FourthExper.lastbuildstate | 97 | 2020-04-16 |
FourthExper\Release\FourthExper.log | 1907 | 2020-04-16 |
FourthExper\Release\link-cvtres.read.1.tlog | 2 | 2020-04-16 |
FourthExper\Release\link-cvtres.write.1.tlog | 2 | 2020-04-16 |
FourthExper\Release\link-rc.read.1.tlog | 2 | 2020-04-16 |
FourthExper\Release\link-rc.write.1.tlog | 2 | 2020-04-16 |
FourthExper\Release\link.command.1.tlog | 1224 | 2020-04-16 |
FourthExper\Release\link.read.1.tlog | 3056 | 2020-04-16 |
FourthExper\Release\link.write.1.tlog | 398 | 2020-04-16 |
FourthExper\Release\vc110.pdb | 315392 | 2020-04-16 |
FourthExper\Release\Դ.obj | 716791 | 2020-04-16 |
FourthExper\x64 | 0 | 2020-04-16 |
FourthExper\x64\Release | 0 | 2020-04-16 |
FourthExper\x64\Release\cl.command.1.tlog | 558 | 2020-04-16 |
FourthExper\x64\Release\CL.read.1.tlog | 12142 | 2020-04-16 |
FourthExper\x64\Release\CL.write.1.tlog | 414 | 2020-04-16 |
FourthExper\x64\Release\FourthExper.lastbuildstate | 95 | 2020-04-16 |
FourthExper\x64\Release\FourthExper.log | 1931 | 2020-04-16 |
FourthExper\x64\Release\link-cvtres.read.1.tlog | 2 | 2020-04-16 |
FourthExper\x64\Release\link-cvtres.write.1.tlog | 2 | 2020-04-16 |
FourthExper\x64\Release\link-rc.read.1.tlog | 2 | 2020-04-16 |
FourthExper\x64\Release\link-rc.write.1.tlog | 2 | 2020-04-16 |
FourthExper\x64\Release\link.command.1.tlog | 1246 | 2020-04-16 |
FourthExper\x64\Release\link.read.1.tlog | 3148 | 2020-04-16 |
FourthExper\x64\Release\link.write.1.tlog | 422 | 2020-04-16 |
FourthExper\x64\Release\vc110.pdb | 331776 | 2020-04-16 |
FourthExper\x64\Release\Դ.obj | 705397 | 2020-04-16 |
FourthExper\Դ.cpp | 1458 | 2020-04-16 |
x64 | 0 | 2020-04-16 |
x64\Release | 0 | 2020-04-16 |
x64\Release\FourthExper.exe | 15360 | 2020-04-16 |
x64\Release\FourthExper.pdb | 420864 | 2020-04-16 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.