-
用回溯法求解背包问题有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
-
c++实现的模拟银行系统的程序,可以模拟登录,存款,取款,转账等操作,最后将操作的数据保存到文件中。...
c++实现的模拟银行系统的程序,可以模拟登录,存款,取款,转账等操作,最后将操作的数据保存到文件中。-c achieve the banking system simulation process can be simulated Login, deposits, withdrawals, transfers, etc, Finally, the data operation to preserve documents.
- 2022-07-02 14:28:56下载
- 积分:1
-
c语言的更深一步编程,有一定的开发基础的学习用
c语言的更深一步编程,有一定的开发基础的学习用-Some advanced C program, for veterans
- 2022-05-19 00:41:13下载
- 积分:1
-
一个书店处理程序,构造了两个类面向三个对象。有参考价值!...
一个书店处理程序,构造了两个类面向三个对象。有参考价值!-a bookstore processing structure for the two categories of three targets. Reference value!
- 2022-08-07 20:16:12下载
- 积分:1
-
这是一个对运动会赛的学校统计分数的程序,包括名前6名的学生名单,以及所属的学校...
这是一个对运动会赛的学校统计分数的程序,包括名前6名的学生名单,以及所属的学校-This is a game of the games to the school scores procedures, including six former students list and the respective schools
- 2022-03-05 19:47:32下载
- 积分:1
-
一个处理数论的函数库,但是安装时有点麻烦,看看里面的介绍吧...
一个处理数论的函数库,但是安装时有点麻烦,看看里面的介绍吧
-A deal with number theory library, but a bit of trouble during installation, look at the inside bar introduction
- 2022-04-22 00:15:33下载
- 积分: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
-
一个游戏控制台(挂)
a game on console ( the hanged )
- 2022-06-20 00:18:32下载
- 积分:1
-
stepper motor control, can be a good learning SCM stepper motor control and appl...
步进电机控制,能很好地学习单片机控制步进电机的原理及应用。-stepper motor control, can be a good learning SCM stepper motor control and application of the principle.
- 2022-04-27 03:27:13下载
- 积分:1
-
输入任意大小的矩阵阶数n,程序将自动生成…
输入任意大小的矩阵阶数n,程序将自动产生一个随机矩阵迷宫。本程序可以迅速的找到所有可能的路径,并显示之。代码中故意限制只显示最多30条路径。-arbitrary size of the input matrix order n, the program will automatically generate a random matrix maze. This program can quickly find all possible paths, and Displays. Code intentionally limited only to a maximum of 30 trails.
- 2022-07-24 00:29:25下载
- 积分:1