搜索资源列表
Joseph
- 约瑟夫环问题: 设编号为1,2,…,n的人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报道m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 -Joseph Central question: Let numbered 1,2, ..., n the person clockw
d
- 约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从它在顺时针方向的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序-Joseph Central (Joseph) a descr iption of the problem is: numbered 1
acmpku1012Joseph
- acm 北大1012用来处理Joseph问题,通过模拟枚举实现,算法高效!-acm Peking University 1012 to handle Joseph problems, achieved by simulating the enumeration, algorithms and efficient!
Joseph
- 数据结构中的joseph游戏,通过线性表实现其功能-Data structure in the joseph games to achieve its function by a linear form
joseph
- 这是一个数据结构的实习题,利用一个单链表求约瑟夫环,比较简单-This is a data structure of the internship title, using a single linked list seeking Joseph Central, relatively simple. .
Joseph
- 本程序中,利用单循环链表结构模拟此过程。输人的人数不能超过三十人,输入的密码只能是一位数。否则将提示有误。第一次要报的数没有限制。程序将会把每一个密码的出列顺序显示出来。-This procedure, the use of round robin list structure simulation of this process. The number of inputs can not be more than 30 people, the password can only be a fe
Joseph
- 此程序是根据约瑟夫问题编写的一段代码,提供给数据结构课程的初学者作为参考-This procedure is based on Joseph to prepare a piece of code available to the data structure as a reference for beginners course
Joseph-ring
- 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 -Joseph ring is a the application of mathematics problems: the known n personal (in Numbers 1, 2, 3... n seperately) sitting arou
joseph
- 约瑟夫环(Joseph)问题的一种描述是:编号为1、2、3……n的n个人按照顺时针方向围坐一圈,没人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按照顺时针的方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Josephus (Joseph) a descr iption of the problem is: No. 1, 2,
Joseph-problem
- 利用循环链表实现约瑟夫问题的求解。 约瑟夫问题如下:已知n个人(n>=1)围坐一圆桌周围,从1开始顺序编号。从序号为1的人开始报数,顺时针数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规则重复下去,直到所有人全部出列。请问最后一个出列的人的编号。 -Circular linked list Joseph problem solving. Joseph questions are as follows: Given n individuals (n>
Joseph
- The program utilizes a circular linked list to achieve the solving of the problem of Josephus-Linear Table realization Joseph problems
yuesefuhuan
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 【基本要求】 利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。 -Joseph (Joseph) a d
Joseph
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -Joseph (Josephus) ring problems: No. 1, 2, 3
yuesefu-huan
- 约瑟夫问题的一种描述是:编号为1,2,...,n 的n 个人按顺时针方向围坐一 圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值 m, 从第一个人开始。按顺时针方向自 1 开始顺序报数,报到m 时停止报数。报m 的人出列,将他的密码作为新的m 值, 从他在顺时针方向上的下一个人开始重 新从1 报数,如此下去,直至所有人全部出列为止。试设计程序求出出列顺 序。 -Joseph a descr iption of the problem: numbered
Joseph
- 用C++实现的约瑟夫问题,用到了单向循环链表结构。-Achieved with C++ Joseph used a one-way circular linked list structure.
joseph
- 约瑟夫环:由约瑟夫环的游戏规则可知,在游戏中,我们需要输入的是总人数n值、一开始选的上限值m和每个人手中所持的密码值cipher。这些数都应该是正整数,且n小于等于30,若输入的是小于等于0的数,应该提醒输入有误。用scanf()函数实现输入操作,空格、回车或者Tab键位输入结束标志。 在程序根据输入的数据运行之后,按顺序输出出列人的编号num,用printf()函数实现。 程序执行的命令包括:①构造结构体;②链表动态内存申请;③逐个插入链表结点并储存结点内容;④形成循环链表;⑤删除结点
Joseph
- 用c语言单项循环链表实现了约瑟夫环 约瑟夫问题的一种描述是-Single circular linked list using c language to achieve Josephus Josephus is a descr iption of the problem
Joseph
- 解决约瑟夫问题的一个小程序。一群猴子围成一个圈,从其中一个猴子开始报数,先规定一个数,数到这个数的猴子出列,下一个猴子继续报数,数到这个数的猴子就出列,直到全部猴子都出列为止,求猴子出列的顺序。-Joseph problems to solve a small program. A group of monkeys in a circle, from one of the monkeys reported the number of first specify a number, the num
Joseph
- 约瑟夫环问题,一群人围在一起做成环状,从某个编号开始报数,数到某个数的时候,此人出列,下一个人重新报数,一直循环,直到所有人出列,约瑟夫环结束。-Josephus problem, a group of people get together to make a ring, a number countin, count to a number of time, this person out of the line, the next person to re-report the numb
Joseph-Problem
- 给出了约瑟夫问题的数学解法(文档)和几个C语言代码-A mathematical solution to Joseph Problem and three programs of C
