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

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

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

  • 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
  • 一个快速,高效的字典查询软件。采用改进的红黑树的搜索算法。...
    一个快速,高效的字典查询软件。采用改进的红黑树的搜索算法。-A fast, efficient software dictionary query. Improved red and black tree search algorithm.
    2022-02-12 10:17:48下载
    积分:1
  • 二叉树的实现,包括各种遍历
    二叉树的实现,包括各种遍历-binary tree to achieve, including Traversal
    2022-01-26 08:09:08下载
    积分:1
  • 拟合C++源程序
    针对离散数据的光滑拟合问题,采用C++语言开发了相应的程序,将计算结果与MATLAB进行了比对,验证了程序的有效性,并且该程序的计算效率要更高,并且可以编译成脱离编程环境独立运行的exe,具有较为灵活的工程应用前景。特此分享给各位感兴趣的科研及工程工作者。
    2023-05-11 21:35:03下载
    积分:1
  • adapt the DP to solve the common longest strings(two and one dimension array)
    动态规划的是思想实现,快速查找最长公共字串的问题(二维数组和一维数组的实现)-adapt the DP to solve the common longest strings(two and one dimension array)
    2023-08-24 05:45:03下载
    积分:1
  • err
    用C语言编写的谭号强课后习题的部分解答,较参考书上使用,简单,易于理解,非常适合初学者。-err
    2022-06-21 13:22:14下载
    积分:1
  • Tutorial on data access using store procedure for MSSQL
    Tutorial on data access using store procedure for MSSQL
    2022-03-23 16:33:42下载
    积分:1
  • 一个的实验报告的小程序.用c++写的.
    一个数据结构的实验报告的小程序.用c++写的.-a data structure of the small experimental procedures. Using c writes.
    2022-03-24 11:17:00下载
    积分:1
  • 实验报告等综合内容
    数据结构实验报告等综合内容-comprehensive report contents
    2022-02-21 09:58:02下载
    积分:1
  • 人事档案管理系统(PB)/人事工资管理系统/干部信息管理系统/投标报价与合同管理系统/... 超市......
    人事档案管理系统(PB)/人事工资管理系统/干部信息管理系统/投标报价与合同管理系统/... 超市... -personnel records management system (PB)/human resources management system/cadres Information Management System/bidding and contract management system/... supermarkets ...
    2022-05-18 21:20:20下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载