搜索资源列表
Josephus
- 经典的约瑟夫环算法,能实现约瑟夫环,本人亲自验证-Josephus classical algorithms can achieve Josephus, I personally verified
Josephus
- 约瑟夫环是一个数学的应用问题:已知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
Joseph-loop-in-c-language
- 使用c语言实现约瑟夫环,代码思路简单,可以运行,适合于链表数据结构的研究-Josephus using c language, code simple ideas, you can run, study linked list data structure suitable for
Josephus
- 约瑟夫环是一个数学的应用问题。 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 这个就是约瑟夫环问题的实际场景,有一种是要通过输入n,m,k三个正整数,来求出列的序列。-Josephus is the application of a mathematical problem. Known n individuals (with numbe
1007
- 约瑟夫环的一个解法,是天津大学toj上编号1007的解答,采用打表法,可能您之前并没有遇到过这么让您“无语”的解法哦!-Josephus problem!A very important problem on your code life
JOSEFH
- 经典问题,约瑟夫环 利用QT实现的。-Josephus QT C++
Josephus
- 约瑟夫环的实现,算法是自己写的,简单小程序-Josephus realization algorithm is to write a simple little program
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
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
main
- it s a game to sit around 约瑟夫环 就是一帮人团团做的游戏-it s a game to sit around
josself
- 约瑟夫环问题,实现从指定位置后开始删除指定数字位的程序-Achieve Josephus
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
Joesphus
- 能够解决约瑟夫环的问题,需要外部文件的输入-Joseph entered the ring to address the issue, the need for external files
Josephus-problem
- 该程序能够根据使用者的需要,解决约瑟夫环问题。-The program can be based on user needs,to solve Josephus problem.