搜索资源列表
Joseph
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的人的序号为5,4,6,2,3。最后剩下1号。 假定在圈子里前K个为好人,后K个为坏人,你的任务是确定这样的最少M,使得所有的坏人在第一个好人之前被杀掉。-Joseph problem is a well-known problem: N personal circle, began to count off from the first, the M-th
josephus
- 约瑟夫问题解决方案(数据结构课程设计代码) -Joseph (data structure code)
YueSeFu
- 用链表的方法解决约瑟夫问题,思路简单,效率高。-Joseph problems linked list method to solve, the idea is simple, high efficiency.
LinkTable
- 数据结构中线性链表,及循环链表的应用,这是对约瑟夫问题的求解。-Linear linked list data structure, and the application of the circulation list,For Joseph problem solving.
Josephus-Problem
- 约瑟夫问题:编号为1,2,……,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph: Number as 1, 2, ......, n n individuals in a clockwise direction around
Josephus
- 题目描述:设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,如此反复直到所有人全部出列为止。最终显示出列人的队列。 这个问题是约瑟夫问题的实例化,运用了循环链表,详细算法描述及测试结果见Readme。-Subject descr iption: has n individuals sitting around a round table, now from the first s personal Countin, n
yuesefu-huan
- 约瑟夫问题的一种描述是:编号为1,2,...,n 的n 个人按顺时针方向围坐一 圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值 m, 从第一个人开始。按顺时针方向自 1 开始顺序报数,报到m 时停止报数。报m 的人出列,将他的密码作为新的m 值, 从他在顺时针方向上的下一个人开始重 新从1 报数,如此下去,直至所有人全部出列为止。试设计程序求出出列顺 序。 -Joseph a descr iption of the problem: numbered
yuesefu
- 约瑟夫问题的C语言实现,程序代码很简单,详细理解可查阅相关资料,或者联系我-Joseph C language, the program code is very simple, a detailed understanding of access to relevant information, or contact me
Joseph
- 试用分别用线性表的向量存储结构和链表存储结构来实现约瑟夫(Josephu)问题。约瑟夫问题如下: 设有n个人围坐圆桌周围。从某个位置上的人开始从1报数,数到m的人便出列,下一个人(第m+1个)又从1报数开始,数到m的人便是第2个出列的人,依次类推,直到最后一个人出列为止,这样就可以得到一个人员排列的新次序。例如,n=8,m=4,从第1个人数起,得到的新次序为48521376. -failed to translate
Joseph
- 利用循环链表实现约瑟夫问题的求解 数据结构-Joseph problem solving circular list
Joseph
- 用C++实现的约瑟夫问题,用到了单向循环链表结构。-Achieved with C++ Joseph used a one-way circular linked list structure.
Two-way-Joseph-problems
- 经典算法问题-双向约瑟夫问题,c语言版,代码详细,可运行-Classic algorithmic problems- bidirectional Joseph, c language version of the code in detail, you can run
joseph
- 约瑟夫问题(有时也称为约瑟夫斯置换,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,类似问题又称为约瑟夫环。又称“丢手绢问题”)。-Joseph problems (sometimes called Josephus replacement, is an appearance in computer science and mathematics problems in computer programming algorithm, similar problems also kno
yuesefu
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的人的序号为5,4,6,2,3。最后剩下1号。 假定在圈子里前K个为好人,后K个为坏人,你的任务是确定这样的最少M,使得所有的坏人在第一个好人之前被杀掉-Josephus problem is a well-known problem: N personal circle, starting from the first report the num
Joseph
- 用c语言单项循环链表实现了约瑟夫环 约瑟夫问题的一种描述是-Single circular linked list using c language to achieve Josephus Josephus is a descr iption of the problem
shiyan2lianbiao
- 数据结构实验二,使用链表方式解决约瑟夫问题-Experiment two data structures, the use of linked lists to resolve the problem of Joseph
lsh
- 约瑟夫问题的一种描述:编号为1,2....,n 的n个人按顺时针方向围坐一圈,一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,如此下去,直至所有人全部出列为止。利用循环链表为存储结构模拟此过程,按照出列的顺序输出依次出列人的编号。-Joseph, a descr iption of the problem: numbered 1,2 ...., n, n individuals in a clockwise direction a
arrayIterate
- 华为编程大赛,约瑟夫问题,从数组中逐个删除元素-remove the element from the array one by one
Docs
- C++大量的学习资料,练习题,对C++学习者会有很大的帮助,c++类,约瑟夫问题,函数重载,字符串查找,用C++遍历目录,浅谈C++的构造函数,-lot of learning C++ materials, exercises, right C++ learners will be very helpful, c++ category, Joseph problems, function overloading, string search, use C++ directory travers
B2
- 使用C++编写的用于描述约瑟夫算法的程序,解决环形约瑟夫问题-Use C++ written procedures used to describe Joseph algorithm to solve the problem of the annular Joseph