资源列表
[数据结构常用算法] Joseph
说明:约瑟夫环 约瑟夫问题的一种描述是:编号为1,2,3……的n个人按顺时针方向围坐成一圈,每人持有一个密码。一开始任选一个正整数作为报数上限m,从第一个人开始按顺时针方向自1开始报数,报到m停止报数。报m的人出列,将他的密码作为新的m值,从他顺时针方向的下一个人开始重新从1开始报数,如此下去,直到所有人全部出列。-Joseph Ring Joseph, a descr iption of the problem is: numbered 1,2,3 ... ... n-individual<angela> 在 2025-07-22 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 4
说明:无向图功能实现,用邻接多重表存储该无向图,并使用动态存储结构。用一个单链表把所有顶点存储起来,在存储边的节点中给出该边的两个顶点的各自的下一条边的节点地址。-Undirected graph implementation of function, with the adjacent multi-table to store the graph, and using dynamic storage structures. With a single list of all vertices sto<stanley> 在 2025-07-22 上传 | 大小:1kb | 下载:0
[数据结构常用算法] primkruskal
说明:数据结构中的经典算法,普利姆算法和kruskal算法,已经测试过的可以运行 。-Classical algorithm for data structure, algorithm and kruskal Pliem algorithm has been tested to run.<*> 在 2025-07-22 上传 | 大小:1kb | 下载:0
[数据结构常用算法] HOMEWORK_9
说明:**this program finds the location of a number in an array while the array **has been entered from the biggest number to the smallest number<Hootan> 在 2025-07-22 上传 | 大小:1kb | 下载:0
[数据结构常用算法] ZIRAKZADEH_HOMEWORK4
说明:this program multiplies two matrises<Hootan> 在 2025-07-22 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 1
说明:数据结构约瑟夫环的实现1. 本演示程序中,人数n应为任意的,首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为报数上限,如此循环,直至所有人都出列为止。-Implementation of data structures Joseph Central 1. The demonstration program, the number n should be arbitrary, at first, enter a value assigned t<wwwqiushou> 在 2025-07-22 上传 | 大小:1kb | 下载:0