搜索资源列表
ysfhcPP
- 约瑟夫环,大学的c++算法实验,做一个约瑟夫环的源码-Josephus, the University of c++ algorithm experiment, make a source of Josephus
2Josephus
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。-Joseph (Josephus) Central question: numbered 1,2,3
Josephus
- 本文档详细讲解了约瑟夫问题的算法流程并提供了C++代码,经测试可用。-This document is a detailed account of Joseph s algorithm flow problems and provides C++ code, have been tested.
Joseph-loop-in-c-language
- 使用c语言实现约瑟夫环,代码思路简单,可以运行,适合于链表数据结构的研究-Josephus using c language, code simple ideas, you can run, study linked list data structure suitable for
yuesefuhuan
- 数据结构实验课作业—约瑟夫环实验。使用链表完成实验。-Experimental data structure Homework- Josephus experiment. Use the list to complete the experiment.
333
- 约瑟夫环最终运行文件,适合直接使用者,不必再以来C语言来汇成执行文件。-Josephus final run files, suitable for direct users no longer have to come together to perform since the C language file.
joseph
- 应用数据结构解决约瑟夫环的问题,现实中环形排队的模型。-Josephus application data structures to solve problems, in reality, the ring queuing models.
1007
- 约瑟夫环的一个解法,是天津大学toj上编号1007的解答,采用打表法,可能您之前并没有遇到过这么让您“无语”的解法哦!-Josephus problem!A very important problem on your code life
JesephRing
- 约瑟夫环上机报告,设计一个程序模拟过程,并给出出列人的编号序列.-Josephus reports on the machine
JOSEFH
- 经典问题,约瑟夫环 利用QT实现的。-Josephus QT C++
yuesefuhuan
- 基于C语言数据结构编写的约瑟夫环,内含说明文档-Josephus written based on the C language data structures, containing documentation
Josephus
- 对任意输入的n和m,求出最后剩下的人的编号。要求利用线性表保存这n个人,分别用公式化、链接、模拟指针三种描述方法实现。 输入:input.txt,两个整数n(3-100),m(1-m)-N and for any input m, the remainder of the determined number of the last. This requires the use of a linear table holds n individuals, respectively formul
test2
- 2、 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -2, Joseph (Josephus) Central question: nu
josephusPro
- 自己写的c++类模板,含详细注释(英文),循环链表实现josephus问题,总人数n和传递次数m由键盘输入,按顺序输出被删除的成员和最后1个获胜者。执行效率6000000以下较好。-c++ class template for josephus circlar linked list solution, with detailed comments.input:total member n, passing time m output:ordered deleted member and th
yue-se-fu-huan
- 用c语言详细描述了约瑟夫环,感兴趣的可以看下,很不错。-C language with a detailed descr iption of Josephus, interested can look very good.
Joseph-loop
- 约瑟夫斯(Josephus)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向下一个人开始重新从1报数,如此下去,直至所有的人全部出列为止。-A descr iption of Josephus (Josephus) question is: numbered 1,2, ..., n n individ
Chap02
- 数据结构中的常用线性算法,包括Josephus问题,顺序表和链表等。-Data structure used linear algorithms, including Josephus problem, such as the order of the tables and lists.
Joseph_Circle
- 约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Josephus is the application of a mathematical problem: Given n individuals (with numbers 1,2,3 ... n, respectively) sitting around a
josself
- 约瑟夫环问题,实现从指定位置后开始删除指定数字位的程序-Achieve Josephus
Data-Structure-and-algorithms-CPP
- c++实现数据结构的所有代码。包括线性表,树,图,排序,hash等。线性表实现堆栈,队列及约瑟夫环等多个应用,树实现哈夫曼树编码及译码,AVL树,线索化二叉树,森林和二叉树的相互转化等等,图实现图的几种建立方法,拓扑排序,最短路径,最大连通子图,双连通分量,最小生成树,关键路径算法等等,排序实现归并排序,快速排序,堆排序,shell排序,冒泡排序,选择排序,插入排序等,并对性能进行分析。hash实现闭散列表,开散列表,带溢出表的内散列表等,并使用5种hash函数。帮助同学们系统的学习数据结构及算