搜索资源列表
约瑟夫问题1
- 绝对可以运行的程序 约瑟夫问题1-definitely can run the procedure Joseph a problem
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
d
- 约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从它在顺时针方向的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序-Joseph Central (Joseph) a descr iption of the problem is: numbered 1
Joseph
- 约瑟夫问题新解 A New Interpretation of the question, Joseph-A New Interpretation of the question, Joseph
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. .
2
- [问题描述] 约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 [基本要求] 利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。 -[Problem Descr iption] J
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>
JJosephProbleo
- 解决约瑟夫问题,很传统的题目了。方式很简洁,链表表和数组两种数据结构 ,经测试可直接使用。 -Solve Joseph, a traditional topic. Very simple way, the linked list of tables and an array of two data structures, has been tested and can be used directly.
joseph
- 用链表解决约瑟夫问题。 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 其中包括一个实验报告,介绍了编程思路和输出结果截图。-List to resolve Joseph. Josephus is the application of a mathematical problem: Given n in
Joseph
- 编号为1,2,3,……,n 的 n 个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值 m,从第一个人开始按顺时针方向自1开始报数,报到 m时停止报数。报m的人出列,将他的密码作为新的 m 值,从他在顺时针方向上的下一个人开始重新报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Numbered 1,2,3, ... ..., n of n individuals sitting around a circle in a clockwis
Joseph-problem
- 创建一个长度为n的循环单链表,来实现约瑟夫问题,-Create a length of a single linked list of n cycle, to achieve Joseph problems
Joseph
- The program utilizes a circular linked list to achieve the solving of the problem of Josephus-Linear Table realization Joseph problems
new-Joseph-problem
- 约瑟夫问题的一个变体,踢人的过程变成了顺向n个然后逆向k个的循环模式-A variant of Joseph problems the kicking process into cis and then reverse the k-th to the n cycle mode
