-
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
-
本软件是成型的软件,但我没有地方放,所以放在这里,请见谅,主要用于限制孩子浏览不健康的网页,在软件中只有家长允许的网页才能浏览。也请各位高手帮我测试传播一下,...
本软件是成型的软件,但我没有地方放,所以放在这里,请见谅,主要用于限制孩子浏览不健康的网页,在软件中只有家长允许的网页才能浏览。也请各位高手帮我测试传播一下,-the software is molding software, but I have no place to, so here and I do apologize, mainly used to restrict children"s web browser unhealthy, the software allows only parents can browse the website. Please help me to master communication about testing, thank you
- 2022-09-30 11:40:04下载
- 积分:1
-
老鼠走迷宫程序,用vc编写,可以算出最短路径,用户自己设置围墙合入口出口...
老鼠走迷宫程序,用vc编写,可以算出最短路径,用户自己设置围墙合入口出口-rats Maze procedure using vc preparation, you could calculate the shortest path, users set up their own import export a wall
- 2022-05-18 12:27:40下载
- 积分:1
-
户外的开放源代码的软件产品,没有中文版。我们有骗局…
开源软件产品Alfresco没有中文版。我们在其英文版的基础上进行了翻译。-Alfresco open source software products, there is no Chinese version. We have conducted on the basis of their English translation.
- 2022-11-28 17:15:03下载
- 积分:1
-
Sparse Matrix Calculator
稀疏矩阵计算器,以带行逻辑链接信息的三元组表示稀疏矩阵,实现矩阵相加相减相乘的运算。-Sparse Matrix Calculator
- 2022-03-16 20:51:01下载
- 积分:1
-
Find prime numbers prepared by screening the function: void sieve (bool isPrime...
编写筛选查找素数函数:
void sieve(bool isPrime[], int n)
其中isPrime[ ]为一个布尔型数组,n为数组大小。由于2是第一个素数,
所以设置isPrime[0]和isPrime[1]的值为false,并设置其余的元素初值为true。
然后对从4到n-1的每一个i,判断i是否能够被2整除,如果i能够被2整除,则设置isPrime[i]为false。
对从2到n/2的每一个可能的数值重复以上处理,当操作结束时,所有值为true的isPrime[i]所对应的i就是素数,它们将是从筛子中掉下来的。-Find prime numbers prepared by screening the function: void sieve (bool isPrime [], int n) which isPrime [] as a Boolean array, n is the size of the array. Because 2 is the first prime number, so set the isPrime [0], and isPrime [1] a value of false, and set the initial value of the remaining elements of true. And then from 4 to n-1 for each i, to determine whether i can be divisible by 2, if i can be divisible by 2, then set the isPrime [i] is false. From 2 to n/2 possible values for each one to repeat the above processing, when the operation ended, all the true value of the isPrime [i] corresponding to i is a prime number, they will be falling from the sieve in the past.
- 2023-03-02 04:45:03下载
- 积分:1
-
自考一级考试应用软件
自考一级考试应用软件-an application software
- 2023-03-16 18:15:04下载
- 积分:1
-
edit标签和右键菜单
edit标签和右键菜单
edit标签和右键菜单
edit标签和右键菜单
-edit labels and right-click menus and edit labels Right menu edit labels and right-click menus Edi t labeling and right-click menus and edit labels right edit menu and right-click menus labeling
- 2022-03-25 09:51:58下载
- 积分:1
-
CRT ECG NONITOR using Interrupt Sampling. ECG output to DAC, drawn bidirectional...
CRT ECG NONITOR using Interrupt Sampling. ECG output to DAC, drawn bidirectionaly.
ECG also outputed through RS232 using final year project real-time frame structure.-CRT ECG NONITOR using Interrupt Sampling. ECG output to DAC, drawn bidirectionaly.
ECG also outputed through RS232 using final year project real-time frame structure.
- 2022-04-18 16:41:40下载
- 积分:1
-
采用VC6.0实现了遗传算法,并且具有一定的通用性,实现一般的运用...
采用VC6.0实现了遗传算法,并且具有一定的通用性,实现一般的运用-VC6.0 achieved using genetic algorithms, and have a certain commonality to achieve general use
- 2023-04-29 04:10:03下载
- 积分:1