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

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

于 2023-04-22 发布 文件大小:1,014.00 B
0 123
下载积分: 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 个回复

  • pdf文件,说明3维自由立体显示软件双视点的设置问题
    pdf文件,说明3维自由立体显示软件双视点的设置问题-pdf document on the free 3-D dual-view three-dimensional display software settings problem
    2022-03-20 04:33:50下载
    积分:1
  • python_programming_with_the_javat_class_libraries
    Python_Programming_with_the_JavaT_Class_Libraries
    2022-08-14 23:21:47下载
    积分:1
  • Visual C++.NET 数据库开发指南1
    Visual C++.NET 数据库开发指南1-Visual C++. NET Database Developer" s Guide
    2022-02-05 03:56:00下载
    积分:1
  • 年和SDL的ffmpeg教程
    An ffmpeg and SDL Tutorial-ffmpeg 学习资料-An ffmpeg and SDL Tutorial-ffmpeg learning materials
    2022-03-02 20:33:40下载
    积分:1
  • Microsoft Visual Basic 6.0 中文版语言参考手册
    Microsoft Visual Basic 6.0 中文版语言参考手册-Microsoft Visual Basic version 6.0 Chinese Language Reference Manual
    2022-03-11 05:12:07下载
    积分:1
  • Delta
    Delta-Sigma转换器是采用超采样的方法将模拟电压转换成数字量的1位转换器,它由1位ADC、1位DAC与一个积分器组成,见图1。Delta-Sigma转换器的优点表现在低成本与高分辨率,适合用于现在的低电压半导体工业的生产-Delta-Sigma converters are super-sampling method to convert the analog voltage of a digital converter, which consists of an ADC, 1 Wei DAC with an integrator component, shown in Figure 1. Delta-Sigma converter performance advantages of low-cost and high-resolution, suitable for use in the current production of low-voltage semiconductor industry
    2022-04-25 03:36:08下载
    积分:1
  • excel插件.没测试过.excel插件.没测试过.最好不要下.
    excel插件.没测试过.excel插件.没测试过.最好不要下.
    2022-02-09 12:06:27下载
    积分:1
  • 作为课程工作的一部分“信息管理系统测试”…
    As part of the course work on the course "Information management systems testing aircraft" required to develop a software package that implements the following functions: providing cartographic support, positioning the cursor, to calculate the distance between two points, building trails spacecraft (SC) construction zone of radio visibility of satellites and surveillance zones construction cyclograms communications by ground tracking station and spacecraft-As part of the course work on the course "Information management systems testing aircraft" required to develop a software package that implements the following functions: providing cartographic support, positioning the cursor, to calculate the distance between two points, building trails spacecraft (SC) construction zone of radio visibility of satellites and surveillance zones construction cyclograms communications by ground tracking station and spacecraft
    2022-05-04 21:54:43下载
    积分:1
  • 双轮差速机器人DSP控制程序,功能包括里程计,和上位机的通讯程序...
    双轮差速机器人DSP控制程序,功能包括里程计,和上位机的通讯程序-Differential-speed two-wheeled robot DSP control procedures, functions include odometer, and the host computer" s communication program
    2023-04-15 21:50:03下载
    积分:1
  • Example source codes in C++ using 3d studio max models
    Example source codes in C++ using 3d studio max models
    2023-09-01 11:20:04下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载