搜索资源列表
malloc
- 约瑟夫环的算法-Joseph Ring algorithm
ysf
- 约瑟夫算法!用数组实现,以及链表实现。欢迎下载-Joseph algorithm! Using an array to achieve, as well as the achievement list. Welcome to download
yuesefuhuan
- C#实现的约瑟夫环的问题 感兴趣的可以看一下-C# to achieve the Joseph Central questions could be of interest to look at
yuesefu
- 数据结构课程设计_约瑟夫环 使用VC编译 可以通过输入人数和初始值进行相应的炒操作-Data Structure Course Design _ Joseph Central VC compiler can use by entering the number and the initial value for the corresponding operation speculation
biaodashi
- 数据结构里的经典算法的模拟,约瑟夫环的求解等问题,以程序的形式给出-Data structure of the classical algorithm simulation, Joseph Central problem solving, etc. in order to give the form of procedures
josech
- 约瑟夫环, 任务:编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个仍开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。 要求:利用单向循环链表存储结构模拟此过程,按照出列的顺序输出各个人的编号。 测试数据: m
ysfh
- 这是用C语言的编写的约瑟夫环的代码,而且是用链表编写的,开发环境是vc6.0,-This is prepared by using C language code Joseph Central, and are prepared to use linked lists, development environment are vc6.0,
yueshefuhuanwenti
- 设计求解约瑟夫环问题的出列顺序。具体的要求和说明如下: (1)利用单向循环链表存储结构模拟此过程,按照出列的顺序输出个人的编号。 (2)m的初值为20;n=7,7个人的密码依次为:3,1,7,2,4,8,4,首先m的值为6(正确的出列顺序应为:6,1,4,7,2,3,5)。 (3)程序运行后,首先要求用户指定初始报数的上限值,然后读取个人的密码。可设n<=30,此题所用的循环链表中不需要“头结点”,请注意空表和非空表的界限。 (4)将上述功能改为在顺序结构上实现。-
ysph
- 约瑟夫环,数据结构算法,挺有意思,看看,-ysphdfgfgf
acm
- 一道ACM的题,用数学的取余来模拟约瑟夫操作。在源程序里对这个操作有详细的注释。-The Joseph s problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, . . ., n, standing in circle every mth is going to be executed and only
123
- 约瑟夫环。。。对网上的一个程序的优化与修改。。实现的是循环链表下。。每个人不同的密码出列的问题-Joseph Central. . . On-line optimization of a procedure with the modifications. . Cycle of implementation are under the list. . Different passwords for each person listed in the question
yuesefu..doc
- 约瑟夫环问题的另外一种解法,这种解法比线性法相对复杂一些-Joseph Central questions of another kind of solution, this solution than the linear method is relatively complex
Josephu
- C++解决约瑟夫问题 教学或者自学均可使用 简单方便-C++ solve the problem of teaching or self-Joseph can be used to facilitate easy
JosephRing
- 约瑟夫环,学数据结构的很值得好好研究的算法。包含实验报告。-Joseph Wan, the data structure of the study is worth a good study of algorithms. The report contains the experiment.
Josephus
- 约瑟夫问题C++求解 以及KMP算法的C++实现-Joseph C++ problem solving as well as the KMP algorithm for C++ implementation
yuesefuhuan
- 利用单向循环链表存储结构模拟约瑟夫换游戏,可以正常运行-Using one-way linked list storage structure cycle Analog Joseph for Games can be the normal operation of
Joseph
- 约瑟夫环问题: 设编号为1,2,…,n的人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报道m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 -Joseph Central question: Let numbered 1,2, ..., n the person clockw
Joseph
- 本程序主要是约瑟夫问题。输入为总人数,然后分别输入每人的密码,最后输入第一次报数的上限。输出则是按出列的先后顺序输出编号。 实例 输入为 7 3 1 7 2 4 8 4 6 则对应输出为6 1 4 7 2 3 5-This procedure is the main problem Joseph. The total number of input, and then enter the password for each, and finally enter the
yuesefu
- 约瑟夫环数据结构实验报告 数据结构课程设计 包括debug和实验报告,源程序, -Joseph Central Experimental report data structures data structure including the curriculum design debug and test reports, source code,
yue
- 本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺序时针方向自1开始顺序报数,报道m时停止报数,报m的人处列将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。 演示程序以用户和计算机的对话方式执行,即在计算机终端上显示“提示信息”下,用户输入循环人数n和每人的密码。