搜索资源列表
经典约瑟夫环问题c语言版
- 数据结构中解决约瑟夫环问题的代码,里面只有源代码,大家用TC2编译一下就可以用了:)。-data structure to solve the problem of Josephus code, only the source code, we use TC2 compiler can use it with a :).
7.约瑟夫环
- 约瑟夫环的问题,这是一个比较经典的编程实例,我做了一个小程序来实现了其算法-Joseph Central, which is a more classical programming examples, I had a small program to achieve its algorithm
约瑟夫环问题(数组法)
- 约瑟夫问题的求解方案,经典-Joseph solving the problem, classic
约瑟夫环等问题
- 用C语言编写的约瑟夫环等问题.用链式存储实现!-C language of Josephus and other issues. Chain store used to achieve!
约瑟夫环问题
- 这是解决约瑟夫圜的程序. 注释:这是本人自己编写的.不足之处请各位大哥大姐多多指教,另外请注意版权问题.-Joseph won the procedures. Note : This is my own prepared. Deficiencies Department asked Big Brother Big Sister to the exhibitions, and to copyright issues.
约瑟夫(josehus)问题
- 约瑟夫环的数据结构算法 VC++6.0实现-Josephus algorithm data structure VC + + 6.0
约瑟夫环问题link
- 学生初学,c实现约瑟夫环(圆桌问题),算法应该不是很高效,望各位高人看了改进改进!-beginner students, c achieve Joseph Central (round table), the algorithm should not be very efficient, a person looking to improve reading improvement!
约瑟夫
- 约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,没人持有一个密码。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针自1开始报数,报到m是停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。-a descr iption of the problem is : No. 1, 2, ..., n n clockwise direction by individuals sitting a
用c实现的约瑟夫环问题
- 约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起,每数到第D个犯人,就拉出来处决,然后再数D个,数到的人再处决———直到剩下的最后一个可赦免。 发展的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,但这N个人每人持有一个密码,他有一条荒唐的法律,将犯人站成一个圆圈,法官先给出一个密码M,从第S个人开始数起,每数到第M个犯人,就拉出来处决,再根据这个人所持有的密码F,然后再数F个,数到的
ExecutionExperiment
- java写的约瑟夫问题 -written by Joseph java problem
sequencejosephus
- 代码采用顺序表的存储方法解决约瑟夫问题。-The code sequence-table storage method to solve the problem, Joseph.
Joseph
- 双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题-Two-way Joseph problems, using two-way two-way linked to the issue of Joseph
Josephus
- 约瑟夫问题 一个值得java初学者寻味的问题-Joseph problems a problem worthy of java beginners ruminate
双向约瑟夫环C语言
- 双向约瑟夫问题 约瑟夫问题是一个经典的问题,我们不妨将这个经典问题进行扩展,变成一个双向的约瑟夫问题。 已知 n 个人(不妨分别以编号 1,2,3,...,n 代表 )围坐在一张圆桌周围,首先从编号为 k 的人从 1 开始顺时针报数,1, 2, 3, ...,记下顺时针数到 m 的那个人,同时从编号为 k 的人开始逆时针报数,1, 2, 3, ...,数到 m 后,两个人同时出列。然后从出列的下一个人又从 1 开始继续进行双向报数,数到 m 的那两个人同时出列,...;
单链表约瑟夫
- 用单链表解决约瑟夫问题, 循环链表解决约瑟夫环 AC
约瑟夫问题
- 使用C语言实现约瑟夫问题,很适合学习数据结构入门级的(Using the C language to implement the Joseph problem)
Exp_Jos
- 数据结构中的实验,约瑟夫问题,C++实现(Data structure in the experiment, Joseph problem, C ++ implementation)
ysf
- 约瑟夫问题是一个经典的问题。已知n个人(不妨分别以编号1,2,3,…,n 代表)围坐在一张圆桌周围,从编号为 k 的人开始,从1开始顺时针报数1, 2, 3, ...,顺时针数到m 的那个人,出列并输出。然后从出列的下一个人开始,从1开始继续顺时针报数,数到m的那个人,出列并输出,…依此重复下去,直到圆桌周围的人全部出列。 输入:n,k,m 输出:按照出列的顺序依次输出出列人的编号,编号中间相隔一个空格,每10个编号为一行。 非法输入的对应输出如下 a) 输入::n、k、m任一个
1.joseph(约瑟夫)
- 解题思路: 用一个不带头节点的循环链表来处理joseph问题:先构成一个有n个节点的单向循环链表,然后从第k结点从1开始计数,计数到m的时候,对应结点从链表中删除。然后再从被删结点的下一个节点继续从1开始计数.......,以此类推,直到所有的结点都列出时,程序结束。(Problem solving: With a circular linked list node don't take the lead to handle the problem of Joseph: first cons
第二章
- 给出了约瑟夫问题和数据结构链表习题的代码和报告说明(The code and report explanation of Joseph problem and data structure linked list exercises are given)