搜索资源列表
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
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
joseph
- 数据结构,约瑟夫环问题。这是大一的数据结构作业,在V6.0下运行流畅无错误-Data structures, Josephus. This is the first year the data structure operations run smoothly without errors in V6.0
arrayIterate
- 华为编程大赛,约瑟夫问题,从数组中逐个删除元素-remove the element from the array one by one
B2
- 使用C++编写的用于描述约瑟夫算法的程序,解决环形约瑟夫问题-Use C++ written procedures used to describe Joseph algorithm to solve the problem of the annular Joseph
joseph-ring
- 约瑟夫环问题约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Joseph ring
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