登录
首页 » Windows开发 » 1背包问题是NP难题。0

1背包问题是NP难题。0

于 2022-03-25 发布 文件大小:17.38 kB
0 220
下载积分: 2 下载次数: 1

代码说明:

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

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

发表评论

0 个回复

  • 游戏蛇
    我做了使用 c# 的贪吃蛇游戏。它的看起来像向诺基亚 3310 贪吃蛇游戏。。。
    2022-02-03 05:52:27下载
    积分:1
  • 读区硬盘序列号
    读区硬盘序列号-Reading Area drive serial number
    2022-01-25 14:48:44下载
    积分:1
  • 人体运动跟踪
    这是人类运动跟踪代码,由c++,编辑vs2008中,所以你必须打开高版本。这是人类一个摄像头运动跟踪,所以efficey非常高,但这种相对较低。谢谢你转载。
    2022-06-15 02:30:51下载
    积分:1
  • s3c2440 nboot启动源码 SDRAM=64M flash=NAND flash 64M
    s3c2440 nboot启动源码 SDRAM=64M flash=NAND flash 64M-Start s3c2440 nboot source SDRAM = 64Mflash = NAND flash 64M
    2023-03-29 20:10:03下载
    积分:1
  • 例子如何在silverlight中使用后台数据
    例子如何在silverlight中使用后台数据-Examples of how to use silverlight background data
    2022-05-20 03:02:14下载
    积分:1
  • This is a statistics
    这是一本基于统计意义上的决策推理的书。属于信息科学领域,对从事科研的学生和工程师都有意义-This is a statistics-based decision-making sense of the reasoning book. Belong to the field of information science, to the conduct of scientific research have significance for students and engineers
    2022-02-16 03:09:36下载
    积分:1
  • window下的rsync 5.5.0最新版
    window下的rsync 5.5.0最新版跟rsync可双向同步哦!
    2022-05-21 20:40:00下载
    积分:1
  • 注册表修复专家+VB源代码 [ 2005
    注册表修复专家+VB源代码 [ 2005-09-19 06:02:53 | 作者: 中华攻客 ]-registry recovery expert by vb.
    2022-08-21 04:18:43下载
    积分:1
  • VB推箱子游戏源码
    VB推箱子游戏源码-VB source viewing game
    2022-07-17 16:05:10下载
    积分:1
  • a U disk and SD card test tool on Windows, very good
    一个在windows上测试U盘和SD卡等设备的工具,非常好-a U disk and SD card test tool on Windows, very good
    2022-04-21 19:44:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载