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

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

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

  • 多维傅里叶变换,二维DFT快速,共分五部
    多维傅里叶变换,二维DFT快速算法,共分五部--三:二维实序2D-DFT列行列算法-Multi-dimensional Fourier transform, fast algorithm for two-dimensional DFT is divided into 5- 3: two-dimensional real column ordinal ranks of 2D-DFT algorithm for
    2022-02-12 22:45:21下载
    积分:1
  • 随机信号处理的演示维纳滤波的MATLAB实现!
    维纳滤波的MATLAB实现,用于随机信号处理的算法演示!-Wiener filter MATLAB for random signal processing algorithm demo!
    2023-04-20 13:20:03下载
    积分:1
  • 错误位置方
    数值计算算法:方法错误的定位写帕斯卡尔要找到一个解决方案,以F(X)=0给出的连续函数   f。关于区间[P0,P1],其中f(P0)和f(p1)为必须   相反的迹象:   输入:端点P0,P1;公差TOL;            迭代N 0的最大数目。   输出:近似解p或            该算法失败的消息。
    2022-03-14 20:22:14下载
    积分:1
  • Matlab实现的CFD
    Matlab实现的CFD算法-Matlab CFD algorithms
    2023-04-26 13:50:03下载
    积分:1
  • 一个较完备的HugeNumber类,实现了加减乘除及乘方,阶乘的功能,精确度可以随意调整。...
    一个较完备的HugeNumber类,实现了加减乘除及乘方,阶乘的功能,精确度可以随意调整。-A more comprehensive category HugeNumber achieved and involution Math
    2022-07-27 04:53:28下载
    积分:1
  • 理查德外推加速
    理查德外推加速算法-Richard extrapolation algorithm acceleration
    2022-04-25 17:02:57下载
    积分:1
  • not know if you can build success!TCwin
    也不知道大家能不能编译成功!偶在偶机器上用TC可以编译成功,但用win-tc就不能 ̄还有编译成功的.exe文件发给别人看也不能正确显示结果,郁闷,偶都不知道哪儿错了,请大虾帮我看看,还有要怎么修改计算机当前时间!-not know if you can build success!TCwin-tc.exe
    2022-03-20 20:56:04下载
    积分:1
  • 用基本C++语言实现的解决运筹学对偶问题的程序,需要提交对偶问题程序的朋友可以一试...
    用基本C++语言实现的解决运筹学对偶问题的程序,需要提交对偶问题程序的朋友可以一试-With the basic C++ Realize the language of operations research on the dual problem solution procedure, required to submit to the dual problem procedures friends can one test
    2023-09-06 12:45:03下载
    积分:1
  • 相亲游戏
    这是一个模拟相亲的程序,包括男选女、女挑男等一系列过程,通过数次“选择”,和“抛弃”,确保找到最合适的配对伙伴。最终将整个团队中的人配完对。
    2022-07-28 08:35:53下载
    积分:1
  • 一个解决方案
    一个解线性超定方程组的算法,是用C语言写的,简单易懂,而且速度还挺快的。-a solution-linear equations of the algorithm is written in C language, easily understood, but the speed It"s fast.
    2022-02-20 05:12:20下载
    积分:1
  • 696518资源总数
  • 105661会员总数
  • 6今日下载