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

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

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

  • shujuku
    数据库654 521654321654132-shujuku
    2022-06-02 16:32:26下载
    积分:1
  • 翻译XML
    应用背景1。编写一个程序来创建一个文档2。编写一个程序来查找文档中的文档3。编写一个程序,在浏览器窗口中显示一个XML文档4。编写一个程序,将新节点添加到一个XML文档中5。编写一个程序,演示文档中的属性的工作6。编写一个程序来翻译数据库的访问7。编写一个程序,将数据库转换为XML8。编写一个程序,显示文档的标记的变化9。编写一个程序来删除和替换xml节点关键技术使用系统;使用system.collections.generic;使用system.componentmodel;使用系统数据;使用system.data.oledb;使用系统;使用LINQ系统;使用系统;使用系统
    2022-01-25 21:27:44下载
    积分:1
  • Completed in the ODBC asynchronous calls in C source code, runtime environment W...
    完成在ODBC中进行异步调用的C程序源代码,运行环境Windows.-Completed in the ODBC asynchronous calls in C source code, runtime environment Windows.
    2022-02-05 11:27:54下载
    积分:1
  • data structure of fiendish language to explain the algorithm
    数据结构中的魔王语言解释算法-data structure of fiendish language to explain the algorithm
    2022-07-11 15:19:15下载
    积分:1
  • 仓储药房管理系统
    仓储药房管理系统-warehousing pharmacy management system
    2022-08-16 14:46:49下载
    积分:1
  • miniSQL 的库设计
    数据库系统设计课程作业设计并实现一个精简型单用户SQL引擎(DBMS)MiniSQL,允许用户通过字符界面输入SQL语句实现表的建立/删除;索引的建立/删除以及表记录的插入/删除/查找。 通过对MiniSQL的设计与实现,提高学生的系统编程能力,加深对数据库系统原理的理解。
    2023-02-11 23:55:04下载
    积分:1
  • Used VC++ 6.0+ Ado development apart from the basic to the additions and deletio...
    采用VC++6.0 + Ado开发 除了基本的增删改之外,还有以下特色 **可以直接将照片存于数据库,不必担心因为系统路径改变导致的更改。 **支持简单查询,模糊查询和精确查询和多种排序功能。 **双击左侧列表即可进行更改,右键保存。 **系统界面美观。 屏幕分辨率:1024*768 效果最佳 有需要源代码的朋友,通过电子邮件与本人联系。 Email:linchangcheng007@163.com 进一步了解本人相关作品,请访问本人的Blog。 Blog: http://blog.csdn.net/linchangcheng007/ 花了几天时间做的东东。对于VC开发,数据库开发入门来说很不错的。-Used VC++ 6.0+ Ado development apart from the basic to the additions and deletions, there are the following features can be directly** photos stored in the database without having to worry about because the system led to changes in the path of change.** Support a simple query, fuzzy query and precise queries and a variety of sorting functions.** Double-click the list on the left you can make changes, right-preservation.** System Interface beautiful. Screen Resolution: 1024* 768 best source code need to have a friend by e-mail with my contact. Email: linchangcheng007@163.com to learn more about my work-related, please visit my Blog. Blog: http://blo
    2022-06-22 05:53:17下载
    积分:1
  • 本人上传的是用分治法实现的大整算法,采用的是组形式。...
    本人上传的是用分治法实现的大整数算法,采用的是数组形式。-I uploaded is to use divide and conquer to achieve a large integer arithmetic, using the array form.
    2023-04-07 00:40:03下载
    积分:1
  • data structure presentation systems and contribute to further understanding and...
    数据结构演示系统,有助于进一步了解和验证数据结构中的算法-data structure presentation systems and contribute to further understanding and validation of data structure algorithms
    2023-08-23 02:45:04下载
    积分:1
  • 无穷大的两个相加或相乘
    无穷大的两个数相加或相乘,利用堆栈,是数据结构中重要的一部分,代码注释清晰,利用初学者使用
    2022-11-11 13:20:04下载
    积分:1
  • 696516资源总数
  • 106436会员总数
  • 7今日下载