搜索资源列表
JOSPHS
- 采用带头结点的约瑟夫算法,存储结构采用单链表结构,无bug-using lead node Joseph algorithm, a single storage structure Chain structure, no bug
约瑟夫
- #include void main() { int i,j,k,a[31],n=0; for(i=0;i<=30;i++) a[i]=0; k=1; for(i=1;i30) k=1; } a[k++]=1; if(k>30) k=1; //n++; } printf("%d\n",k); for(i=1;i<=30;i++) printf("%d ",a[i])
数据结构18个常见算法
- 八皇后、斐波那契序列、约瑟夫环、二叉树的遍历(递归、终须、先序、后序、层次)、二叉树及树的深度、DFS、Prim构造最小生成树、常见排序算法(选择、折半插入、冒泡)、顺序查找、折半查找
约瑟夫环C++源代码
- 编号为1,2... n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向的下一个开始重新从1报数,如此下去,直至所有的人全部出列为止,设计一个程序求出出列顺序-The number of n, n individuals sitting around a circle in a clockwise direction, the per
约瑟夫环循环报数链表
- M个人围成一圈,从第一个人开始依次从1到N循环报数,当报到N的时候此人出圈,直到圈中只剩一人为止.要求按退出顺序给出原始编号-M personal circle, starting from the first person in turn reported from 1 to N number of cycles, N, when the report when the person out circle, circle until only one person so far. Requir
yosefu.rar
- 清华版数据结构实习题约瑟夫环的代码,下载的速度,Version of data structure Tsinghua internship Joseph Central title code, download the speed of
joke
- 约瑟夫环问题:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列。-Josephus problem: Let numbered 1,2,3, ... ..., n of n (n>
josephu
- 用顺序表解决josephus(约瑟夫环)问题的算法-The Algorithm using the order form to solve josephus (Josephus)
YSF_Head
- 这是带头结点的循环链表实现的约瑟夫环程序。-This is a circular linked list of nodes to take the lead implementation of Josephus program.
yuesefu
- 约瑟夫环问题:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列。-Josephus problem: Let numbered 1,2,3, ... ..., n of the n (n&
yuesefuhuan
- 约瑟夫环链式结构顺序结构实现 以及青蛙跳问题 和首尾相接换实现问题汇总-Josephus chain structure algorithm
yuesefu
- 约瑟夫环的c++语言解决代码,visualc++6.0编译成功-Josephus' s c++ language with code, visualc++6.0 build success
josjos
- 约瑟夫问题(循环链表实现)15个数排成一排,从第一个开始,每到第四个,删除,问最后留下的数是原告的第几个数-kkk
Joseph
- 约瑟夫问题,用循环队列解决,从指定的第m个元素到第n个元素依次读出队列中的元素-Joseph problems, and use circular queue resolved, the first m from the specified element to the first n elements in turn to read out the elements of the queue
JosephProblem
- 解决约瑟夫问题,很传统的题目了。方式很简洁,链表和数组两种数据结构-Solving Joseph Problem
JOsEPH1
- 约瑟夫环-Joseph Central
Joseh
- 约瑟夫问题的一个解法,主要利用数组来解决,代码为C++源代码。-Joseph A solution, the main use of the array to resolve the symbol C++ Source code.
yuesefuhuan
- 数据结构&C++,约瑟夫环。是著名的约瑟夫想出来的。-Data Structure
hello
- 约瑟夫环是学习单链表的一个比较好的垫脚石,是数据结构课程设计的一部分-Joseph is the study and a single list of a better stepping stone, is a data structure as part of the curriculum design
wugexiaochengxu
- 有回文字判断,约瑟夫环,最大字符平台,快速排序,统计个人分数!!!都是些小程序,但是实现很好-Back to the text there to judge, Joseph Wan, the greatest characters platform, quick sort, statistics Personal Score! ! ! Procedures are small, but to achieve good