登录
首页 » 其他项目 » 1.在选择装入背包的物品时,对每种物品I只有两种选择,即装入背包或不装入背包。不能将物品I装入背包多次,也不能只装入部分的物品I。 2.物品的种数,重量、价...

1.在选择装入背包的物品时,对每种物品I只有两种选择,即装入背包或不装入背包。不能将物品I装入背包多次,也不能只装入部分的物品I。 2.物品的种数,重量、价...

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

代码说明:

1.在选择装入背包的物品时,对每种物品I只有两种选择,即装入背包或不装入背包。不能将物品I装入背包多次,也不能只装入部分的物品I。 2.物品的种数,重量、价值,背包的容量要求输入; 3.算法中加入剪枝函数(对重量已经超过限制重量的子树不搜索); -1. In the selection of the items into the backpack, for each of the items I have only two choices, that is loaded or not loaded backpack backpack. Items should not be many times I load backpack can not only part of the goods loaded I. 2. Number of species items, weight, value, capacity backpack for the importation 3. Algorithm to add pruning function (of weight over the weight limit does not search sub-tree)

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

发表评论

0 个回复

  • Database Systems Introduction to lesson plans. ppt format. The main contents of...
    数据库系统概论教案。ppt格式。电子教案主要内容包括绪论,关系数据库,数据库设计,数据库保护,数据库技术新进展等八章,课件内容丰富有条理,欢迎师生参考使用。-Database Systems Introduction to lesson plans. ppt format. The main contents of electronic lesson plans, including introduction, relational databases, database design, database protection, database technology, such as new progress in eight chapters, courseware content-rich structured, welcomed the teachers and students use and reference.
    2022-08-13 09:34:53下载
    积分:1
  • 在mfc中简单运动的正方形,原理可为有些初学者作出一点贡献...
    在mfc中简单运动的正方形,其原理可为有些初学者作出一点贡献-Now mfc中Canals hung cavity side of bridge, such as the source of形Hao, 其 braise原bleed at the nose strip为Which Course embankment laugh krypton brazing献instance, Liao Yu
    2022-03-06 09:51:03下载
    积分:1
  • 用E语言编写的一个简单游戏,第一次做做的不是很好,请多多指教...
    用E语言编写的一个简单游戏,第一次做做的不是很好,请多多指教-With E written in a simple game, for the first time doing the not very good, please the exhibitions
    2022-02-01 18:35:11下载
    积分:1
  • This program for hamming code calculation
    This program for hamming code calculation
    2023-06-06 17:40:03下载
    积分:1
  • VB实现的AE基础功能(地图浏览、放大、缩小、漫游等基本功能)...
    VB实现的AE基础功能(地图浏览、放大、缩小、漫游等基本功能)-VB implementation of the basic functions of AE (map browsing, zooming and narrow, roaming and other basic functions)
    2022-03-18 06:10:16下载
    积分:1
  • Eight
    八路模拟数据采集显示电路,70H-77H存放采样值,78H-7BH存放显示数据,依次为个位、十位、百位、通道标志-Eight-way analog data acquisition display circuit, 70H-77H stored sampled values, 78H-7BH store display data, followed by single-digit, 10, 100, channel markers
    2022-02-04 08:43:08下载
    积分:1
  • 总个数确定后,每张盘curDisk的移动方向maybe_To是确定的且唯一的:如共有三个盘时,盘1始终向左移动。 这里,将柱子由左向右看成A(源柱子Source...
    总个数确定后,每张盘curDisk的移动方向maybe_To是确定的且唯一的:如共有三个盘时,盘1始终向左移动。 这里,将柱子由左向右看成A(源柱子Source),B(借助的柱子Borrow),C(目标柱子Target). A的左看成C,B的左看成A,C的左看成B; A的有看成B,B的右看成C,C的右看成A; 每张盘的移动方法(因为不可能连续两次移动相同的盘!): 一个盘curDisk现在在 柱子curStick上,那么curDisk另一个柱子(3个中除了2个的另1个) 只要有选择的选择一个柱子curStick,分析、判断其最上面的盘curDisk的能否向curDisk确定的唯一的方向移动;移动 完后 再 选择 另一个 柱子 分析 判断 就可以完成了 (这个算法特别适合于人玩这个“弱智”(我有同学这么说)游戏,我玩我的文曲星pc1000a上的Hanoi 9层游戏,需要5分钟就可以移动完毕)-total number identified, each set curDisk maybe_To direction of the movement of which is determined only : If there are three disk, was always left a mobile. Here, the columns from left to right as A (source pole Source), B (using the pole Borrow), C (target pole Target). A left as C, B to the left as A, C on the left as B; A as the B, B on the right side as C, the right as A; each set of mobile methods (as it is impossible for the same two mobile disk!) : a set curDisk curStick now on the pole, then curDisk another pole (three in addition to two other one), when given a choice, choose a pole
    2022-09-17 11:25:03下载
    积分:1
  • 一个很好的火焰屏保
    一个很好的火焰屏保-a good flame screensaver
    2023-01-31 18:55:03下载
    积分:1
  • 这是一个用multisim10做的一个万用表,用的全波整流,欢迎借鉴。...
    这是一个用multisim10做的一个万用表,用的全波整流,欢迎借鉴。-This is a multisim10 to do with a multimeter, using the full-wave rectifier, welcome to draw on.
    2022-02-15 16:43:58下载
    积分:1
  • 关于图像处理的基本程序 vc++ 256色转灰度图 有实例图片
    关于图像处理的基本程序 vc++ 256色转灰度图 有实例图片-Image processing on the basic procedures for vc++ 256 color images to grayscale examples
    2022-02-14 23:49:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载