搜索资源列表
Joseph_ring20120813
- 约瑟夫环问题的c++解决方法,包括双向链表和单向链表两种解决方法。-Josephus problem c++ solutions, including the doubly linked list, singly linked list are two workarounds.
yuesefuhuan
- 约瑟夫环问题:任给正整数N和K,按下述方法可以得到1,2, …,n的一个置换,将数字1,2,…,n环形排列,按顺时针方向自1开始报数,报到K时输出该位置上的数字,并使其出列。然后从他在顺时针方向的下一个数字继续报数,如此下去,直到所有的数字全部出列为止。例如N=10,K=3,则正确的出列顺序应为3,6,9,2,7,1,8,5,10,4。-Joseph Central questions: any given positive integer N and K, the following met
Jesephus
- 解决约瑟夫环的问题,并输出出圈的顺序。约瑟夫环的大小是任意的。-Joseph Ring solve problems, and the output of the loop sequence. Joseph ring size is arbitrary.
1
- 约瑟夫环算法,可以利用此算法解决栈存储的约瑟夫环问题.-Joseph loop algorithm, can use this algorithm to solve the storage stack Joseph Central problems.
yuesefuhuan
- 本人用C++编写的约瑟夫环的小程序,望指教 -I used C++ Prepared Joseph Central applet, hope advice
josho(n)
- 约瑟夫环 o(n)解 //n,m input: n,m -- the number of persons, the inteval between persons-Joseph Ring o (n) solution// n, m input: n, m- the number of persons, the inteval between persons
Joseph
- 一个关于约瑟夫环的程序,可以成功模拟约瑟夫环的原理。-Joseph Central on the procedure can be successfully simulated the principles of Joseph Central.
SJ3_5
- 实现约瑟夫环作用的程序,课程设计的程序,-The realization of the role of Joseph Central procedures, curriculum design process,
malloc
- 约瑟夫环的算法-Joseph Ring algorithm
ysfh
- 这是用C语言的编写的约瑟夫环的代码,而且是用链表编写的,开发环境是vc6.0,-This is prepared by using C language code Joseph Central, and are prepared to use linked lists, development environment are vc6.0,
yuesefu..doc
- 约瑟夫环问题的另外一种解法,这种解法比线性法相对复杂一些-Joseph Central questions of another kind of solution, this solution than the linear method is relatively complex
Joseph
- 约瑟夫环问题: 设编号为1,2,…,n的人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报道m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 -Joseph Central question: Let numbered 1,2, ..., n the person clockw
yuesefu
- 约瑟夫环数据结构实验报告 数据结构课程设计 包括debug和实验报告,源程序, -Joseph Central Experimental report data structures data structure including the curriculum design debug and test reports, source code,
Joseph
- 实现约瑟夫环,可以提供无限的人数来玩这个游戏。-Joseph implementation ring, can provide an unlimited number of people to play the game.
joseph
- 实现约瑟夫环编程,且过程清晰,可以看到每一步的执行情况!-Joseph Central programming implementation, and the process clear, we can see the implementation of each step!
yosefu
- 链表实现约瑟夫环,输入一个环和起始位置,打印出结果。-List the achievement of Joseph Central, Central, and start to enter a location, print out the results.
d
- 约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从它在顺时针方向的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序-Joseph Central (Joseph) a descr iption of the problem is: numbered 1
ysf
- 这个小程序是用c++实现的约瑟夫环问题,也属于数据结构中的经典算法-This applet is used c++ to achieve the Joseph Central problems in the data structure is a classic algorithm. . .
Josephus
- 约瑟夫环(Josephus)问题:古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起,每数到第D个犯人,就拉出来处决,然后再数D个,数到的在处决……知道剩下的最后一个可赦免。-Central Joseph (Josephus) Question: Ancient N a judge to sentence a prisoner to death, he has a ridiculous law, prisoners stand in a circle, S
JosephCircle
- 一个模拟约瑟夫环的程序,通过程序可以详细的了解约瑟夫问题。-Joseph Ring in a simulated procedure, through a detailed understanding can be the issue of Joseph.