资源列表
[数据结构常用算法] 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-11-22 上传 | 大小:1kb | 下载:0
[2D图形编程] CircleFitByPratt
说明:Input: XY(n,2) is the array of coordinates of n points x(i)=XY(i,1), y(i)=XY(i,2) Output: Par = [a b R] is the fitting circle: center (a,b) and radius R Note: this fit does not use built-in matrix functions (except "mean"), so it can be<田雨> 在 2025-11-22 上传 | 大小: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-11-22 上传 | 大小:1kb | 下载:0