搜索资源列表
1_Josephus
- Josephus环问题:n个人围成一圈,编号从1到n,报数1,2,3,从编号为1的人开始报数,报到3的离开,下面的人接着从1开始报数,依次下去,写程序求最后剩下来的一个人编号是几。-Josephus ring problem: n personal circle, numbered from 1 to n, the number of reported 1,2,3, from the number 1 people began to count off, report three to leav
Joseph
- 编程实现了约瑟夫环的编程,代码易懂,功能强大,对初学者具有很大的用处。-Programming the Josephus programming, code easy to understand, powerful, great use for beginners.
yuesefuhuan
- 约瑟夫环的C语言实现,华为上机测试题。用链表实现-Josephus C language, Huawei-on test questions. List realize
Josephus
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的人的序号为5,4,6,2,3。最后剩下1号-Joseph is a famous problems: N individuals in a circle, starting from the first number off, the first M will be killed, the last one, the others will be killed.
yuesefu
- c语言实现约瑟夫环,用的循环单链表。输入成员总数n(1-n)以及开始编号k,从编号k开始报数到(out=k)出列,然后out=出列的编号,继续重复下去。-c language Josephus, the cycle of a single linked list.
ring
- 约瑟夫环问题,可用于数据结构练习和作业使用-Josephus, the data structure can be used for exercises and operations using
123456
- a) 设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,如此反复直到所有的人全部出列为止。Josephus问题是:对于任意给定的 n、s、m,求出按出列次序得到的n个人员的序列。试在计算机上模拟Josephus问题的求解过程。 b) 利用线性表实现一元多项式的相加、相减操作。 -very very easy
joseph
- 数据结构课上编的解决约瑟夫环问题的程序。-Class data structure to solve Josephus compiled the program in question.
joseph
- 约瑟夫环问题 c++解决带有个人密码的约瑟夫环问题-Josephus problem is solved with a personal password Josephus
Joseph
- 约瑟夫环的数组实现 编号为1,2,3......,n的人按顺时针方向围坐一圈,每人持有一个密码,一开始任选一个正整数作为报数上限m,从第一个人开始按顺时针方向自一开始报数,报到m时停止,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人重新从1报数,如此下去,直到所有人出列-Josephus arrays and structures to achieve
shiyan1
- 约瑟夫斯问题求解(约瑟夫斯(Josephus)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向下一个人开始重新从1报数,如此下去,直至所有的人全部出列为止。试设计一个程序,按出列顺序印出各人编号。)本程序就是解决上述问题-Josephus Problem Solving (Josephus (Jose
yuesefu
- 约瑟夫环 对约瑟夫环问题使用c++进行实现-Josephus Josephus problem on using c++ for implementation
ysfhcPP
- 约瑟夫环,大学的c++算法实验,做一个约瑟夫环的源码-Josephus, the University of c++ algorithm experiment, make a source of Josephus
2Josephus
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。-Joseph (Josephus) Central question: numbered 1,2,3
Josephus
- 本文档详细讲解了约瑟夫问题的算法流程并提供了C++代码,经测试可用。-This document is a detailed account of Joseph s algorithm flow problems and provides C++ code, have been tested.
Joseph-loop-in-c-language
- 使用c语言实现约瑟夫环,代码思路简单,可以运行,适合于链表数据结构的研究-Josephus using c language, code simple ideas, you can run, study linked list data structure suitable for
yuesefuhuan
- 数据结构实验课作业—约瑟夫环实验。使用链表完成实验。-Experimental data structure Homework- Josephus experiment. Use the list to complete the experiment.
333
- 约瑟夫环最终运行文件,适合直接使用者,不必再以来C语言来汇成执行文件。-Josephus final run files, suitable for direct users no longer have to come together to perform since the C language file.
joseph
- 应用数据结构解决约瑟夫环的问题,现实中环形排队的模型。-Josephus application data structures to solve problems, in reality, the ring queuing models.
1007
- 约瑟夫环的一个解法,是天津大学toj上编号1007的解答,采用打表法,可能您之前并没有遇到过这么让您“无语”的解法哦!-Josephus problem!A very important problem on your code life