搜索资源列表
joseph
- 约瑟夫环:由约瑟夫环的游戏规则可知,在游戏中,我们需要输入的是总人数n值、一开始选的上限值m和每个人手中所持的密码值cipher。这些数都应该是正整数,且n小于等于30,若输入的是小于等于0的数,应该提醒输入有误。用scanf()函数实现输入操作,空格、回车或者Tab键位输入结束标志。 在程序根据输入的数据运行之后,按顺序输出出列人的编号num,用printf()函数实现。 程序执行的命令包括:①构造结构体;②链表动态内存申请;③逐个插入链表结点并储存结点内容;④形成循环链表;⑤删除结点
joseph
- 约瑟夫问题(有时也称为约瑟夫斯置换,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,类似问题又称为约瑟夫环。又称“丢手绢问题”)。-Joseph problems (sometimes called Josephus replacement, is an appearance in computer science and mathematics problems in computer programming algorithm, similar problems also kno
duoxiangshi
- 约瑟夫环的排队转圈什么的各种问题,单循环,单链表循环-Josephus circling what queuing problems, round robin, single chain loop
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
jsf
- 运用链表实现约瑟夫环,数据结构用,供大家参考。-Josephus using linked list implementation, data structures, for your reference.
Joseph
- 用c语言单项循环链表实现了约瑟夫环 约瑟夫问题的一种描述是-Single circular linked list using c language to achieve Josephus Josephus is a descr iption of the problem
joseph
- 数据结构,约瑟夫环问题。这是大一的数据结构作业,在V6.0下运行流畅无错误-Data structures, Josephus. This is the first year the data structure operations run smoothly without errors in V6.0
Josephus
- 已知n个人(以编号1,2,3...n分别表示)围成一圈。从编号为1的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到一圈的人全部出列。-Known n individuals (with numbers 1,2,3 ... n, respectively) circle. From the number 1 people began to report the number, the number to m that person out
Josephus
- 构造循环链表,用以存储编号 报到数的则删除该节点,最后剩下结点,可根据编号判断原先位置。 -Circular linked list structure to store numbers to report the number of the node is deleted, the last remaining node, according to numbers determine the original location.
LinkList
- 约瑟夫环用C++实现,利用顺序表实现的,是符合现在的c++格式-Josephus with C++ achieved using the order form to achieve, is in line with current c++ format
YueSeFu
- 约瑟夫环,循环链表,数据结构实验,经测试能使用,DEV C++调试-Josephus, circular linked list data structure experiments have been tested to use, DEV C++ debugging
DataStructure_JosephRing
- VC++6.0编译环境 数据结构的约瑟夫环实现-VC++6.0 build environment to achieve data structure Josephus
josph
- C语言实现的约瑟夫环程序,适用于严蔚敏C语言数据结构的实验。非常简单的小程序。-C language implementation of Josephus procedures applicable YanWeiMin C language data structure experiments. Very simple applet.
2012IE_03031201_2012300689
- 约瑟夫问题 这是17世纪的法国数学家加斯帕在《数目的游戏问题》中讲的一个故事:15个教徒和15 个非教徒在深海上遇险,必须将一半的人投入海中,其余的人才能幸免于难,于是想了一个办法:30个人围成一圆圈,从第一个人开始依次报数,每数到第九个人就将他扔入大海,如此循环进行直到仅余15个人为止。问怎样排法,才能使每次投入大海的都是非教徒。 含C语言大报告-Josephus problem which is the 17th-century French mathematician Gaspar
josephus_clist
- 约瑟夫环的小算法,很简单,适合新手使用!-Josephus small algorithm is very simple, suitable for beginners to use!
joseph-circle
- 用visualC++的实现的动态约瑟夫环。 约瑟夫环是一种有数字组成的环,按一定消去,直至完全-Implementation with visualC++ dynamic Josephus. Joseph ring is a ring with digits, according to a certain elimination, until completely
Josephus
- C#实现约瑟夫问题。实现环境VS2010。原创-Joseph C# implementation issues
yue
- 约瑟夫环解决一个历史上的问题,主要是一群人围成一个环,解决最后谁活下来的问题-Josephus solve a history of problems, mainly a group of people surrounded by a ring, to solve the last problem of who survived
Josephus-problem
- 任务:编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个仍开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。 要求:利用单向循环链表存储结构模拟此过程,按照出列的顺序输出各个人的编号。 测试数据: m的初值为20,n=7 ,7个人的密码依次为3,1,7,2,4,7
yuesefuhuan
- 算法实现约瑟夫环,有界面呈现,直观简洁。-Josephus algorithm, interface presentation, simple and intuitive.