搜索资源列表
12304216
- 约瑟夫问题的程序 利用单向循环链表纯出结构模拟过程 按照列的顺序输出各人的编号-Joseph procedures for the use of the one-way circle Chain out pure simulation process in accordance with the structure shown in the sequence each output the numbers
cycle64170954
- 一个绝对用C写的程序,关于约瑟环的问题,希望对大家有所帮助阿-an absolute C written procedures on the part of Joseph, we hope to help Afghanistan
jesoph
- 实现约瑟夫(Josephu)问题,n,m,k为外部输入,并打印输出结果-achieve Joseph (Josephu), n, m, k for external input, output and print
joseph
- 这是经典的joseph算法,适用于小型数据的排序,对于大型数据速度较慢
JosephRing
- Joseph Ring 算法
yuesefuhuan
- 数据结构试验报告 约瑟夫环 问题描述: 约瑟夫(Joseph)问题的一种描述是:编号为1,2,,...,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从l报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 基本要求: 利用单向循环链表存储结构模拟此过程,按照出列的顺序印出
joseph
- 题目:约瑟夫环问题 一.问题描述 设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。试设计确定他们的出列次序序列的程序。
ls16
- 约瑟夫问题,在VC平台运行-Joseph, the VC platforms
yuesefu
- 设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。 问题是:对于任意给定的n个人的原始排列顺序,求出n个人的出列顺序。 输入数据从文本文件“实习1数据.txt”中读取。该文件有两行:第1行只有一个整数,表示报数的起始位置;第2行是n个所持密码。 输出结果显示在屏幕上。
joseph
- 编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个仍开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。-failed to translate
monkey
- 自己写的集猴子报数(约瑟夫环)和简单计算器于一体的程序,通过单击按钮实现功能切换。-My own set of monkeys reported number (Joseph Central) and a simple calculator in one program, by clicking the button to switch to achieve functionality.
game
- 约瑟夫问题变形和实现。在visual 2010下的C++/ClI下编写的,在界面上设置游戏人数和开始游戏者,程序自动扔塞子并显示赢家。-Joseph deformation and implementation issues. In visual 2010 under C++/ClI prepared, set on the interface number and start the game by game, the program automatically throw the plug
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-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
irdsz
- 线性表的应用(约瑟夫环),好像好多人在找就上传一个,不错的源码-The application of the linear table (Joseph ring), like so many people looking for uploading a, good source
sgzf
- The instructions of the program is famous Joseph ring problem, is good
joseph
- 简单窗口设计 点按钮回应,利用MFC进行设计(Simple window design point button response, design using MFC)
