搜索资源列表
yuesefuhuan
- 华为编程大赛,约瑟夫环试题,值得一看,非常的经典!-Huawei programming contest to Josephus questions, worth a visit, very classic!
Joseph
- 利用循环链表实现约瑟夫问题的求解 数据结构-Joseph problem solving circular list
Joseph
- 用C++实现的约瑟夫问题,用到了单向循环链表结构。-Achieved with C++ Joseph used a one-way circular linked list structure.
Josephus
- 约瑟夫环 程序可直接运行 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Josephus program can be run directly known n individuals (No. 1, 2, 3, ... n, respectively) were sitting around a round table. K repor
QueueToJosephRing
- 用队列解决约瑟夫环的问题,使用两种方式构建队列。(C#构造)-Queue to solve the problem of Josephus, two ways of constructing the queue. (C# constructor)
ex1
- 单环链表实现约瑟夫环问题,用了链表的应用,可以输入n,m,s-The single ring linked list implementation Josephus, with the application of a linked list, you can enter n, m, s
Two-way-Joseph-problems
- 经典算法问题-双向约瑟夫问题,c语言版,代码详细,可运行-Classic algorithmic problems- bidirectional Joseph, c language version of the code in detail, you can run
joseph
- 约瑟夫环:由约瑟夫环的游戏规则可知,在游戏中,我们需要输入的是总人数n值、一开始选的上限值m和每个人手中所持的密码值cipher。这些数都应该是正整数,且n小于等于30,若输入的是小于等于0的数,应该提醒输入有误。用scanf()函数实现输入操作,空格、回车或者Tab键位输入结束标志。 在程序根据输入的数据运行之后,按顺序输出出列人的编号num,用printf()函数实现。 程序执行的命令包括:①构造结构体;②链表动态内存申请;③逐个插入链表结点并储存结点内容;④形成循环链表;⑤删除结点
yuesefuyouxi
- 数据结构实验中的约瑟夫游戏的源码。。。c实现的-Experimental data structure of Joseph game source. . . c achieve
joseph
- 约瑟夫问题(有时也称为约瑟夫斯置换,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,类似问题又称为约瑟夫环。又称“丢手绢问题”)。-Joseph problems (sometimes called Josephus replacement, is an appearance in computer science and mathematics problems in computer programming algorithm, similar problems also kno
2
- 约瑟夫环,可以实现简单链表的功能约
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
Joseph
- 韩顺平老师关于约瑟夫环的java源程序,解释详尽,欢迎大家下载-Han Shunping teacher about Josephus source
jsf
- 运用链表实现约瑟夫环,数据结构用,供大家参考。-Josephus using linked list implementation, data structures, for your reference.
Joseph
- 约瑟夫环 输入说明: 多组数据,输入数据第一行为一个整数表示有几组数据,每组数据由两行构成,每组数据的第一行为两个正整数n和m,分别表示人的个数及初始随机数,每组数据的第二行为n个整数,表示每个人持有的密码。 输出说明: 对每组数据用一行输出n个整数表示依次出圈人的编号,整数之间用空格分隔 -Enter a descr iption: multiple sets of data, the input data first act an integer representi
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
Josephus
- 用C++实现约瑟夫环,由用户动态输入密码。有实验报告。-With C++ achieve Josephus, by the users enter a password. Experimental report.
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