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

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

于 2022-03-11 发布 文件大小:2.32 kB
0 210
下载积分: 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 个回复

  • 堆栈程序!关于
    堆栈程序!关于数据结构-stack procedures! On the data structure
    2022-06-19 06:20:22下载
    积分:1
  • 计算机科班学生的课的
    计算机科班学生的数据结构课的-‘表’(VC写的源程序)-computer classes to the students of the class of data structure-the "Table" (VC was made of the source)
    2022-01-26 06:08:21下载
    积分:1
  • Dijkstra algorithm, has been established for finding the shortest path map is a...
    dijkstra算法,用于寻找已建立图的最短路径,是非常有用的一个算法-Dijkstra algorithm, has been established for finding the shortest path map is a very useful algorithm
    2023-02-06 10:15:04下载
    积分:1
  • jdbc连接db2范例,非常完整,我找了很久,供学习参考
    jdbc连接db2范例,非常完整,我找了很久,供学习参考-jdbc connecting db2 example, the very integrity, I look for a long time for study reference
    2022-04-24 04:48:38下载
    积分:1
  • 项目描述: SQLite is a small C library that implements a self
    项目描述: SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine. Features include- Project description: SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine. Features include
    2022-01-22 13:40:01下载
    积分:1
  • study data structure required exercises, exercises to deepen the understanding o...
    学习数据结构所需要的习题,通过练习来加深对数据结构的理解。-study data structure required exercises, exercises to deepen the understanding of the data structure.
    2022-08-18 06:49:13下载
    积分:1
  • Jsp考试系统
    Jsp考试系统 -Jsp Examination System
    2022-06-02 23:09:23下载
    积分:1
  • Note : This section of the review of data structure and algorithm, a few scatter...
    说明: 这一段在复习数据结构和算法,有一些零星笔记,在Others这个归类下,欢迎指正。 对于排序算法,想做一个动态演示的东东,因此今天使用VB.net大概实现了一个,界面如下,代码有2个版本,一个可以指示当前循环的位置(但设计感觉不好,也找不到更好的办法),一个没有。 -Note : This section of the review of data structure and algorithm, a few scattered notes, in the classified Others, welcomed the correction. For Sorting Algorithm and do a demonstration of the dynamic page, and it is probably using VB.net achieved one of the following interface, the code has two versions, one can instruct the current cycle position (but feel bad design, but also find better ways), a no.
    2023-08-16 01:40:02下载
    积分:1
  • xmail 邮件程序案例
    xmail 邮件程序案例-mail procedures DCS case
    2023-08-06 22:15:04下载
    积分:1
  • 顺序表的基本操作
    顺序表的基本操作-order the basic operation
    2022-02-03 07:21:59下载
    积分:1
  • 696518资源总数
  • 105665会员总数
  • 6今日下载