资源列表
[数据结构常用算法] princess_1
说明:骑士救公主(问题本质为迷宫问题) 地图由‘.’ ,‘#’,n(0≤n≤9)三种符号构成,‘.’表示平地骑士可以进入,‘#’表示陷阱骑士不能进入,n表示该方格有一个生命力为n的怪物,骑士需要花费n秒时间才能消灭它。 -Knight rescue the princess (nature of the problem for the maze problem) map by the ' .' ,' #' , N (0 ≤ n ≤ 9) constitute the<wmj> 在 2025-06-14 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 1
说明:利用贪心策略解决背包问题。现有载重为M公斤的背包和n种货物。第i种货物的重量为Wi,它的总价值为Pi,假定M、Wi、Pi均为整数。设计程序给出装货方法,使装入背包的货物总价值达到最大。-Greedy strategy to solve the knapsack problem using. Current load of M kg backpack and n kinds of goods. First i kind of cargo weight Wi, its total value of<00> 在 2025-06-14 上传 | 大小:1kb | 下载:0
[数据结构常用算法] binarytree
说明:二叉树遍历程序,包含前序中序和后序遍历,递归和非递归的方法-Binary tree traversal process, including pre-order in the sequence and post-order traversal, recursive and non recursive method<溪云> 在 2025-06-14 上传 | 大小:1kb | 下载:0