搜索资源列表
yuesefu
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -oseph (Josephus,) Central problem: the numbe
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
Josephus
- 有n个人围坐在一个圆桌上,每个人的编号分别为1,2,3…n,现从第一个人开始数,数到第m个人时,这个人出列,再从下一位其编号是出列的人编号的后一位开始重复上述操作直到所有人都出列(编号是循环的,及最后一位的下一位是第一位),编写一个程序试将出列人的编号依次输出。-A n personal sitting around a round table, each person s Numbers were 1, 2, 3... N, now from the first person start to
Josephus
- 一种通过循环链表实现约瑟夫环的方式,内有注释-A through the cycle of Joseph ring way realization list,There were comments
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
Josephus
- 解决经典问题约瑟夫环的C程序,简单易行,可供C语言和数据结构初学者使用-A C program can be used to Solve the problem of the Joseph ring
Josephus
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph (Joseph) a descr iption of the problem is: No. 1, 2, ..., n-
main
- 计算约瑟夫环,本程序是一个控制台程序,能够计算出约瑟夫环。-compute the Josephus
Jose
- 约瑟夫环 一个简单的新手编写的只是作为作业 学习的 小程序-Josephus show a little simple for studying,maybe not very well but just for a new student,who know that not good
Josephus
- 求解约瑟问题的c語言程序,具有普遍性和高效性-Solving Joseph c language program, universal and efficient
Josephus
- 经典的约瑟夫问题,约瑟夫问题c源码,主要是约瑟夫代码实现。对于c的初学者来说还不错。-The classic problem of Joseph, Joseph problems c source code, source implementation of Joseph. Also good for the beginner of c.
joseph
- 模拟约瑟夫环(josephus)问题: n个人(编号为1,2,3,……,n (n>0) )按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出两个值:一个为首先报数的人的编号i (0<i<=n),另一个为起始报数上限值m。接着从编号为i的人开始按顺时针方向自1起顺序报数,报到m时停止报数,且报到m的人出列,并将他的密码作为新的m值,从他在顺时针方向上的下一个人起重新自1报数,……,如此下去,直到所有人全部出列为止。设计一个程序模拟此过程,给出出列人的编号序列。 基本
Wkechengshejii
- 用c或c++编写的八皇后问题,通讯录录,约瑟夫环的代码,数据结构的课程设计 -Write c or c++ for eight queens problem, the code of the address book entries, Josephus, the curriculum design of data structures
Joseph-problem
- 约瑟夫环队的程序,其中包含四种不同的程序,包括带头结点,不带头结点的队列程序-Josephus team program, which includes four different programs, including to take the lead node does not take the lead in the queue of the node program
JosephSTL
- [转发]约瑟夫环问题的一种C语言的算法,STL链表解法。-[Forwarded] Josephus a C language algorithms, STL linked list solution.
Josehpos
- [转发]约瑟夫环问题的不带头结点的循环链表解法,可以成功运行哒~-[Forwarded] Josephus problem does not take the lead in the solution of the circular linked list of nodes, you can successfully run da ~
Josehpos
- [转发]约瑟夫环问题的带头节点的循环链表的解法-[Forwarded] the solution of the circular linked list of the leading node of the Josephus problem
yuesefuhuan
- 约瑟夫环的代码,用循环链表实现约瑟夫环。。主程序和循环链表都有-Josephus code