搜索资源列表
求解约瑟夫问题
- 求解约瑟夫问题。设有n个人围成一个圆圈坐下,对所有围从的人从某个位置开始编号为1,2,3,……,n,从编号为1的人开始报数1,报数依交进行,报数n的人即出列,下一个人从1开始报数,再报数m的人便是第二个出列的人如此重复下去,直到最后一个人出列为止,于是便得到一个出列的顺序,这称之为约瑟夫(Josephu)问题。-solving problems. N individuals have formed a circle to sit down, all right Wai from the star
shuju1
- 利用顺序表模拟Joseph问题过程,按出列顺序打印各人编号。-use order forms Joseph problems process simulation, according to print out the order everyone out numbered.
约瑟夫环问题(数组法)
- 约瑟夫问题的求解方案,经典-Joseph solving the problem, classic
Joseph
- 数据结构中经典的约瑟夫环问题的解法。-data structure classic Josephus the solution.
约瑟夫环问题
- 这是解决约瑟夫圜的程序. 注释:这是本人自己编写的.不足之处请各位大哥大姐多多指教,另外请注意版权问题.-Joseph won the procedures. Note : This is my own prepared. Deficiencies Department asked Big Brother Big Sister to the exhibitions, and to copyright issues.
joseph(选做题)
- 课程设计--魔阵问题-curriculum design -- the devil RUF issue
约瑟夫问题1
- 绝对可以运行的程序 约瑟夫问题1-definitely can run the procedure Joseph a problem
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
acmpku1012Joseph
- acm 北大1012用来处理Joseph问题,通过模拟枚举实现,算法高效!-acm Peking University 1012 to handle Joseph problems, achieved by simulating the enumeration, algorithms and efficient!
Joseph
- 双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题-Two-way Joseph problems, using two-way two-way linked to the issue of Joseph
Joseph
- 约瑟夫问题,四种解法,分别是静态链表,顺序表两种和循环链表-Joseph problems, the four solution, namely a static list, order form and the cycle of two lists
joseph
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,..., n 的n 个人按顺 时针方向围坐一圈, 每人持有一个密码(正整数)。一开始选任一个正整数作为报数上限值m, 从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将它的密码作为新的m值,再从下个人开始新一轮报数,如此反复,直到剩下最后一人则为获胜者。试设计一个程序求出出列顺序。-Joseph (Joseph) a descr iption of the problem is: numbered 1,2 ,.
joseph
- joseph问题求解,使用数据结构中的线性表实现输入n个人和n个密码,输出josoph问题序列-joseph problem solving, data structures using the linear form in the input n and n personal password, serial output josoph problem
Joseph
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。设计程序输出出列顺序。-Joseph circle
Joseph
- Joseph问题 编程面试 经典 约瑟夫 问题 Visual C-Joseph problems
Joseph.tar
- 使用递归建立单循环链表,解决joseph问题, 使用C编写,可在linux下,使用make编译,运行 -Use recursion to establish round robin list, joseph solve problems
Joseph
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,..., n 的n 个人按顺 时针方向围坐一圈, 每人持有一个密码(正整数)。一开始选任一个正整数作 为报数上限值m, 从第一个人开始按顺时针方向自1开始顺序报数,报到m时 停止报数。报m的人出列,将它的密码作为新的m值,再从下个人开始新一轮 报数,如此反复,直到剩下最后一人则为获胜者。试设计一个程序求出出列顺 序。-Joseph (Joseph) a descr iption of the problem is: th
1.joseph(约瑟夫)
- 解题思路: 用一个不带头节点的循环链表来处理joseph问题:先构成一个有n个节点的单向循环链表,然后从第k结点从1开始计数,计数到m的时候,对应结点从链表中删除。然后再从被删结点的下一个节点继续从1开始计数.......,以此类推,直到所有的结点都列出时,程序结束。(Problem solving: With a circular linked list node don't take the lead to handle the problem of Joseph: first cons
约瑟夫问题-循环链表典型应用
- 约瑟夫问题-循环链表典型应用 n 个人围成一个圆圈,首先第 1 个人从 1 开始一个人一个人顺时针报数, 报到第 m 个人,令其出列。然后再从下一 个人开始从 1 顺时针报数,报 到第 m 个人,再令其出列,…,如此下去,求出列顺序。 求解: 假设 m = 3, n = 8 (1 2 3 4 5 6 7 8) 结果: 3 6 1 5 2 8 4 7(Joseph problem - typical application of circular list N peopl
约瑟夫环问题.cpp
- 数据结构课程约瑟夫问题的c语言求解。vs2013(Data structure course - Joseph problem - C language solution - vs2013)