资源列表
[数据结构常用算法] topsorting
说明:此函数功能是图的遍历算法,用邻接矩阵存储图,然后求出其拓扑排序,再输出其图的信息-Function is to map the function of the traversal algorithm, the adjacency matrix storage map, then calculated the topological sort, then the output of its map information<li> 在 2025-07-02 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Josephus
说明:编号为1,2,3,……,n的n个人按顺时针方向围坐一圈。任选一个正整数作为报数上限m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。-Numbered 1,2,3, ... ..., n of n individuals according to a clockwise direction around a circle. Choose a positive integer as the<许奇龙> 在 2025-07-02 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 1
说明:设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。-something like Joseph problem<fengyumoce> 在 2025-07-02 上传 | 大小:1kb | 下载:0
[数据结构常用算法] supermarketsiete
说明:超市选址,用数据结构,求最小生成树问题。自设计算法为超市寻找一个最短路径。-Supermarket site, the data structure, and minimum spanning tree problem. Since the design of algorithms for the supermarket to find a shortest path.<送爱心> 在 2025-07-02 上传 | 大小:1kb | 下载:0
[数据结构常用算法] stack_link
说明:这是用链表实现的栈数据结构。链表数据结构的最大优点是不受元素个数的限制,除非内存耗尽。-This is the stack implementation with linked list data structure. List data structure is not subject to the greatest advantage of the restricted number of elements, unless the memory run out.<刘志福> 在 2025-07-02 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 0-1package
说明:在0和1情况下进行背包问题解决,涉及多个物体的重量和价值,求得最大价值量以及分配方案。-At 0 and 1 backpack case for problem-solving, involving more than the weight of objects and values, as well as to achieve maximum value distribution program.<jingyuan> 在 2025-07-02 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Maze
说明:迷宫算法(maze) /* Maze * Starting point is m[0][0], need to find a path go to m[9][9]. 0 means OK, * 1 means cannot go there, boundary is 0 and 9, cannot go beyond boundary. * Each step can be made horizontally or vertically for one more gri<JerryJiang> 在 2025-07-02 上传 | 大小:1kb | 下载:0