搜索资源列表
Josephus
- 解决约瑟夫环问题可实现人际交流,完整的错误处理,完成作业必备。-Man-machine communication Josephus problem
Unidirectional-ring-table-Josephus
- 单向环表实现约瑟夫环,cout<<"请输入整数m,s,n:"<<endl cout<<"输出序列为: " -Unidirectional ring table Josephus
Josephus
- VC++6.0下的约瑟夫环问题实现,可以输入人数和要数的数字,并将出队的次序依次输出-Josephus Circle with VC++6.0.You can input number of people and the number to be counted.Then sequence can be printed on the screen.
josephus
- josephus算法各个功能实现,包含.h文件,一共三个文件两个c-Josephus algorithm each functional implementation, include. H file, a total of three file two CPP
Josephus
- Josephus permutation algorithm
Josephus
- Josephus算法实现,VC++实现,主要用到了循环链表,对于学习数据结构很有用处-Josephus algorithm, VC++ implementation, the main use of the circular linked list is useful for learning data structures
Josephus
- 实现约瑟夫环,输入总个数和开始报数序号以及间隔,输出一个出队队列-Josephus, enter the total number and start reporting the number of serial interval, the output of a team queue
Josephus
- 编写程序,模拟约瑟夫环(josephus)问题: n个人(编号为1,2,3,……,n (n>0) )按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出两个值:一个为首先报数的人的编号i (0<i<=n),另一个为起始报数上限值m。接着从编号为i的人开始按顺时针方向自1起顺序报数,报到m时停止报数,且报到m的人出列,并将他的密码作为新的m值,从他在顺时针方向上的下一个人起重新自1报数,……,如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,给出出列人的编号序
Josephus
- Josephus小算法,自己下载吧。希望有用呀!~-Josephus algorithm download. Seek to help! ~
Josephus-realizationagt
- <约瑟夫环的实现>采用线性链表实现 可以进行线性表元素的动态插入和删除-< Josephus realization> linear list can be linear table elements dynamically insert and delete
Josephus
- 约瑟夫(Josephus)环问题 设n个人围坐在一个圆桌周围,现在从第s个人开始报数,数到第m个人,让他出局;然后从出局的下一个人重新开始报数,数到第m个人,再让他出局,如此反复直到所有的人全部出局为止。 下面要解决的约瑟夫(Josephus)环问题是:对于任意给定的n,s和m,求出这n个人的出局序列。要求以单循环链表作为存储结构,实现约瑟夫环问题。然后使用n=9,s=1,m=5,以及n=9,s=1,m=10作为输入数据,检查你的程序的正确性和健壮性。 -Joseph (Josep
Josephus
- 解决最简单的Josephus问题,是数据结构课上的的一个作业,希望给大家提供些帮助。-To solve the most simple of Josephus, a job on the data structures course, we hope to provide some help.
Josephus
- 约瑟夫环的循环链表的方法 用了单链表和双链表-Josephus circular linked list with a single linked list and doubly linked list
Josephus
- [转发]约瑟夫环问题的数组解法,很简单的一个算法。-[Forwarding] the Josephus array solution, a very simple algorithm.
Josephus
- 约瑟夫环问题 数据结构经典算法 链表实现-Josephus problem
Josephus-Problem
- 约瑟夫问题(Josephus Problem)据说著名犹太历史学家 Josephus有过以下的故事:在罗马人占领乔塔帕特后,39 个犹太人与Josephus及他的朋友躲到一个洞中,39个犹太人决定宁愿死也不要被敌人到,于是决定了一个自杀方式,41个人排成一个圆圈,由第1个人开始报数,每报数到第3人该人就必须自杀,然后再由下一个重新报数,直到所有人都自杀身亡为止。 然而Josephus 和他的朋友并不想遵从,Josephus要他的朋友先假装遵从,他将朋友与自己安排在第16个与第31个位置,于是逃过
Josephus
- 线性表实现约瑟夫(Josephus)环问题 VC实现-Linear table to achieve Joseph (Josephus), Central problems VC in
Josephus
- 数据结构,简单的约瑟夫环的实现,VC++源代码,使用C/C++语言-Data structures, simple Josephus, VC++ the source code, using C/C++ language
Josephus
- 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Josephus is the application of a mathematical problem: Given n individuals (numbered 1, 2, 3, ... n, respectively) sitting around a
Josephus
- 约瑟夫环的问题 用链表来实现的 可以输入人数 退出的号和从第几个人开始计数-Josephus linked list, you can enter the number of exit number and start counting from the first few people