搜索资源列表
Josephus_inJAVA
- 用循环链表求解约瑟夫(josephus)问题 求解约瑟夫(josephus)问题,用数组实现-cyclic Chain Solution Joseph (josephus) problem solving Joseph (josephus ), using the array to achieve
ysfh
- 这是数据结构中约瑟夫环问题!-This is the data structure Josephus problem!
Algorithm
- c++经典小程序。包括河内塔 费式数列 巴斯卡三角形 三色棋 老鼠走迷官(一) 老鼠走迷官(二) 骑士走棋盘 八个皇后 八枚银币 生命游戏 字串核对 双色、三色河内塔 背包问题(Knapsack Problem) 数、运算 蒙地卡罗法求 PI Eratosthenes筛选求质数 超长整数运算(大数运算) 长 PI 最大公因数、最小公倍数、因式分解 完美数 阿姆斯壮数 最大
Josephus
- 经典的Josephus问题C程序-classic problem Josephus C Program
joke
- 约瑟夫环问题:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列。-Josephus problem: Let numbered 1,2,3, ... ..., n of n (n>
yuesefu
- 约瑟夫环问题:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列。-Josephus problem: Let numbered 1,2,3, ... ..., n of the n (n&
Joseph_ring20120813
- 约瑟夫环问题的c++解决方法,包括双向链表和单向链表两种解决方法。-Josephus problem c++ solutions, including the doubly linked list, singly linked list are two workarounds.
Josephus.java
- Josephus.java,是java课程的实验2 求解约瑟夫环问题-Josephus.java, is a java course experiment 2 Joseph Cycle Problem Solving
josephus
- 成功的解决了约瑟夫问题,对于学习了解约瑟夫问题的程序员很有帮助!-Joseph successfully solved the problem, for students learning to understand the issues programmers Joseph helpful!
Josephus
- 约瑟夫问题C++求解 以及KMP算法的C++实现-Joseph C++ problem solving as well as the KMP algorithm for C++ implementation
joze
- 用数组简单地模拟Josephus(约瑟夫)问题 ,算法简单明了,不像平常用链表实现的复杂-solve the Josephus problem
Josephus
- 编写一个求解Josephus问题的函数。用整数序列1, 2, 3, ……, n表示顺序围坐在圆桌周围的人。然后使用n = 9, s = 1, m = 5,以及n = 9, s = 1, m = 0,或者n = 9, s = 1, m = 10作为输入数据,检查你的程序的正 确性和健壮性。最后分析所完成算法的时间复杂度。定义JosephusCircle类,其中含完成初始化、报数出圈成 员函数、输出显示等方法。-Josephus write a problem solving function. W
2
- 2. 用循环链表解Josephus问题。设有n个人围坐在一个圆桌周围,现从第1个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,…,如此反复直到所有的人全部出列为止。Josephus问题是:对于任意给定的n和m,求出按出列次序得到的n个人员的序列-2. Josephus solution of the problem with the circulation list. With n individuals sitting around a round tab
josephus
- C语言实现的约瑟夫环问题,该问题的另一个名字叫做猴子选老大。-C language implementation of the Joseph cycle problem, the problem is another name is Hou Zi election boss.
2-5-3
- 使用顺序存储的线性表解决约瑟夫(Josephus)问题-Use the table to solve the linear sequence of storage, Joseph (Josephus) problem
Josephus_problem
- 自己编写的Josephus问题的求解方法,用C语言采用数组方式实现,个人认为比教科书上提供的方法要精简的多,和大家一起分享-I have written Josephus problem solving method, using C language using an array of ways to achieve, personally think that way than the provision of textbooks to be streamlined and more to
Josephus
- 约瑟夫问题,这是用VC环境实现的一个数据结构经典问题-Joseph, and this is a VC environment data structure to achieve the classic problem
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