文件名称:tan-xin-suan-fa
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
C语言结构化实现贪心算法,利用贪心策略解决背包问题。现有载重为M公斤的背包和n种货物。第i种货物的重量为Wi,它的总价值为Pi,假定M、Wi、Pi均为整数。设计程序给出装货方法,使装入背包的货物总价值达到最大-Using the greedy strategy to solve knapsack problem. Existing load for M kg backpack and n kinds of goods. The kind of the weight of the goods as I Wi, the total value of it as the Pi, M, Wi, Pi are assumed to be an integer. Design procedure is given loading method, make the goods loaded backpack maximum total value
(系统自动生成,下载前可以参看下载内容)
下载文件列表
7.实验七\实验7 贪心算法设计.doc
........\第一题.c
........\第二题.c
7.实验七