搜索资源列表
yuesefu
- 约瑟夫环 对约瑟夫环问题使用c++进行实现-Josephus Josephus problem on using c++ for implementation
2Josephus
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。-Joseph (Josephus) Central question: numbered 1,2,3
Josephus
- 经典的约瑟夫环算法,能实现约瑟夫环,本人亲自验证-Josephus classical algorithms can achieve Josephus, I personally verified
first
- 这是实现约瑟夫问题的代码,约瑟夫问题并不难,但求解的方法很多;题目的变化形式也很多。这里给出一种由C++语言实现的方法。 -This is a problem of code to achieve Joseph Joseph problem is not difficult, but a lot of methods for solving are also many variations of the subject. Here are a method of C++ language.
1
- 约瑟夫出圈问题,通过程序实现报数功能,并将最后一个人输出。-Joseph out of the ring problems reported by the number of program functions, and the last one output.
Josephus
- 约瑟夫环是一个数学的应用问题:已知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
josephu
- 用于解决约瑟夫问题.已知n个人(不妨以编号1、2、3……分别表示)围坐在一张圆桌周围。 从编号为k的人开始报数,数到m的人出列;他的下一个人又从1开始报数,数到m的那个人又出列; 依此规则重复下去,直到圆桌周围的人全部出列。-This program used to solve the Joseph problem. Known n individuals (may wish to represent numbers 1,2,3 ......) sitting around a roun
yuesefuwenti
- 解决约瑟夫问题的C++程序代码的小程序 适用于学生学习使用-Joseph solve the problem C++ small program code applies to students learning to use
Joseph-loop-in-c-language
- 使用c语言实现约瑟夫环,代码思路简单,可以运行,适合于链表数据结构的研究-Josephus using c language, code simple ideas, you can run, study linked list data structure suitable for
Josephus
- 约瑟夫环是一个数学的应用问题。 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 这个就是约瑟夫环问题的实际场景,有一种是要通过输入n,m,k三个正整数,来求出列的序列。-Josephus is the application of a mathematical problem. Known n individuals (with numbe
shujujiegou
- 高级数据结构-K路归并、两个线性表合并、亲戚问题、食物链问题、约瑟夫问题、最大连续子序列-Advanced data structures-K road merge, merge two linear tables, relatives problem, the food chain problem, Joseph problem, the maximum contiguous subsequence
jsf
- 约瑟夫算法,VF中使用,是我从VB中改来的,自己用多年了-Joseph algorithms, VF used, I come from a change in VB, they used many years
1007
- 约瑟夫环的一个解法,是天津大学toj上编号1007的解答,采用打表法,可能您之前并没有遇到过这么让您“无语”的解法哦!-Josephus problem!A very important problem on your code life
JOSEFH
- 经典问题,约瑟夫环 利用QT实现的。-Josephus QT C++
test2
- 2、 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -2, Joseph (Josephus) Central question: nu
chengxu
- 一、约瑟夫循环问题;二、一元多项式的运算;三、逆波兰表达式求值;四、杨辉三角显示;五、四则运算表达式求值;六、BST二叉树-First, Joseph circulation problems Second, one yuan polynomial arithmetic Third, reverse Polish expression evaluation Fourth, Pascal' s Triangle Show five, four arithmetic expressio
1
- 约瑟夫环实现源码,可以直接下载编译运行使用-josefu c code
staticLinkstruct_josephus
- 用静态链表结构解决约瑟夫问题,这是数据结构中的一个重要部分-The solution of the Joseph problem with static linked list structure, which is an important part in data structure
josself
- 约瑟夫环,华为公司经常出现的上机考试试题。-joseefu loop
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