资源列表
[数据结构常用算法] rotate
说明:输入一个自然数N(2≤N≤9),要求输出如下的螺旋矩阵,即边长为N*N,元素取值为1至N*N,1在左上角,呈顺时针方向依次放置各元素。-Enter a natural number N (2 ≤ N ≤ 9), the required output of a screw matrix, i.e. a side length of N* N, elements in the range 1 to N* N, 1 in the upper left, showing the elements ar<> 在 2025-06-20 上传 | 大小:163kb | 下载:0
[数据结构常用算法] dongwugame
说明:一款基于MFC的动物游戏程序。用到数据结构的树形结构。-An MFC-based animal games. Tree data structure used.<wang> 在 2025-06-20 上传 | 大小:3.38mb | 下载:0
[数据结构常用算法] shujujiegou_calculate
说明:基于MFC的计算器程序。类型同windows的计算器程序。利用数据结构的知识。-MFC-based calculator program. Type with the windows calculator program. Using the knowledge of the data structure.<wang> 在 2025-06-20 上传 | 大小:2.27mb | 下载:0
[数据结构常用算法] st
说明:数塔问题的解决算法,用于计算数塔中从顶层走到底层,若每一步只能走到相邻结点,则经过的结点的数字之和最大是多少。-Number of tower problem algorithm used to calculate the number of the tower from the top go bottom, each step can only be reached if the adjacent nodes, then after the number of nodes and the ma<张智> 在 2025-06-20 上传 | 大小:559kb | 下载:0
[数据结构常用算法] folyd
说明:1.求所有点对的最短路径问题,设G=(V,E)是一个有向图,其中的每条边(i,j)由一个非负的长度l[i,j],如果从顶点i到顶点j没有边,则l[i,j]=∞。要找出从每个顶点到其他所有顶点的距离,这里从顶点x到顶点y的距离是指从x到y的最短路径的长度。 2. 通过一个图的权值矩阵求出它的每两点间的最短路径矩阵。 3. 从图的带权邻接矩阵A=[a(i,j)] n×n开始,递归地进行n次更新,即由矩阵D(0)=A,按一个公式,构造出矩阵D(1);又用同样地公式由D(1)构造出D(2);……<suyu> 在 2025-06-20 上传 | 大小:4kb | 下载:0