登录
首页 » 电子书 » 背包问题动态规划算法JAVA 给定n种物品和一背包。物品i的重量是wi,其价值为vi,背包的容量为c。问应如何选择装入背包中的物品,使得装入背包中物品的总价...

背包问题动态规划算法JAVA 给定n种物品和一背包。物品i的重量是wi,其价值为vi,背包的容量为c。问应如何选择装入背包中的物品,使得装入背包中物品的总价...

于 2023-04-22 发布 文件大小:1,014.00 B
0 200
下载积分: 2 下载次数: 1

代码说明:

背包问题动态规划算法JAVA 给定n种物品和一背包。物品i的重量是wi,其价值为vi,背包的容量为c。问应如何选择装入背包中的物品,使得装入背包中物品的总价值最大? 在选择装入背包的物品时,对每种物品i只有两种选择,即装入背包或不装入背包。不能将物品i装入背包多次,也不能只装入部分的物品i。因此,该问题称为0-1背包问题。-Knapsack problem dynamic programming algorithm for a given n species JAVA goods and one backpack. Item i is the weight of wi, the value for vi, knapsack capacity c. Question should be how to choose the items into the backpack, the backpack into the total value of the largest items? In the selection of the items into the backpack, for each of the items i have only two choices, that is loaded or not loaded backpack backpack. Items should not be many times i load backpack can not only part of the goods loaded i. Therefore, the problem known as the 0-1 knapsack problem.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C++
    附随盘使用说明 本附随盘包含了书中介绍的所有实例的源程序文件,共计200个。使用本附随盘时应注意以下几点: 1. 盘中所有实例的源程序文件按篇分类,均包含在相应目录下,例如,p2-107.cpp文件在cp2目录下。 2. 所有实例源程序文件名与书中所给出的实例程序名对应一致。例如,p2-102.cpp文件对应于第2篇的实例102。 3. 本盘上给出的所有程序实例均在Microsoft Visual C++ 6.0开发环境中调试通过。 4. 读者可按本书附录A的介绍,在自己机器上安装Microsoft Visual C++ 6.0开发系统。 5. 读者可按附录B的介绍,使用Visual C++ 6.0系统调试C++程序。 6. 可将本附随盘的例子拷贝到硬盘的特定目录中,然后用Visual C++ 6.0系统创建工程调试。-C++
    2022-04-29 22:18:56下载
    积分:1
  • Modbus协议
    基于Modbus协议的通信控制系统的设计,概述有关modbus协议的内容-Modbus protocol-based communication control system design, an overview of the contents of the modbus protocol
    2022-08-20 23:56:54下载
    积分:1
  • 籍:古今数学思想―第二册,希望对数学爱好者有帮助
    书籍:古今数学思想―第二册,希望对数学爱好者有帮助-books : ancient mathematical thinking-the second list, and I hope to help math lovers
    2022-02-10 08:16:57下载
    积分:1
  • USB项目开发报告,也是USB大牛Frank_wang的大作,比较详细,非常适合开发USB人员参考...
    USB项目开发报告,也是USB大牛Frank_wang的大作,比较详细,非常适合开发USB人员参考-USB project development report, as well as large cattle USB Frank_wang the crescendo, and in greater detail, very suitable for the development of USB reference
    2022-08-03 08:26:35下载
    积分:1
  • 哈尔滨工业大学苏小红教授的C语言教程课件,介绍非常详细,重点突出,非常棒的C语言学习材料...
    哈尔滨工业大学苏小红教授的C语言教程课件,介绍非常详细,重点突出,非常棒的C语言学习材料-Harbin Institute of Technology Professor Su Xiaohong the C language tutorial courseware to introduce the very detailed and focused, very good C-language learning materials
    2022-01-25 19:38:08下载
    积分:1
  • C语法与库函数词典
    C语法与库函数词典-C library functions Grammar and Dictionaries
    2022-08-03 14:38:08下载
    积分:1
  • 描述了vb与excel之间的相互操作,使用vb控制excel的方法
    描述了vb与excel之间的相互操作,使用vb控制excel的方法-vb excel
    2023-05-04 01:05:03下载
    积分:1
  • this is the development of software cmm standard that contribute to the developm...
    这个是软件开发的cmm标准,这个标准有助于软件开发和实施的标准化,在一些大公司还是很值得借鉴和学习的 -this is the development of software cmm standard that contribute to the development and implementation of software standardization, in some large companies still worth learning and learning
    2023-04-30 03:45:03下载
    积分:1
  • bcb6界面实例开发
    bcb6界面实例开发-bcb6 interface development
    2022-08-09 00:05:19下载
    积分:1
  • 一个获取多个IP地址的例,希望对一些初学的人有用
    一个获取多个IP地址的例子,希望对一些初学的人有用-access to a number of IP addresses example, and I hope to some of the useful novice
    2022-03-22 20:23:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载