搜索资源列表
yuesefuhuan
- 约瑟夫环的求解,用经典的循环数据链表求约瑟夫环的最终的输出结果。-Josephus solving, seeking the final output Josephus classical cyclic data list.
first
- 数据结构代码,约瑟夫环问题,数组和循环链表解决-code in data structures
yuesefuhuan
- 约瑟夫环完整程序代码。从键盘输入整数m,通过creat函数生成一个具有m个结点的单向环表。从键盘输入整数s(1<=s<=m)和n,从环表的第s个结点开始计数为1,当计数到第n个结点时,输出该第n结点对应的编号,将该结点从环表中消除-Josephus complete program code. Enter an integer m the keyboard, by creat function generates an m-node having unidirectional ri
yuesefu
- 约瑟夫问题的简单实现,可以在此基础上做进一步的优化-Joseph simple implementation problems, can be further optimized on the basis of
JosephusCircle
- 关于数据结构中一个有名的问题的求解,约瑟夫环问题- Data structure in a well-known problem solving, Josephus problem
Joseph-ring
- 数据结构,这个小程序主要用链表约瑟夫环问题。-The data structure,This small program mainly with the problem of Joseph ring chain table。
1.Josephus-problem
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的顺序是:5,4,6,2,3,1。-The Josephus problem is the following game: N people, numbered 1 to N, are sitting in a circle. Starting at person 1, a hot potato is passed. After M passes, the per
javascript_Linklist_apply
- js的单向循环列表实现,解决 约瑟夫环问题。-js single way circle Linklist ,sole the jone Suff Circle problem
Joseph-Problem
- 给出了约瑟夫问题的数学解法(文档)和几个C语言代码-A mathematical solution to Joseph Problem and three programs of C
Joseph
- 解决约瑟夫问题:输入N个数,从第n个数开始,每过i个数输出一个数,最后得到N个数的输出顺序-Joseph problems to solve: the number of N input the first number n, every i-th output over a number finally get the output sequence number N
josephliveordie
- 约瑟夫生者死者游戏,约瑟夫游戏的大意:30个游客同乘一条船,因为严重超载, 加上风浪大作,危险万分。因此船长告诉乘客,只有将全船 一半的旅客投入海中,其余人才能幸免于难。无奈,大家只 得同意这种办法,并议定 30 个人围成一圈,由第一个人数 起,依次报数,数到第9人,便把他投入大海中,然后再从 他的下一个人数起,数到第9人,再将他投入大海中,如此 循环地进行,直到剩下 15 个游客为止。问:哪些位置是将 被扔下大海的位置? 不失一般性,将 30 改为一个任意输入的正整数 n,而
Joseph-Problem
- 约瑟夫问题。设有n个人做作圆桌周围,从第s个人开始报数,报到m的人出列,然后再从下一个人开始报数,数到m的人又出列,如此重复,直到所有的人都出列为止。要求按出列的先后顺序输出每个人的信息。-Joseph problems. N individual has contrived around the round table, I began to count off s individual report m people out of the column, and then began to
josephus
- 约瑟夫环(约瑟夫问题)是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后[1] 结果+1即为原问题的解。-josephus ring
JOSEPHUS
- 约瑟夫环问题源代码 约瑟夫环(约瑟夫问题)是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列 他的下一个人又从1开始报数,数到m的那个人又出列 依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后结果+1即为原问题的解。-Joseph ring problem source code Joseph s ring (Joseph s problem) is a mathem
约瑟夫问题
- M个人坐在一圈,开始数数,报到K或K的倍数的人出去,然后继续报数,直到最后剩下一个人,问最后剩下的人是谁?多少号?请大家自己设计算法,自己编程实现。(M sat in a circle and began to count, multiple report K or K people go out, and then continue to count off, until the last person left, who is the last person? What number? Pl
源代码
- 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后[1] 结果+1即为原问题的解。(Known n individuals (represented by numbers 1, 2, 3,..., n) sit around a round table. K from a number of pe
sanguaghJoseph
- 用C语言编写的约瑟夫环等问题,用链式存储实现!(Joseph ring written in C language, with chain store!)
Josephus
- 管理员,我求求你了一定要通过哇。!!今晚就要代码了哇!我一定要下载成功哇!!(I begged you to pass all of the things I uploaded, and allowed me to download things!!!!)
C++
- 约瑟夫问题(Josephus problem)又称为约瑟夫斯置换,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,约瑟夫问题类似问题又称为约瑟夫环、“丢手绢问题”。(C + + solving josephus problem)
实验1
- 约瑟夫环(约瑟夫问题)是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后[1] 结果+1即为原问题的解。(The Joseph ring (Joseph problem) is a mathematical application problem: known n indiv