搜索资源列表
Compute
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号 -Joseph (Josephus) Central issue: numbered 1,2
Josephus
- 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 -Known n individuals (in numbers 1,2,3 ... n respectively) sitting around a round table around. From the number of people began to report the numbe
Josephus
- 约瑟夫问题,这是用VC环境实现的一个数据结构经典问题-Joseph, and this is a VC environment data structure to achieve the classic problem
Josephus
- 约瑟夫环的实验,包括一个cpp源代码文件以及doc说明文档。-Joseph ring experiments, including a cpp source code files and documentation.
Jorseve
- 用于解决约瑟夫问题。堆栈方法。约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的人的序号为5,4,6,2,3。最后剩下1号。 -Joseph used to solve the problem. Stack method. Josephus problem is a well-known problem: N individual circle, starting from the first report n
Josephus_shuzu
- Josephus问题的解决方法——用数组方法实现的程序源码-solution to the Josephus problem- an source code based on an array of methods used to achieve the program
Josephus_link
- Josephus问题的另一种解决方法 使用循环链表解决的源代码-Josephus problem using an alternative solution to solve the source code of circular linked list
Josephus
- 约瑟夫问题的循环链表求解,可以输出每一步的结果-Joseph circular linked list problem solving, can output the results of each step
josephus
- 约瑟夫环 实现方法 VC++ 编译通过 可运行 -Joseph Central Implementation VC++ compile
2.3
- Josephus程序 Josephus问题:有n个人围成一圈,从1开始顺序编号到n,现在从1号开始顺时针数数,数到m者自动出列,然后从下一个人开始重新数数,仍然每次数到m者自动出列。请给出这n个人的顺序-Josephus method
ChooseKing
- 约瑟夫问题,也即猴子选大王的问题。采用循环链表来实现。-Josephus problem, namely the problem of the monkey king election. Achieved using circular linked list.
Josephus
- 是一个数学的应用问题: 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 -The application is a mathematical problem: given n individuals (in numbers 1,2,3 ... n, respectively) sitting around a round table a
Array
- 用数组实现Josephus算法,便于学习与应用-Josephus realized with an array algorithm, ease of learning and application of
E_Josephus
- 模拟Josephus问题,编写算法实现击鼓传花。-Analog Josephus problem, write algorithm drum transfer flowers.
Josephusproblem
- Josephus 问题的算法,在一船上有n人,需要救m人,n个人围成一圈,相隔k个人就丢掉一个,直到只剩下m个人-Josephus problem algorithm, there are n people in a boat, people need to save m, n people form a circle, separated by k individuals to lose one, until only the m individual
jp_problem
- a solution to josephus problem with a circular link list. a typical examle of circular link list.
Josephus
- THIS IS MY NEW C SHARP PROGRAM
Jusefo.c
- 约瑟夫问题(c语言) 有1至 N编号的N 个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始以正整数m作为报数上限值,从第一个人开始顺时针方向自1开始顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的报数上限值,从他的顺时针方向上的下一个人开始重新报数,如此下去,直至所有的人全部出列为止,要求产生记录出列顺序的表。如N = 7,每个人的密码依次是:3,1,7,2,4,8,4,m的值为20,则出列顺序为6,1,4,7,2,3,5。所有人用一个循环单链表表示,表中每个结点代
2-2
- 求解Josephus问题的函数。用整数序列1, 2, 3, ……, n表示顺序围坐在圆桌周围的人,并采用数组表示作为求解过程中使用的数据结构。-Josephus problem solving functions. With a sequence of integers 1, 2, 3, ... ..., n that order around a round table around and use that as an array of data used in the process of
josephus
- jisophus算法,是数据结构的例题,仅供参考哦-jisophus algorithms, data structures are examples for reference purposes only oh