-
用回溯法求解背包问题有n项假设,定…
用回溯解背包问题 假设有n件物品,定义一个结构体a[]来存储,结构体有两个成员weight和value(weight表示重量,value表示价值)先定义一个数组col[]表示每个物品当前状态(为1表示被选,为0表示未被选),其初值全为1,从下标为0开始遍历,当前所选物品总重和总价值分别设为tw和tv(初值均为0),背包的限重设为limit,若第i个物品满足tw+a[i].weight
- 2022-06-27 19:44:28下载
- 积分:1
-
用des方法实现加密,在控制台下指定要进行加密的文件,再指定输出文件名,可以得到对任意文件进行的des加密....
用des方法实现加密,在控制台下指定要进行加密的文件,再指定输出文件名,可以得到对任意文件进行的des加密.-used encryption method, designated under the console to encrypt a document and then designated output file name, which can be arbitrary files on the DES encryption.
- 2022-02-22 05:46:44下载
- 积分:1
-
zigbee采集温湿度程序
zigbee采集温湿度程序 用于采集温湿度再发到串口显示出来
- 2022-04-16 23:19:45下载
- 积分:1
-
可以算加减乘除24,可以求所有的解,但又重复的,没有刻意去掉...
可以算加减乘除24,可以求所有的解,但又重复的,没有刻意去掉-can calculate the arithmetic of 24, can help all the solutions, but to repeat, not deliberately removed
- 2022-05-18 01:43:43下载
- 积分:1
-
code of changing computer s resolving power
改变计算机分辨率的源程序-code of changing computer s resolving power
- 2022-03-21 13:16:51下载
- 积分:1
-
VC++编程基础之Vector使用。感觉vectoe很好用!~
VC++编程基础之Vector使用。感觉vectoe很好用!~-VC++ programming base of Vector use. Vectoe feeling good use! ~
- 2023-08-01 09:20:03下载
- 积分:1
-
点在多边形内判断,思想:点的做射线与多边形的交点个数。...
点在多边形内判断,思想:点的做射线与多边形的交点个数。-Point in polygon judge thought: point to do ray intersection and the number of polygons.
- 2022-02-07 07:24:03下载
- 积分:1
-
一个简单的编译器的实现程序,他展示了大量的数据类型和抽象数据类型,以及对字符串进行解析的技术...
一个简单的编译器的实现程序,他展示了大量的数据类型和抽象数据类型,以及对字符串进行解析的技术-a simple compiler in procedures, he showed a lot of data types and abstract data types, and the right strings in the technical analysis
- 2022-01-22 07:38:50下载
- 积分:1
-
细胞自动化
一种细胞自动化模拟器与 STL 容器的使用和使用一个数组实现的。很好的教育的目的,若要了解如何在 c + + 中使用的复制和移动的语义,以及 R 和 L 值。
- 2022-03-20 22:17:39下载
- 积分:1
-
MSDN inside of the console has a number of examples used in places inconvenient...
对MSDN里面的例子console有一些不方便用的地方修改了一下-MSDN inside of the console has a number of examples used in places inconvenient to modify a bit
- 2022-07-09 11:47:31下载
- 积分:1