资源列表
[数据结构常用算法] EX14
说明:设置一个静态堆栈,编写它的基本操作后,在图类型设计时,构造一个最短路径矩阵和一个最短路径长度矩阵,使用FLOYD算法得出最短路径后,利用堆栈的性质输出最短路径和最短路径长度-Set up a static stack, the preparation of its basic operation, the type of design in the plan, construct a shortest path matrix and a shortest path length matrix,<龙悦心> 在 2025-06-12 上传 | 大小:1kb | 下载:0
[数据结构常用算法] pack
说明:一个简化的背包问题:一个背包能装总重量为 T,现有 n 个物件,其重量分别为(W1、W2、…、Wn)。问能否从这 n 个物件中挑选若干个物件放入背包中,使其总重量正好为 T ?若有解则给出全部解,否则输出无解。-A simplified knapsack problem: a backpack can hold a total weight for the T, the existing n-object, its weight, respectively (W1, W2, ..., Wn).<杨> 在 2025-06-12 上传 | 大小:1kb | 下载:0