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

约瑟夫猴子游戏

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

代码说明:

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

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

发表评论

0 个回复

  • 计算方法c牛顿插值函数
    计算方法c牛顿插值函数-calculation c Newton interpolation function
    2022-02-12 05:09:10下载
    积分:1
  • use vc realized random test code, can achieve simple to the complex random pictu...
    使用vc开发实现的随机验证码,可以实现简单到复杂的随机图片,非常好用-use vc realized random test code, can achieve simple to the complex random pictures, very handy
    2022-08-15 19:08:49下载
    积分:1
  • 对数回归方程logarithmregress.cs方程模型y = * LN…
    对数回归方程 LogarithmRegress.cs 方程模型为 Y=a*LnX+b public override double[] buildFormula() 得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是b,a。 public override double forecast(double x) 预测函数,根据模型得到预测结果。 public override double computeR2() 计算相关系数(决定系数),系数越接近1,数据越满足该模型。 -Logarithmic regression equation LogarithmRegress.cs equation model for Y = a* LnX+ Bpublic override double [] buildFormula () get coefficient array, the storage order and model coefficients contrary, that is, the array is followed by the value of coefficient b, a. public override double forecast (double x) prediction function, according to the results of model prediction. public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the data satisfy the model more.
    2022-08-31 23:15:03下载
    积分:1
  • Anderson CFD 第七章Fortran程序
    针对Anderson教材第七章相关章节(7.3&7.4)书写的Fortran程序,和书本上的结果进行了对比,程序运行正确。使用最新的Fortran语法书写,方便阅读;
    2022-10-25 17:25:03下载
    积分:1
  • 基于元胞自动机的单元模拟应用程序
    该软件包包含基于正常数字和元胞自动机,以及一些经典的老的一些非同寻常的发电机。这些都是用于研究,而不是替换到库存随机 (这是很好的它是什么) 而设计的。所有这些不应该用于的加密 (SecureRandom 是细如是)。
    2022-04-20 08:17:22下载
    积分:1
  • 物联网智能信息处
    物联网智能信息处理算法的输入要从文件读取,具有通用性假设min_sup_count=2,在如下交易数据集上,验证算法结果的正确性
    2022-08-16 06:40:29下载
    积分:1
  • 串口虚拟示波器(上位机、51下位机)
    应用背景在手上没有硬件工具的时候,你想了解单片机的一些变量。这个时候你将会非常的郁闷,想看有看不到,。这个时候虚拟串口示波器就可以帮助到你,解决你的困扰。只要你有USB转串口以及几根线就OK了。关键技术利用单片机的UART来进行通讯,电脑端要配一个USB转串口。C代码,简单易读,只需移植不需写通讯协议。
    2022-12-31 12:15:04下载
    积分:1
  • 经典层合板理论模型
    根据经典的复合材料层合板理论计算层合板在受拉及受弯时的应力应变分布,可任意设置层合板中每层的厚度,方向角。可提取层合板的膜应变和曲率,进而得到每层的应力应变(包括主轴方向和偏轴方向)
    2022-02-06 09:05:45下载
    积分:1
  • Example to calculate, with basic operations, polinomial til 10 degrees, just the...
    Example to calculate, with basic operations, polinomial til 10 degrees, just the first step for solution of polinomial problems, can be implemented according to your wish-Example to calculate, with basic operations, polinomial til 10 degrees, just the first step for solution of polinomial problems, can be implemented according to your wish
    2023-07-30 06:10:03下载
    积分:1
  • speex 1.1.12 编码 稳定版本
    speex 1.1.12 编码 稳定版本-speex 1.1.12 stable version of code
    2023-07-31 17:25:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载