登录
首页 » 算法 » 0 / 1背包问题是一个N P

0 / 1背包问题是一个N P

于 2022-02-26 发布 文件大小:8.71 kB
0 240
下载积分: 2 下载次数: 1

代码说明:

0 / 1背包问题是一个N P-复杂问题,为了解决该问题,,将用回溯算法解决该问题。既然想选择一个对象的子集,将它们装入背包,以便获得的收益最大,则解空间应组织成子集树的形状(如图1 6 - 2所示)。该回溯算法与4 . 2节的装载问题很类似。首先形成一个递归算法,去找到可获得的最大收益。然后,对该算法加以改进,形成代码。改进后的代码可找到获得最大收益时包含在背包中的对象的集合。-0/1 knapsack problem is a P-complex issues, in order to solve the problem, and will be used backtracking algorithm to solve the problem. As to the choice of a subset of object, they will load a backpack, in order to obtain the greatest profits, the solution should be organized into space subset of the shape of the tree (Figure 1 6-2 below). The backtracking algorithms and 4. Two loading problem is very similar. Forming a recursive algorithm to get the maximum benefit available. Then, this algorithm is modified to form code. Improved code can be found at the maximum benefits included in the backpack of a collection of objects.

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

发表评论

0 个回复

  • 计算方法《牛顿差值》
    计算方法《牛顿差值》-calculation method, "Newton margin"
    2022-02-07 00:30:34下载
    积分:1
  • arduino 云发送电子邮件
    arduino 云发送电子邮件和 LDR 和 LM35 的信息
    2022-07-07 23:33:04下载
    积分:1
  • Contains Clustering Mechanism. especially, Cluster Header Selection is focused.
    Contains Clustering Mechanism. especially, Cluster Header Selection is focused.
    2022-03-23 16:09:52下载
    积分:1
  • rfid自动仓储
    应用背景基于rfid的自动仓储系统,实现人机交互,管理pc界面的功能,上传文件是实现这些功能的源代码,使用c++里面的mfc编程。-Rfid based automatic storage systems, human-computer interaction, function management pc interface, uploading files is the source code for these functions, using c++ mfc programming inside.关键技术rfid技术实现仓储的无人化,智能化,可以一次扫描10件以上物品,实现人机交互,管理员可以通过直观的pc界面管理数据库,去进出物品进行管理
    2023-06-12 06:00:03下载
    积分:1
  • 关于小波的matlab四种变换,研究小波应用的很需要
    关于小波的matlab四种变换,研究小波应用的很需要-on four Matlab wavelet transform, the application of wavelet research is needed
    2023-01-25 09:00:03下载
    积分:1
  • Scaling Zero-order
    此演算法可用來實現 放大 及縮小 在歐幾里得幾何中,均勻縮放是放大或縮小物體的線性變換; 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-12-26 22:15:03下载
    积分:1
  • rtc实时时钟试验
    应用背景在arm7 的stm32f103zet6芯片上实现电子日历的制作,采用定时功能来实现,可以自己设置显示的时间范围关键技术采用arm7 的stm32f103zet6的定时功能来制作电子日历,先确定日历最早日期,然后算出起始日期到当前日期的总秒数,在初一一年的秒数来实现时间分割
    2022-11-15 17:50:04下载
    积分:1
  • 探究缩短循环码性能与生成多项式的选取
    资源描述【摘 要】从通信系统的基本原理出发,着重分析了系统中的常用信道编码。在此基础上对应用广泛的一类缩短循环码 的校验性能从数学理论和matlab 仿真模型两方面进行研究,更直观的揭示了生成多项式与编码校验性能的内在联系,为构造 更优化的标准打下基础。 【关键词】信道编码;缩短循环码;生成多项式;矩阵实验室
    2022-03-18 02:11:03下载
    积分:1
  • 距阵链乘问题: 找出矩阵链乘A(35*40) A(40*20) A(20*10) A(10*15)的最佳相乘次序。 算法来自:计算机算法导引...
    距阵链乘问题: 找出矩阵链乘A(35*40) A(40*20) A(20*10) A(10*15)的最佳相乘次序。 算法来自:计算机算法导引-matrix chain by : identify matrix chain by A (35* 40) A (40* 20) A (20* 10) A (10* 15) concludes the best order. Algorithm from : computer algorithm Seeker
    2022-03-14 17:46:13下载
    积分:1
  • 一些基本的矩阵算法
    一些基本的矩阵算法-some basic matrix algorithm
    2022-03-06 02:46:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载