搜索资源列表
yuesefusi
- 约瑟夫斯(Josephus)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向下一个人开始重新从1报数,如此下去,直至所有的人全部出列为止。试设计一个程序,按出列顺序印出各人编号。 利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。 -Josephus (Josephus) a
Josephus-problem
- 设编号为1-n的n(n>0)个人按顺时针方向围成一圈.首先第1个人从1开始顺时针报数,报m的人(m 为正整数).令其出列。然后再从他的下一个人开始,重新从1顺时针报数,报m的人,再令其出列。如此下去,直到圈中所有人出列为止。求出列编号序列。-Numbered 1-n set of n (n> 0) Personal clockwise circle. First Person 1 1 clockwise report the number of people reported to
Josephu
- 代码用于解决特殊的约瑟夫环的问题,运用了链表,占和队列。- Code is used to address the special problems of Josephus, the use of the list, accounting and queues.
JosephuCircle
- 约瑟夫环问题,N个人围成一圈,从任意一个人开始报数,报到M的人从船上跳到水里,直到船上剩下指定的人数,求出最后剩下的人的编号-Josephus problem, N personal circle, began to count off any person, to report M man jumped into the water the boat until the specified number of people remaining on board, find the numb
Josephus
- 约瑟夫问题,输入总人数n,输入每隔m个人出列一个,按出列顺序输出每人的原始序号。-Joseph problems, enter the total number n, m input every individual out of a column, press the column order number of the original output per person.
0base-agorithm(3)
- 零基础C++算法编程3,包括约瑟夫环、括号匹配、鸡兔共笼等简单算法的代码-Zero-based C++ programming algorithm 3, including Josephus, bracket matching, chicken, rabbit cage and other simple comm
Josephus-circle
- 上海交大电子工程系数据结构作业之一:约瑟夫环-Electronic Engineering, Shanghai Jiaotong University, one of the data structure of the job: Joseph Central
DS_TEST1
- 数据结构代码合集:包括约瑟夫环、逆置单链表、合并顺序链表以及求交集。绝对原创代码。-Collection of data structure of the code include: Josephus, set against the single list, order list and merge the intersection. Absolutely original code.
met
- 经典约瑟夫环游戏,系统随机生成每个人的密码,输入开始的数字,从第一个开始报数,报到目标数字被淘汰,并将其密码作为新的目标报数,直至所有人被淘汰,输出淘汰顺序-Josephus classic game system randomly generated each person' s password, enter a start number, starting with the first message number, report target figures to be elimi
JosephCircle
- 约瑟夫环(约瑟夫问题)是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列-Josephus (Josephus problem) is the application of a mathematical problem: Given n individuals (identified by serial number 1,2
wirhproblem
- 这是一个Josephus问题的C++代码,用双向链表实现,很好-This is a c++ code, Josephus problem with two-way linked list implementation, is very good
vbsvzutelyzgood
- 用数组解JOSEPHUS问题的程序源码,绝对没有错误,很好,不错-With an array of JOSEPHUS problem of program source code, there is absolutely no wrong, is very good, good
dpzsvou
- 用数组解JOSEPHUS问题的程序源码,绝对没有错误,很好,不错-With an array of JOSEPHUS problem of program source code, there is absolutely no wrong, is very good, good
0445898
- 这是一个Josephus问题的C++代码,用双向链表实现,很好-This is a c++ code, Josephus problem with two-way linked list implementation, is very good
JOSEPHUS
- 约瑟夫环问题源代码 约瑟夫环(约瑟夫问题)是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列 他的下一个人又从1开始报数,数到m的那个人又出列 依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后结果+1即为原问题的解。-Joseph ring problem source code Joseph s ring (Joseph s problem) is a mathem
Josephus
- 约瑟夫环编程C语言实现:N个人围城一桌(首位相连),约定从1报数,报到数为k的人出局,然后下一位又从1开始报,以此类推。最后留下的人获胜。(有很多类似问题,如猴子选代王等等,解法都一样)(Joseph ring programming, C language implementation)
wvth-linked-list
- 这是一个Josephus问题的C++代码,用双向链表实现,很好(This is a c + + code, Josephus problem with two-way linked list implementation, is very good)
sbsreprogramsource
- 用数组解JOSEPHUS问题的程序源码,绝对没有错误,很好,不错(With an array of JOSEPHUS problem of program source code, there is absolutely no wrong, is very good, good)
73493695
- 用数组解JOSEPHUS问题的程序源码,绝对没有错误,很好,不错()
80993800
- josephus算法 n个人围成一圈报数,报到人出去,相信很多人都知道这个经典题目,解法有数组法等等, 其实,这就是jos()