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

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

于 2022-02-26 发布 文件大小:8.71 kB
0 201
下载积分: 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 个回复

  • ben wenjian shi tongguo yong cbainxie chengxuo
    ben wenjian shi tongguo yong cbainxie chengxuo-ben wenjian shi tongguo yong cbainxie Rezeption gxuo
    2022-01-26 08:32:48下载
    积分:1
  • 高斯 - 赛德尔ITERATAIVE技术
    To solve Ax = b given an initial approximation x(0).**   INPUT:   the number of equations and unknowns n; the entries*            A(I,J), 1
    2022-01-21 21:36:23下载
    积分:1
  • 求矩阵的最大特征值
    求矩阵的最大特征值-matrix for the largest eigenvalue
    2022-01-21 21:13:50下载
    积分:1
  • CRF 工具包及使用教程
    CRF的工具包,实现原理,及样例。CRF(Conditional Random Field) 条件随机场是近几年自然语言处理领域常用的算法之一,常用于句法分析、命名实体识别、词性标注等。在我看来,CRF就像一个反向的隐马尔可夫模型(HMM),两者都是用了马尔科夫链作为隐含变量的概率转移模型,只不过HMM使用隐含变量生成可观测状态,其生成概率有标注集统计得到,是一个生成模型;而CRF反过来通过可观测状态判别隐含变量,其概率亦通过标注集统计得来,是一个判别模型。由于两者模型主干相同,其能够应用的领域往往是重叠的,但在命名实体、句法分析等领域CRF更胜一筹。当然你并不必须学习HMM才能读懂CRF,但通常来说如果做自然语言处理,这两个模型应该都有了解。
    2022-08-12 08:38:50下载
    积分:1
  • 本程序模拟细胞的自我繁殖,你会看到一个柔软的细胞诞生在电脑屏幕上,然后随着各个分子的撞击,细胞开始分裂,经过一段时间的演化,这个细胞会在溶液中把自己复制,然后这...
    本程序模拟细胞的自我繁殖,你会看到一个柔软的细胞诞生在电脑屏幕上,然后随着各个分子的撞击,细胞开始分裂,经过一段时间的演化,这个细胞会在溶液中把自己复制,然后这个过程会继续进行……。这种自我复制是在人工化学的基础上进行,比起原来的基于细胞自动机的自我复制更加形象逼真-the cell simulation of self-reproduction, you will see a soft cell birth on the computer screen, and then with all the percussive elements, cell division, after a period of evolution, the cells in the solution themselves copied, and then the process will continue ... . This self-reproduction of the artificial chemical basis, compared to the original cell-based automatic machine self-replication more vivid
    2022-07-16 13:06:16下载
    积分:1
  • windows 下使用c++编写,图形演示,图形 透视
    图形透视算法,图形算法演示,图形 透视算法
    2022-02-02 15:13:23下载
    积分:1
  • binary to bcd conversion
    二进制到bcd转换
    2022-02-14 15:53:06下载
    积分:1
  • TI DSP TMS320F280x external interrupt routines.
    TI DSP TMS320F280x 外部中断例程。-TI DSP TMS320F280x external interrupt routines.
    2022-02-21 10:14:46下载
    积分:1
  • an index based on the fire damage assessment software, no classified data, the g...
    一个基于指数法的火力毁伤评估软件,没有涉密数据,代码一般-an index based on the fire damage assessment software, no classified data, the general code
    2022-10-04 23:55:03下载
    积分:1
  • TSNR 两步消噪程序
    根据维纳滤波理论,基于先验信噪比的维纳滤波,并用后验信噪比补偿先验信噪比,达到很好效果,可以直接运行
    2022-08-09 03:40:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载