搜索资源列表
josephus
- 2、 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -2, Joseph (Josephus) Central Question: nu
Joseph
- 约瑟夫环 约瑟夫问题的一种描述是:编号为1,2,3……的n个人按顺时针方向围坐成一圈,每人持有一个密码。一开始任选一个正整数作为报数上限m,从第一个人开始按顺时针方向自1开始报数,报到m停止报数。报m的人出列,将他的密码作为新的m值,从他顺时针方向的下一个人开始重新从1开始报数,如此下去,直到所有人全部出列。-Joseph Ring Joseph, a descr iption of the problem is: numbered 1,2,3 ... ... n-individual
1
- 约瑟夫问题 还好吧 数据结构的 自己编的 错了 请指教 -soso
Practice1
- 约瑟夫环:利用单项循环链表存储结构模拟此过程,按照出列的顺序打印出各人的编号和密码。 -Joseph Ring: The single linked list storage structure simulation of this process, according to the order of the columns to print out each number and password.
1
- 数据结构约瑟夫环的实现1. 本演示程序中,人数n应为任意的,首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为报数上限,如此循环,直至所有人都出列为止。-Implementation of data structures Joseph Central 1. The demonstration program, the number n should be arbitrary, at first, enter a value assigned t
1
- 约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph (Joeph) a descr iption of the problem is: number is 1,2, ...,
Josef
- 约瑟夫环线性表实现,n个人围成一圈,数到m人退出。-Joseph Link of the table to achieve, n personal circle, the number of people out to the m.
YUESEFU
- 用词语言编写的一个解决约瑟夫环问题的程序,仅供参考。-Written in terms of a solution to the problem of the process Joseph Central, for reference only.
joseph
- 约瑟夫环 visual c++ 编程 欢迎大家给与评价与订正-Joseph Central visual c++ programming are welcome to give evaluation and revision
wu
- 约瑟夫环 实现杀一个就拖走一个 知道自后一个幸运的没有被杀掉-Joseph Circle
joseph_ring
- 2、 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。- Joseph (Josephus) Central issue: numbered 1,2,3, ..., n of n individuals sitting
Joseph
- 约瑟夫环问题的源代码(数据结构),方便用来学习编程。-Joseph Ring problem' s source code (data structure) to facilitate for learning programming.
josephus
- C语言实现的约瑟夫环问题,该问题的另一个名字叫做猴子选老大。-C language implementation of the Joseph cycle problem, the problem is another name is Hou Zi election boss.
03081148Josephus
- 约瑟夫环问题 n个小孩做成一圈 每个人有一个密码 有一个初始密码 顺时针转 转到者出列并把密码作为新的密码-Joseph Ring problem n kid everyone made a circle with a password to an initial password clockwise and the password are the column as a new password
2-5-2
- 使用一般循环单链表(设立指向表位节点的指针)解决约瑟夫问题的算法-Single linked list using general circulation (the establishment of the node pointer points to the table spaces) to solve the problem of the algorithm Joseph
2-5-3
- 使用顺序存储的线性表解决约瑟夫(Josephus)问题-Use the table to solve the linear sequence of storage, Joseph (Josephus) problem
Josephus
- 约瑟夫问题,用数组、链表和模拟指针完成,使用输入输出流进行数据的载入-Joseph problems with arrays, linked lists and pointers to complete simulation, using the input and output streams of data loading
Josph
- 约瑟夫环,利用单向循环链表存储结构模拟此过程,按照出列的顺序引出各人的编号。-Joseph Wan, using one-way linked list storage structure simulation of this process, according to the order of the columns leads to each number.
Joseph
- 约瑟夫问题,四种解法,分别是静态链表,顺序表两种和循环链表-Joseph problems, the four solution, namely a static list, order form and the cycle of two lists
CircularLinkedList
- 循环链表的一些实现及基本操作 约瑟夫环及插入-Circular linked list some of the basic operations to achieve and Joseph Central and insert