登录
首页 » 算法 » 约瑟夫猴子游戏

约瑟夫猴子游戏

于 2022-07-09 发布 文件大小:2.85 MB
0 228
下载积分: 2 下载次数: 1

代码说明:

约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的顺序是:5,4,6,2,3,1。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 约瑟夫问题,数据结构的经典例题。有助于大家对数据结构的理解!...
    约瑟夫问题,数据结构的经典例题。有助于大家对数据结构的理解!-Joseph problems, the data structure of the classic Example. Data structure will help everyone understand!
    2022-06-14 23:54:00下载
    积分:1
  • 其次算法
    KD 树的代码,常见的数据搜索算法,更实际
    2022-07-25 08:42:54下载
    积分:1
  • 计算模拟的统计方法(即蒙特卡罗模拟…
    圆周率统计计算方法仿真(即蒙特卡罗Monte Carlo仿真) 文件 应用程序:圆周率的统计计算.exe 源代码文件:圆周率的统计计算.c-Statistical method of calculating pi simulation (ie Monte Carlo simulation Monte Carlo) file applications: the statistical calculation of pi. Exe source code files: the statistical calculation of pi. C
    2022-08-24 16:46:00下载
    积分:1
  • 递归算法周游二叉树
    代码包含二叉树创建以及二叉树的先根序列,后根序列,中根序列三种递归周游二叉树算法,若有错误之处之处,还望指出!谢谢
    2022-01-21 02:01:44下载
    积分:1
  • matlab 快速 dtw 在线
    快速的dtw算法,用于语音和手写字体真伪识别,原理简单,实现方便,适合刚刚接触的人上手~
    2022-03-18 22:18:01下载
    积分:1
  • ural 卷1解题报告(代码)
    按照难度排列,差不多也有80道左右了,代码都很精简,附有注释还有解析神马的,适合初学者参考。
    2022-08-04 04:47:13下载
    积分:1
  • 用于科学计算的Fortran 90算法源程序
    用于科学计算的Fortran 90算法源程序-for scientific computation algorithm source Fortran 90
    2022-07-21 07:38:54下载
    积分:1
  • C语言作的四色验证1.需求分析问题描述:证明了可以用不多于4种颜色对n个区域着色,而满足相邻的区域具有不同的颜色输入形式 : 暂定最多50个区域,如需证明更多区...
    C语言作的四色验证1.需求分析问题描述:证明了可以用不多于4种颜色对n个区域着色,而满足相邻的区域具有不同的颜色输入形式 : 暂定最多50个区域,如需证明更多区域,修改#define S 50 即可;以整形形式输入(取值范围1-32767)用户需要证明的区域数目,相联的一对矩阵; 输出形式:以0和1输出关联矩阵,和以blue yellow orange pink形式输出每个区域相对应证明出的颜色;-C language does four colors confirm 1. demands analyses question description: Had proven may use not to be many to 4 kind of colors to n region coloration, but satisfies the neighboring region to have the different color input form: Establishes provisionally more than 50 regions, if must prove more regions, revise#define S 50 then; Region number (value scope 1-32767) the user needs to prove which by the reshaping form input, unites a pair of matrix; Output form: By 0 and 1 output incidence matrixs, with form outputs the color by blue yellow orange the pink which each region corresponds proves;
    2022-10-20 02:35:04下载
    积分:1
  • 高斯
    gauss-seidel迭代法解Ax=b的解-Gauss- Seidel iterative method for Ax = b Solution
    2022-05-21 18:58:32下载
    积分:1
  • Hangzhou University of Electronic Science and Technology ACM
    杭州电子科技大学在线系统ACM的1050题,用贪心方法解决-Hangzhou University of Electronic Science and Technology ACM-line system of the 1050 title with a greedy solution
    2022-01-26 02:26:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载