搜索资源列表
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
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
2
- 约瑟夫环,可以实现简单链表的功能约
duoxiangshi
- 约瑟夫环的排队转圈什么的各种问题,单循环,单链表循环-Josephus circling what queuing problems, round robin, single chain loop
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
Josephus
- 用C++实现约瑟夫环,由用户动态输入密码。有实验报告。-With C++ achieve Josephus, by the users enter a password. Experimental report.
joseph
- 数据结构,约瑟夫环问题。这是大一的数据结构作业,在V6.0下运行流畅无错误-Data structures, Josephus. This is the first year the data structure operations run smoothly without errors in V6.0
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
josph
- C语言实现的约瑟夫环程序,适用于严蔚敏C语言数据结构的实验。非常简单的小程序。-C language implementation of Josephus procedures applicable YanWeiMin C language data structure experiments. Very simple applet.
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