搜索资源列表
Joseph
- 约瑟夫问题解决好人与坏人问题:有n个人围成一圈,分别报数,报到为m的出列,也就是经典的约瑟夫问题。先要解决这样一个问题。围成一圈的人有k个好人,k个坏人,在进行约瑟夫问题报数时,符合在坏人没有都出列前第一个好人没有出列这样的情况的m的最小值为多少?-Joseph, good and bad problem-solving problem: there are n people form a circle, respectively, reported that the number of reg
joseph
- 编制一个求解约瑟夫环的程序 本程序中,初始密码和每个人的密码为1~9999,人数为1~30,先输入初始密码m,再输入人数n,接下来输入n个正整数,数与数之间用逗号隔开,作为这n个人的密码-failed to translate
shengsiyouxi
- 约瑟夫双向生死游戏是在约瑟夫生者死者游戏的基础上,正向计数后反向计数,然后再正向计数。具体描述如下:30个旅客同乘一条船,因为严重超载,加上风高浪大,危险万分;因此船长告诉乘客,只有将全船一半的旅客投入海中,其余人才能幸免遇难。无奈,大家只得同意这种办法,并议定30个人围成一圈,由第一个人开始,顺时针依次报数,数到第9人,便把他投入大海中,然后从他的下一个人数起,逆时针数到第5人,将他投入大海,然后从他逆时针的下一个人数起,顺时针数到第9人,再将他投入大海,如此循环,直到剩下15个乘客为止。问哪
shujujiegou
- 这里有数据结构课程设计的所有题目,有一些题目的参考实验报告,如停车场问题,八皇后问题,约瑟夫环问题-Here are all the data structures course design topics, some topics of the experiment report, such as parking problems, the eight queens problem, Josephus problem
Josephus
- 数据结构经典算法,约瑟夫环的完整版实验报告,C++语言编写-Classic data structure algorithms, the report of Josephus.
data
- 数据结构 约瑟夫环 哈希表 哈弗曼树 括号匹配四个程序,有代码和报告。-Hash table data structure Josephus four Hafu Man tree brace matching procedures, codes and reports.
joseph
- 约瑟夫问题如下:已知n个人(n>=1)围坐一圆桌周围,从1开始顺序编号。从序号为1的人开始报数,顺时针数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规则重复下去,直到所有人全部出列。请问最后一个出列的人的编号。 -Joseph questions are as follows: Given n individuals (n> = 1) sitting around a round table, numbered sequentially startin
yesefu
- c sharp 程序,算法与结构 yuesefu约瑟夫环,-c sharp program, algorithm and structure yuesefu Josephus,
josepharray
- 约瑟夫问题,用链式结构实现,有N个数,从S开始报数M,列出前后出序序列-Joseph problems with the chain structure to achieve, there are N number, starting from the S reported that the number M, before and after the order listed in the sequence
JosephLink
- 约瑟夫问题,链表实现。有N个数,从S开始报数m,打印出序序列-Joseph problems linked list. There are N number, starting from the S reported that the number m, print out the order sequence
Joseph
- 约瑟夫问题 使用了链表方法 n玩家数到m的人出局 找到最后胜者-Joseph problems using the list method n to m number of players to find out who the final winner
Joseuph-table
- 约瑟夫圆桌:N个人围成一个圆圈,设定循环周期,报数,报到M的人出局。-Joseph Roundtable: N individuals in a circle, set the cycle, reported that the number of people out of M report.
joseph
- 约瑟夫环的简单求解,可以用来学习初级数据结构。-Josephus simple solution can be used to study the primary data structure.
Josephus
- 约瑟夫问题,用C++实现的约瑟夫问题。输入n和d的值,输出出列序列-Joseph problems with C++ implementation of Joseph problems. Enter n and d values, the output of the column sequence
jeoph
- 约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈, 每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-C language linked list data agencies to achieve Josephus problem.
Joseph
- C++语言实现约瑟夫环的求解,采用链表实现环的存储,注释很详细-C++ language Josephus solving
YoSePh
- 通过一个比较新颖的算法解决约瑟夫问题,有两个参数一个为总个数N,一个为间隔数目为M-Solve YosePh Problems By a New method
Josephus
- 用C++实现Josephus约瑟夫问题,简单的小程序,供初学者参考-In C++ implementation Josephus Josephus problem, a small little program
dead-or-live
- 生死者游戏,利用约瑟夫环编写的C语言代码-Game of life and death were the use of Josephus written in C language code
joseph
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,..., n 的n 个人按顺 时针方向围坐一圈, 每人持有一个密码(正整数)。一开始选任一个正整数作为报数上限值m, 从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将它的密码作为新的m值,再从下个人开始新一轮报数,如此反复,直到剩下最后一人则为获胜者。试设计一个程序求出出列顺序。-Joseph (Joseph) a descr iption of the problem is: numbered 1,2 ,.