搜索资源列表
joseph
- 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列-joseph ring
Joseph-cyclic-monkeys
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的顺序是:5,4,6,2,3,1。-Joseph problem is a well-known problem: N personal circle, starting the first reported number of M will be killed first, the last remaining one, the rest will be ki
Joseph-game-of-life-and-death
- 约瑟夫生死游戏 30个乘客同乘一条船,由于风大浪急,必须扔下15个人,以确保安全。现在30个人站成一圈。一人起数,数到第9个人的时候,将其抛下。再从下一个人开始数,数到第9个人是将其抛下。以此类推,直到剩下15个人为止。求哪些人会剩下。-Joseph game of life and death 30 passengers with a boat ride, due to stormy, 15 people must be dropped in order to ensure safe
joseph
- 代码用优化算法解决了经典约瑟夫问题,算法复杂度为o(n),并且附有算法分析和说明文档。-Code with a simple algorithm to solve the classic problem of Joseph
joseph
- 约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从它在顺时针方向的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试通过累的设计求解约瑟夫环问题的出列顺序。具体要求和说明如下: (1) 利用单向循环列表存储结构模拟此过程,按照出列的顺序输出个人的编号。 (2) m的初值
Joseph
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的顺序是:5,4,6,2,3,1。-Joseph is a well-known problem: N personal circle, starting the first report number, the M will be killed, the last remaining one, the others will be killed. For ex
Joseph
- 约瑟夫环问题,一群人围在一起做成环状,从某个编号开始报数,数到某个数的时候,此人出列,下一个人重新报数,一直循环,直到所有人出列,约瑟夫环结束。-Josephus problem, a group of people get together to make a ring, a number countin, count to a number of time, this person out of the line, the next person to re-report the numb
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.
Joseph-ring
- 实现约瑟夫环m的动态循环,RAR文件直接用C和C++开发环境的使用可以直接编译成可执行EXE文件-To achieve the dynamic cycle of Joseph m, RAR file directly with the use of C and C++ development environment can be directly compiled to form an executable EXE file
Joseph-Central-issues
- 约瑟夫环问题简单实现,递归算法,(带注释)可以利用此算法解决栈存储的约瑟夫环问题.-Joseph Central issues, C++ source code and notes
Joseph
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,..., n 的n 个人按顺 时针方向围坐一圈, 每人持有一个密码(正整数)。一开始选任一个正整数作 为报数上限值m, 从第一个人开始按顺时针方向自1开始顺序报数,报到m时 停止报数。报m的人出列,将它的密码作为新的m值,再从下个人开始新一轮 报数,如此反复,直到剩下最后一人则为获胜者。试设计一个程序求出出列顺 序。-Joseph (Joseph) a descr iption of the problem is: th
Joseph
- 用单链表编一个约瑟夫环问题。设编号为1,2,• • • ,n的n个人围坐一圈,约定编号为k(1≤k≤n)的人从1开始报数,数到m的那个人出列,他的下一位又从1开始报数,数到m的那个人又出列,依次类推,直到所有人出列为止,由此产生一个出队编号的序列。压缩文件里面包括了代码,运行文件,还有实验报告。-Joseph compiled a list with a single ring problem. Let numbered 1,2, n individual R
Joseph-ring
- 数据结构,这个小程序主要用链表约瑟夫环问题。-The data structure,This small program mainly with the problem of Joseph ring chain table。
Joseph-Problem
- 给出了约瑟夫问题的数学解法(文档)和几个C语言代码-A mathematical solution to Joseph Problem and three programs of C
Joseph
- 解决约瑟夫问题:输入N个数,从第n个数开始,每过i个数输出一个数,最后得到N个数的输出顺序-Joseph problems to solve: the number of N input the first number n, every i-th output over a number finally get the output sequence number N
joseph
- 数据结构课上的一点小作业,也不知道有没有用。很简单的joseph环-A little lesson on operating procedures
Joseph-Problem
- 约瑟夫问题。设有n个人做作圆桌周围,从第s个人开始报数,报到m的人出列,然后再从下一个人开始报数,数到m的人又出列,如此重复,直到所有的人都出列为止。要求按出列的先后顺序输出每个人的信息。-Joseph problems. N individual has contrived around the round table, I began to count off s individual report m people out of the column, and then began to
DataStructureExe-Joseph
- 约瑟夫环的实现,使用无头结点的循环链表,接收数值并输出编号-A easy solution to Joseph question
Joseph-problem
- 约瑟夫问题:约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。-Joseph: Joseph is a famous problems: N individuals in a circle, starting the first number off, the first M will be killed, the last one, the others will be killed.
Joseph.cpp
- 一个小游戏,约瑟夫环的源代码。其中可以更改参与人数,或者改成从文件中传入数据,以快速获取多个结果。-A small game- Joseph Central source code.