-
1背包问题是NP难题。0
0-l背包问题是子集选取问题。一般情况下,0-1背包问题是NP难题。0-1背包 问题的解空间可用子集树表示。解0-1背包问题的回溯法与装载问题的回溯法十分类 似。在搜索解空间树时,只要其左儿子结点是一个可行结点,搜索就进入其左子树。当 右子树有可能包含最优解时才进入右子树搜索。否则将右子树剪去。设r是当前剩余 物品价值总和;cp是当前价值;bestp是当前最优价值。当cp+r≤bestp时,可剪去右 子树。计算右子树中解的上界的更好方法是将剩余物品依其单位重量价值排序,然后 依次装入物品,直至装不下时,再装入该物品的一部分而装满背包。由此得到的价值是 右子树中解的上界。-0-l knapsack problem is selected subset of the problem. Under normal circumstances, 0-1 knapsack problem is NP-hard. 0-1 knapsack problem the solution space available subset of the tree said. Xie 0-1 knapsack problem with the law retroactively loading the retroactive law very similar. The search solution space trees, as long as their son left node is a viable nodes, the search entered its left subtree. When the right subtree is the optimal solution may contain only son into the right tree search. It will cut right subtrees. Suppose that r is the total value of the remaining items; Cp is the current value; Bestp is currently the best value. When cp r bestp, they can cut right subtrees. Calculation right
- 2022-03-25 00:00:51下载
- 积分:1
-
vc环境下使用QT编写的一个时钟程序,老外的源代码
vc环境下使用QT编写的一个时钟程序,老外的源代码
- 2022-02-20 14:46:49下载
- 积分:1
-
MATLAB代码光流LK算法
matlab code for optical flow lk algorighm
- 2022-07-10 11:25:10下载
- 积分:1
-
vector quantizer 华盛顿大学图像实验室的
vector quantizer 华盛顿大学图像实验室的-vector quantizer from washionton university
- 2023-01-02 07:45:04下载
- 积分:1
-
基于qt的打袋鼠游戏
基于用qt实现的打袋鼠游戏,用qt界面开发,实现打袋鼠游戏的实现。代码详细,qt简单好用,非常实用,很适合初学者。
- 2022-03-25 14:42:47下载
- 积分:1
-
从视觉角度进行的开发,麻省虽小五脏俱全,用了就知好
从视觉角度进行的开发,麻省虽小五脏俱全,用了就知好-From the visual point of view the development, Massachusetts, a small fully-equipped with knowledge on good
- 2023-03-28 14:15:04下载
- 积分:1
-
SqueakVM
SqueakVM-Win32-3.10.6 source code
- 2022-02-01 02:38:53下载
- 积分:1
-
socket编程服务器端程序
socket编程服务器端程序-server socket programming procedures
- 2022-06-21 08:38:51下载
- 积分:1
-
alkdsjfalfkj
阿尔基德
- 2022-01-22 04:08:06下载
- 积分:1
-
Yan Wei Min data structure a final experiment. Sorting Algorithm for various com...
严蔚敏数据结构最后一个实验.
对各种排序算法进行比较-Yan Wei Min data structure a final experiment. Sorting Algorithm for various comparisons
- 2023-07-12 13:05:03下载
- 积分:1