-
1.在选择装入背包的物品时,对每种物品I只有两种选择,即装入背包或不装入背包。不能将物品I装入背包多次,也不能只装入部分的物品I。
2.物品的种数,重量、价...
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)
- 2022-03-25 05:48:01下载
- 积分:1
-
冒泡排序
#include < iostream.h > #define类int公共voidvoidvoid sortLogic() ; void bubsort:: getdata() {
cout arr [i] ; void bubsort:: showdata() {
cout
- 2022-02-07 05:45:31下载
- 积分:1
-
质心的凸包
1.本程序获取一些点坐标作为输入。
输入的文件的格式:
第 1 行: 点数目
其他线路: x y
2.然后它计算凸格雷厄姆扫描算法。
3。 最后它计算的质心凸包使用下面的公式:
- 2022-05-24 23:53:02下载
- 积分:1
-
Labview Chart Time Display
Labview Chart Time Display
- 2022-01-26 07:47:10下载
- 积分:1
-
读写位图文件的
读写位图文件的-literacy Bitmap File Dongdong
- 2022-11-28 08:55:03下载
- 积分:1
-
java编的经典吃豆子游戏,希望会喜欢
java编的经典吃豆子游戏,希望会喜欢
- 2023-01-12 22:20:04下载
- 积分:1
-
物流管理系统 付有详细的论文 还有介绍等等 很经典
物流管理系统 付有详细的论文 还有介绍等等 很经典-Logistics Management System to pay detailed paper also introduced the classic, etc.
- 2022-04-16 07:23:52下载
- 积分:1
-
对java中Streams的介绍,比较全面到位!
对java中Streams的介绍,比较全面到位!-right java Streams of China, the more comprehensive the point!
- 2022-02-13 21:13:29下载
- 积分:1
-
数据结构C语言和Java描述单链表的基本操作
数据结构C语言和Java描述单链表的基本操作-C language and Java data structures describing the basic operation of a single linked list
- 2022-12-13 22:20:03下载
- 积分:1
-
一个粮情监控的PCB板,protel绘制,已在工程中实现。
一个粮情监控的PCB板,protel绘制,已在工程中实现。-A grain PCB board to monitor the situation, protel draw.
- 2022-09-06 13:15:03下载
- 积分:1