搜索资源列表
Josephus
- 用链表实现的约瑟夫环。问题描述:给出人数和一数字n,循环报数,报n的人出列,最后剩下的是第几个人?-Joseph ring
Unidirectional-ring-table-Josephus
- 单向环表实现约瑟夫环,cout<<"请输入整数m,s,n:"<<endl cout<<"输出序列为: " -Unidirectional ring table Josephus
432324324
- 约瑟夫问题C++和测试报告,这是在3月份编写的用VS C++制作的项目,您可以把代码直接复制到CPP文件中运行-Joseph problems C++ and test reports
Joseph
- 使用VC++编写的代码,编写的是数据结构中的约瑟夫环的算法-Use VC++ to write code, write the data structures in Josephus algorithm
yuesefu
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -oseph (Josephus,) Central problem: the numbe
yuesefu
- 约瑟夫环,一个简单的程序,希望对大家有用。-just so-so
JosephImitate
- 约瑟夫环的模拟算法.注释部分取消之后可以有更好的功能.-Josephus simulation algorithm. Comment section after the abolition of the better features.
Joseph
- 约瑟夫环问题,简明算法.注释部分可单独构成助于理解的文档.-Josephus, concise algorithm. Comment section can be used alone constitute a help to understand the document.
yuesefu
- 循环链表写的约瑟夫环求解问题,输入人数及出圈数-Circular linked list written by Josephus solving problems
yuesf
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的人的序号为5,4,6,2,3。最后剩下1号。 假定在圈子里前K个为好人,后K个为坏人,你的任务是确定这样的最少M,使得所有的坏人在第一个好人之前被杀掉。 -yuesf program
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.
Joseph-ring-of-c-language
- c语言的约瑟夫环编程的示范代码 Joseph ring-Joseph ring of c language programming demonstration code
Josephus
- 一种通过循环链表实现约瑟夫环的方式,内有注释-A through the cycle of Joseph ring way realization list,There were comments
Josephu
- 用线性表的链表存储结构来实现约瑟夫(Josephu)问题-With the linear list storage structure to achieve the list of the Joseph (Josephu) problem
yuese
- 约瑟夫环-yuesefu
Joseph-ring-sort
- 利用约瑟夫环对单链表进行的排序算法,直接改变了结点的顺序而没有进行数据域中数值的交换。-Joseph ring singly linked list sorting algorithms, and change the end point of order without the exchange of data field values .
yuesefuhuan
- 约瑟夫环 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-this is yuesefuhuan
myproject_Queue
- 队列实现,及其功能实现。约瑟夫环的实现,循环队列。-Queue,the use of queue .there are 7 using.
shujujiegoubiancheng
- 数据结构编程,八皇后问题,约瑟夫环,二叉树的建立及先序,中序,后序遍历,求二叉树的深度等-Data structure programming, the eight queens problem, the establishment of Josephus, the binary tree, preorder, inorder, postorder traversal of seeking the depth of the binary tree
YUESEFU
- 约瑟夫问题的程序代码,好用实惠,-This is no problem.