登录
首页 » 数据结构 » 约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起...

约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起...

于 2022-03-11 发布 文件大小:2.32 kB
0 285
下载积分: 2 下载次数: 1

代码说明:

约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起,每数到第D个犯人,就拉出来处决,然后再数D个,数到的人再处决―――直到剩下的最后一个可赦免。 发展的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,但这N个人每人持有一个密码,他有一条荒唐的法律,将犯人站成一个圆圈,法官先给出一个密码M,从第S个人开始数起,每数到第M个犯人,就拉出来处决,再根据这个人所持有的密码F,然后再数F个,数到的人再处决,以此类推―――直到剩下的最后一个可赦免。-Joseph problems have original development of the Joseph and Joseph two. The original Joseph Description : Ancient a judge to sentence N inmates of the death penalty, he is a ridiculous law, prisoners station into a circle, from S began a few individuals, every few months to D prisoners, pull out executions, then D, the number of people to be re-executed--- until the last one left to be pardoned. The development of the Joseph Description : Ancient a judge to sentence N inmates of the death penalty, but each individual N holders a password, he is a ridiculous law, prisoners station into a circle, the judges first gave a password M, S individuals from the beginning of several, each of the first few inmates M , pull hi

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

发表评论

0 个回复

  • 1. 创建MyDatabase.gdb文件。 2. 用SYSDBA用户登录。 3. 在ISQL窗口中,依次输入本书提供的SQL语句;或者在SQL E...
    1. 创建MyDatabase.gdb数据文件。 2. 用SYSDBA用户登录。 3. 在ISQL窗口中,依次输入本书提供的SQL语句;或者在SQL Explorer窗口中,根据表3-1至表3-10创建数据表。(通过直接注册附带光盘所提供的MyDatabase.GDB数据库文件,可以直接获得这些数据表。) 4. 在SQL Explorer窗口中,创建MyDB数据库连接。 5. 输入初始数据。除了表3-11至表3-13的内容,还需要根据需要设定院系编号、班级号和计数器。 -1. MyDatabase.gdb create data files. 2. With SYSDBA user login. 3. In ISQL window, the importation of the book were provided by the SQL statement; or SQL Explorer window, according to Table to Table 3-1 3-10 create data tables. (Through direct registration with CD-ROM attached MyDatabase.GDB provided by the database files, direct access to these data sheets.) 4. SQL Explorer window, MyDB establish database connections. 5. Initial data input. Table 3-11 addition to the contents of Table 3-13, we must also need to set faculty numbers, and counter classes.
    2022-01-24 14:40:10下载
    积分:1
  • 发送TEXT短信模块
    发送短信模块源代码!PCON &= 0x7F; //波特率不倍速 SCON = 0x50; //8位数据,可变波特率 AUXR &= 0xBF; //定时器1时钟为Fosc/12,即12T AUXR &= 0xFE; //串口1选择定时器1为波特率发生器 TMOD &= 0x0F; //清除定时器1模式位 TMOD |= 0x20; //设定定时器1为8位自动重装方式 TL1 = 0xFD;  //设定定时初值 TH1 = 0xFD;  //设定定时器重装值 ET1 = 0;    //禁止定时器1中断 TR1 = 1;    //启动定时器1   ES=1;  //开串口中断
    2023-06-13 13:05:04下载
    积分:1
  • hope that we can enlighten a lot to me this is part of our classmates system
    希望大家能多多指教这是我给我们同学编的系统-hope that we can enlighten a lot to me this is part of our classmates system
    2023-01-13 04:55:05下载
    积分:1
  • 统计
    对给定书的总页码,计算出书的全部页码中分别用到多少次数字0,1,2,3...9.-DataStatistics
    2023-02-19 09:55:03下载
    积分:1
  • 有关aql中存储过程的内容
    有关aql中存储过程的内容-store the contents of the course
    2022-03-06 05:42:51下载
    积分:1
  • 重大环境危险源管理仅供参考
    重大环境危险源管理仅供参考-major source of environmental risk management is for reference only
    2022-06-14 16:41:56下载
    积分:1
  • 快递服务
    在 Visual Basic 6.0 开发项目。它是一个快递管理系统来管理和跟踪快递。欢迎大家下载、试用。谢谢大家的支持!
    2023-05-10 21:15:03下载
    积分:1
  • 模糊查询源码,实现简单的库条目查找。
    模糊查询源码,实现简单的数据库条目查找。
    2022-01-26 00:57:19下载
    积分:1
  • PCA transform, not passwords.
    主分量变换,不要密码。-PCA transform, not passwords.
    2022-01-26 04:50:44下载
    积分:1
  • EXCEL 股票繪圖
    用Excel寫的下載中國台灣股票程式(下載來源為中國台灣証交所),並可選取不同的日期區間繪製股票趨勢圖,大盤指數及kd,MA線,同時工作表內還有各種技術分析說明,內容非常豊富。
    2022-01-30 14:13:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载