资源列表
[数据结构常用算法] grapgh_prim
说明:数据结构:图的Prim算法开发环境visual C/C-图的Prim算法,开发环境visual C/C++<chan> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] StelaeBridgeRiver
说明:这是递归算法的一个难度较大的例子。适用于学习算法的学生使用。-This is a recursive algorithm, a more difficult example. Learning algorithm applied to the students.<小李> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] packageProblem.tar
说明:0-1的小偷背包问题源码,给出可偷东西的个数和可以拿走的最大重量,算法可以给出在这个条件下的最优解。-0-1 knapsack problem thieves source, give the number of things can be stolen and taken away the largest weight in the algorithm can give optimal solution under the conditions.<luxin> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 1108
说明:在0 / 1背包问题中,需对容量为c 的背包进行装载。从n 个物品中选取装入背包的物品,每件物品i 的重量为wi ,价值为pi 。对于可行的背包装载,背包中物品的总重量不能超过背包的容量,最佳装载是指所装入的物品价值最高,即n ?i=1pi xi 取得最大值。约束条件为n ?i =1wi xi≤c 和xi?[ 0 , 1 ] [ 1≤i≤n]。-At 0/1 knapsack problem, there is a need for a capacity of c for the loaded<samuel> 在 2025-06-18 上传 | 大小:1kb | 下载:0