搜索资源列表
yuesefu
- 实现约瑟夫环问题编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个仍开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。-shi xian yue se fu huan wen ti
joseph-circle
- 经典的约瑟夫环问题,有n个人围着一张桌子报数-Joseph circle
Josephus
- 约瑟夫环的实现,算法是自己写的,简单小程序-Josephus realization algorithm is to write a simple little program
yue-se-fu-huan
- 用c语言详细描述了约瑟夫环,感兴趣的可以看下,很不错。-C language with a detailed descr iption of Josephus, interested can look very good.
josephus
- 约瑟夫环问题,还包括很多很多其他的小程序-Josephus also includes a lot of other small programs
1
- 约瑟夫环实现源码,可以直接下载编译运行使用-josefu c code
josephus
- 约瑟夫环运作如下:1、一群人围在一起坐成环状(如:N)2、从某个编号开始报数(如:K)3、数到某个数(如:M)的时候,此人出列,下一个人重新报数4、一直循环,直到所有人出列,约瑟夫环结束-Josephus is the application of a mathematical problem: Given n individuals (with numbers 1,2,3 ... n, respectively) sitting around a round table. From the n
Josephus
- 分别用公式法和链表这两种线性表实现约瑟夫环-Were linked with the formula method and linear table to achieve both Josephus
josself
- 约瑟夫环,华为公司经常出现的上机考试试题。-joseefu loop
Josephus
- 一个经典的约瑟夫环游戏算法,每个人抽到的数都不同-A classic game Josephus algorithm, the number of each person are different pumped
Joseph_Circle
- 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Josephus is the application of a mathematical problem: Given n individuals (with numbers 1,2,3 ... n, respectively) sitting around a
huawei_world
- 完成功能:约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。 从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列; 依此规律重复下去,直到圆桌周围的人全部出列。-Completion: Joseph ring is the application of a mathematical problem: n known individual (numbered 1, 2, 3... n, respecti
main
- it s a game to sit around 约瑟夫环 就是一帮人团团做的游戏-it s a game to sit around
josself
- 约瑟夫环问题,实现从指定位置后开始删除指定数字位的程序-Achieve Josephus
Joseph(new)
- 用伪链表实现约瑟夫环,其中的密码用的不是随机数,可以自行设置。-Joseph ring with pseudo list, the password is not used random number, you can set up their own.
Joseph
- 解约瑟夫环的问题 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Joseph ring problem Joseph ring is the application of a mathematical problem: n known individual (numbered 1, 2, 3... n
Josephus
- 这是用C++实现的约瑟夫环,有注释,易懂。-This is a C++ implementation of Josephus, Notes, and easy to understand.
Data-Structure-and-algorithms-CPP
- c++实现数据结构的所有代码。包括线性表,树,图,排序,hash等。线性表实现堆栈,队列及约瑟夫环等多个应用,树实现哈夫曼树编码及译码,AVL树,线索化二叉树,森林和二叉树的相互转化等等,图实现图的几种建立方法,拓扑排序,最短路径,最大连通子图,双连通分量,最小生成树,关键路径算法等等,排序实现归并排序,快速排序,堆排序,shell排序,冒泡排序,选择排序,插入排序等,并对性能进行分析。hash实现闭散列表,开散列表,带溢出表的内散列表等,并使用5种hash函数。帮助同学们系统的学习数据结构及算
string
- 线性表及其应用--约瑟夫环,利用单向循环链表存储结构模拟此过程,按照出列的顺序印出个人编号。程序运行后,首先要求用户指定初始报数上限值,然后读入个人的密码 。-Linear table and its application- Josephus, the use of one-way circular linked list storage structure simulation of this process, in accordance with the order of the colu
yuesefu
- 设有编号为1,2,…,n的n(n>0)个人围成一个圈,每个人持有一个密码m。从第一个人开始报数,报到m时停止报数,报m的人出圈,再从他的下一个人起重新报数,报到m时停止报数,报m的出圈,……,如此下去,直到所有人全部出圈为止。当任意给定n和m后,设计算法求n个人出圈的次序。建立模型,确定存储结构。对任意n个人,密码为m,实现约瑟夫环问题。-Has numbered 1,2, ..., n of n (n> 0) individuals in a circle, each person ho