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

1背包问题是NP难题。0

于 2022-03-25 发布 文件大小:17.38 kB
0 216
下载积分: 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 个回复

  • Symbol_MC3000_C#.条码扫码范例程序之5
    Symbol_MC3000_C#.条码扫码范例程序之5-Symbol_MC3000_C#. Barcodes sweep procedure code sample 5
    2022-12-27 20:20:04下载
    积分:1
  • 很好的信息消除 很好的信息消除
    很好的信息消除 很好的信息消除-Very good information on the elimination of good information to eliminate
    2022-12-31 04:30:04下载
    积分:1
  • Tools of students management. The function is not perfect ,but there are some fu...
    小东西,学生管理工具。功能不十分丰富,但五脏俱全,欢迎大家多多指教-Tools of students management. The function is not perfect ,but there are some function is special.
    2022-01-31 11:40:12下载
    积分:1
  • SoftICE的全部命令中文解说,十分详细准确无误。
    SoftICE的全部命令中文解说,十分详细准确无误。-SoftICE all orders Chinese captions, very detailed accuracy.
    2022-03-07 03:54:40下载
    积分:1
  • C语言实现的图书管理系统
    这是一个C语言编写的图书管理系统,使用文件而不是数据库来存储的图书信息和用户信息
    2023-07-28 18:00:02下载
    积分:1
  • 两通汇编程序
    这是简单的两步汇编程序,在 c + + 中使用的类和文件。它包括两个输入的文件之前执行用户可以更改输入的文件的名称根据客户要求 (无论是包括两文件)。Optab 还包括在这个项目中,用户可以自由地更新根据自己投入 optab。请先通过程序更改输入或使用一定的输入的文件。谢谢!!
    2022-03-17 20:09:13下载
    积分:1
  • Java 的井字游戏
    这是一款普通的比赛,称为井字游戏。它是在 Java 中的成功案例。它很容易理解它。它使用人工智能的 CPU。其 1 玩家游戏 & 第二个球员就是计算机本身。
    2023-01-19 22:40:04下载
    积分:1
  • 收集到的orion_ep93xx_wince_bsp_1
    收集到的orion_ep93xx_wince_bsp_1-3-507显示驱动源码,未作测试-Collected orion_ep93xx_wince_bsp_1-3-507 display driver source code, not for testing
    2022-02-03 23:17:42下载
    积分:1
  • file extensions volume changes for V1.0 features : batch change file extensions...
    文件扩展名批量修改器V1.0 功能:批量修改文件扩展名 使用方法:用户可以选择某个目录,然后对该目录下(包括子目录)的某类文件的扩展名,进行批量修改,可修改成用户设定的扩展名类型。-file extensions volume changes for V1.0 features : batch change file extensions Use : Users can select a directory, then the directory (including subdirectories) in the expansion of certain documents, and changes in volume can be transformed into a user-defined extension types.
    2023-01-30 10:45:04下载
    积分:1
  • NXP LPC3000 series wince BSP package, it is the classic transplantation
    NXP LPC3000系列 wince BSP包,很经典的移植-NXP LPC3000 series wince BSP package, it is the classic transplantation
    2022-06-30 06:39:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载