登录
首页 » 算法 » a description of the problem is : No. 1, 2, ..., n n clockwise direction by indi...

a description of the problem is : No. 1, 2, ..., n n clockwise direction by indi...

于 2022-02-03 发布 文件大小:1.35 kB
0 47
下载积分: 2 下载次数: 1

代码说明:

约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,没人持有一个密码。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针自1开始报数,报到m是停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。-a description of the problem is : No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, no one holding a password. One person started as a positive integer limits on the number of reported m, from the first individuals to embark on the clockwise from a few reportedly started, the report m is reportedly stopped a few. M reported out of the list of his password as a new value m, from a clockwise direction in the next re-started from a newspaper a few, like that, until the total of all listed so far.

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

发表评论

0 个回复

  • Jacobi to solve linear equations, possison equations, welcome you to give valuab...
    Jacobi求解线性方程组、possison方程,欢迎大家提出宝贵意见。-Jacobi to solve linear equations, possison equations, welcome you to give valuable advice.
    2022-03-13 21:27:05下载
    积分:1
  • bankers algorithm calender colour
    bankers algorithm calender colour-bankers algorithm calender colour
    2022-03-05 07:52:53下载
    积分:1
  • prosecutors iteration of linear equations
    sor迭代求解线性方程组-prosecutors iteration of linear equations
    2022-03-07 17:12:15下载
    积分:1
  • Differential Evolution Strategy C++ source code. The algorithm is to find an opt...
    微分进化策略的C++源代码。该算法是寻找一个集合中最优个体的一种遗传算法。-Differential Evolution Strategy C++ source code. The algorithm is to find an optimal set of individuals of a genetic algorithm.
    2022-02-09 11:57:41下载
    积分:1
  • vb坐标正反
    适用于坐标转换,利用高斯投影正算反算坐标在北京54西安80以及cgcs2000下的坐标系,可以实现坐标系的换带等。对于测绘和地理信息上图幅纠正等,是最基础的条件。
    2022-10-30 08:55:02下载
    积分:1
  • RANSAC直线 椭圆 圆 拟合
    RANSAC为RANdom SAmple Consensus的缩写,它是根据一组包含异常数据的样本数据集,计算出数据的数学模型参数,得到有效样本数据的算法。它于1981年由Fischler和Bolles最先提出。该资源是利用MATLAB编写的 RANSAC 直线 椭圆 圆 拟合程序 
    2022-12-16 05:20:03下载
    积分:1
  • 时间序列预测是一种定量分析方,它是在时间序列变量分析的基础上,运用一定的数学方建立预测模型,使时间趋势向外延伸,从而预测未来市场的发展变化趋势,确定变量预...
    时间序列预测法是一种定量分析方法,它是在时间序列变量分析的基础上,运用一定的数学方法建立预测模型,使时间趋势向外延伸,从而预测未来市场的发展变化趋势,确定变量预测值-Time Serial is used to forecast.
    2022-03-18 17:00:56下载
    积分:1
  • fft的文件,fortran环境下运行!欢迎指正!
    fft的文件,fortran环境下运行!欢迎指正!-fft documents, fortran environment running! Please correct me!
    2022-07-15 00:39:50下载
    积分:1
  • //=== === === === === ==== === === === === === === =// letter Description// func...
    //=== === === === === === ===== //函数说明 //函数名称:Correlation //函数功能:计算最小二乘法拟合的多项式的相关系数 //使用方法:int M------ 拟合多项式的阶数(已知条件) // double *b--- 拟合曲线的系数,排列顺序为由高阶到低阶(已知条件) // double *x--- 结点x轴数据(已知条件) // double *y--- 结点y轴数据(已知条件) // double *Yg-- 结点估计值,个数为m(过程变量) // int m------ 结点个数(已知条件) //注意事项:多项式阶数最高为10,多项式的形式为 y = a0 + a1x +a2x2 -//=== === === === === ==== === === === === === === =// letter Description// function name : Correlation// Function functions : Calculation least squares polynomial fitting of the correlation coefficient// Use : int M------ polynomial fitting stage (known condition)//* b--- double fitting song The coefficient, Higher-order the order on grounds of low order (known condition)//* double-node x x axis data (known to be pieces)// double* y--- node y-axis data (known condition)//* double FSL-- Nodes estimates, Number m (process variables)// int m------ node number (known condition)// Note : polynomial order of a maximum of 10. polynomials in the
    2022-04-29 13:08:12下载
    积分:1
  • 形态学处理
    腐蚀– 腐蚀是一种消除边界点,使边界向内部收缩的过程。– 可以用来消除小且无意义的物体 膨胀–膨胀是将与物体接触的所有背景点合并到该物体中,使边界向外部扩张的过程。–可以用来填补物体中的空洞
    2022-08-13 13:13:17下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载