登录
首页 » 算法 » 约瑟夫问题

约瑟夫问题

于 2022-06-14 发布 文件大小:2.00 kB
0 176
下载积分: 2 下载次数: 1

代码说明:

约瑟夫 argorithsm.这里是人站成一个圈,等待执行。数着圈子中的某一时刻开始和收益绕了一圈在一个固定的方向。在每一步,跳过了一定数量的人和执行下一个人。消除收益绕了一圈 (而变得越来越小越来越小,作为被执行的人),直到最后一个的人也只剩下,谁被授予了自由。

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

发表评论

0 个回复

  • MPU6050角度解析上传程序
    通过STM32的I2C接口读取MPU6050的数据,然后经过均值滤波和互补融合,获取横滚角和俯仰角,然后将角度信息通过串口反馈到上位机中。
    2022-08-18 20:09:59下载
    积分:1
  • This is an ultrasonic launch control circuit design, a continuous single
    这是一个超声波发射的控制电路的设计,可以发出连续的单载波脉冲.-This is an ultrasonic launch control circuit design, a continuous single-carrier pulse.
    2022-03-24 14:35:14下载
    积分:1
  • 矩阵转置与矩阵输出
    矩阵转置与矩阵输出-matrix transpose and matrix output
    2023-02-08 03:40:03下载
    积分:1
  • 很多数值分析算法函数
    很多数值分析算法函数-A lot of numerical analysis algorithm function
    2022-05-21 21:36:22下载
    积分:1
  • 冒泡排序算法的C++
    该代码读取输入文本文件并将其排序,然后将这些数字排序为输出文本文件。代码采用了气泡排序算法进行排序。
    2022-01-26 05:50:08下载
    积分:1
  • 数组为8位char型数值,通过该函数可以计算出数组的16位循环校验码。...
    数组为8位char型数值,通过该函数可以计算出数组的16位循环校验码。-Array for the 8-bit char type values can be calculated through the function of an array of 16 cycle parity-check codes.
    2023-06-20 15:25:03下载
    积分:1
  • 鼹鼠闯迷宫
    资源描述void creatWay(int (*mg)[N],int x, int y)//在迷宫中产生一条路,使用图的深度遍历思想来实现, { static int dir[4][2] = {0, 1, 1, 0, 0, -1, -1, 0};////将要走的4个方向保存在二维数组中 int zx = x*2; int zy = y*2; int next, turn, i; mg[zx][zy] = 0; if(rand()%2) turn = 1; else turn = 3; for(i=0,next=rand()%4;i
    2022-01-26 05:46:58下载
    积分:1
  • 这个程序分别用二分法,Newton法,弦截法,Newton下山法等算法求解非线性方程...
    这个程序分别用二分法,Newton法,弦截法,Newton下山法等算法求解非线性方程-this procedure were used dichotomy, Newton, String interception, Newton downhill law for solving nonlinear equations
    2022-11-19 17:30:03下载
    积分:1
  • HRV频率分析
    计算使用FFT,AR,和Lomb-Scargle频率域HRV
    2023-04-13 05:35:03下载
    积分:1
  • vs.lib是一组线性代数与可积/迪在C++数学库…
    vs.lib is a math library in C++ with a set of linear algebra and integrable / differentiable objects. vs.lib is a rapid-proto-typing tool which makes programming in numerical applications as easy as writing mathematical expressions.-vs.lib is a math library in C++ with a set of linear algebra and integrable/differentiable objects. vs.lib is a rapid-proto-typing tool which makes programming in numerical applications as easy as writing mathematical expressions.
    2022-02-24 19:39:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载