搜索资源列表
joseph
- 约瑟夫问题(有时也称为约瑟夫斯置换,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,类似问题又称为约瑟夫环。又称“丢手绢问题”)。-Joseph problems (sometimes called Josephus replacement, is an appearance in computer science and mathematics problems in computer programming algorithm, similar problems also kno
joseph-ring
- 约瑟夫环问题约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Joseph ring
LinkList
- 约瑟夫环用C++实现,利用顺序表实现的,是符合现在的c++格式-Josephus with C++ achieved using the order form to achieve, is in line with current c++ format
circular-linked-list-Josephus
- 约瑟夫环问题 【问题描述】 Josephus排列问题定义如下:假设n个竞赛者排成一个环形。给定一个正整数m≤n,从第1人开始,沿环计数,第m人出列。这个过程一直进行到所有人都出列为止。最后出列者为优胜者。全部出列次序定义了1,2,…n的一个排列。称为(n,m)Josephus排列。例如,(7,3)Josephus排列为3,6,2,7,5,1,4。 【实验要求】 设计求解Josephus排列问题程序。 (1)采用顺序表、单链表或双向循环链表等数据结构。 (2)采用双向循环
Josephus-Data-Structures
- 约瑟夫环的数据结构的实现 比较简单 适合初学者-Josephus data structure is relatively simple for beginners
joseph
- 约瑟夫环问题 c++解决带有个人密码的约瑟夫环问题-Josephus problem is solved with a personal password Josephus
151515
- 用单链表来实现的约瑟夫问题,程序简单易懂-Single linked list to achieve Joseph problem, the procedure is simple to understand
Joseph-ring
- 基于C语言通过顺序结构和链式结构实现约瑟夫环问题-C language realization of Joseph through the sequence structure and chain structure based on
jose
- 以单项循环链表存储结构模拟约瑟夫环问题。即编号为1、2、3…、n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向下一个人开始重新从1报数,如此下去,直至所有的人全部出列为止。按出列顺序印出各人的编号-Design your school' s campus plan, contained less than 10 spots. Ve
yuesefuhuan
- 基于C语言数据结构编写的约瑟夫环,内含说明文档-Josephus written based on the C language data structures, containing documentation
joseph-circle
- 经典的约瑟夫环问题,有n个人围着一张桌子报数-Joseph circle
joseph-ring
- 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后结果+1即为原问题的解。-joseph ring
Joseph-ring-
- 这是一个约瑟夫环数据结构实现程序,当任意给定人数n和密码m后,设计算法求n个人出圈的次序。-Joseph ring which is a data structure implementation procedures, when any given number n and password m, the order of the design algorithm for n personal ones.
Desktop
- 使用线性表解决约瑟夫问题使用线性表解决约瑟夫问题-Use the linear table to solve the Joseph problemUse the linear table to solve the Joseph problem
yuesehuanwenti
- 约瑟夫环问题。本程序要求设编号为1-n的n(n>0)个人按顺时针方向围成一圈.首先第1个人从1开始顺时针报数.报m的人(m 为正整数).令其出列。然后再从他的下一个人开始,重新从1顺时针报数,报m的人,再令其出列。如此下去,直到圈中所有人出列为止。-Josephus problem. The procedural requirements set numbered 1-n of n (n> 0) Personal clockwise circle. First 1st person
Josephus-problem
- 描述 约瑟夫问题:有n只猴子,按顺时针方向围成一圈选大王(编号从1到n),从第1号开始报数,一直数到m,数到m的猴子退出圈外,剩下的猴子再接着从1开始报数。就这样,直到圈内只剩下一只猴子时,这个猴子就是猴王,编程求输入n,m后,输出最后猴王的编号。 输入 每行是用空格分开的两个整数,第一个是 n, 第二个是 m ( 0 < m,n <=300)。最后一行是: 0 0 输出 对于每行输入数据(最后一行除外),输出数据也是一行,即最后猴王的编号-
jophous
- 约瑟夫斯(Josephus)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向下一个人开始重新从1报数,如此下去,直至所有的人全部出列为止。试设计一个程序,按出列顺序印出各人编号。 -Josephus (Josephus) a descr iption of the problem is: Number
0base-agorithm(3)
- 零基础C++算法编程3,包括约瑟夫环、括号匹配、鸡兔共笼等简单算法的代码-Zero-based C++ programming algorithm 3, including Josephus, bracket matching, chicken, rabbit cage and other simple comm
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