登录
首页 » Windows开发 » 约瑟夫斯写的问题解决功能。用整数序列的1,2,3…

约瑟夫斯写的问题解决功能。用整数序列的1,2,3…

于 2022-12-02 发布 文件大小:592.00 B
0 34
下载积分: 2 下载次数: 1

代码说明:

编写一个求解Josephus问题的函数。用整数序列1, 2, 3, ……, n表示顺序围坐在圆桌周围的人。然后使用n = 9, s = 1, m = 5,以及n = 9, s = 1, m = 0,或者n = 9, s = 1, m = 10作为输入数据,检查你的程序的正 确性和健壮性。最后分析所完成算法的时间复杂度。定义JosephusCircle类,其中含完成初始化、报数出圈成 员函数、输出显示等方法。-Josephus write a problem solving function. With the sequence of integers 1, 2, 3, ... ..., n the order of sitting around the round table, said the people around. And then use n = 9, s = 1, m = 5, and n = 9, s = 1, m = 0, or n = 9, s = 1, m = 10 as input data, check the correctness of your program and robustness. Completed the final analysis, the algorithm" s time complexity. Definition JosephusCircle class, which included the completion of initialization, reported that the number of member functions of a circle, the output display and other methods.

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

发表评论

0 个回复

  • Visual C++ programming 100 examples
    Visual C++实效编程百例yuanma-Visual C++ programming 100 examples
    2023-05-10 20:00:03下载
    积分:1
  • amcap 源代码
          资源转载自微软SDK,原始下载地址已经忘记。微软官方开源的 directshow sample code。需要放到windows SDK下面编译,否则需要 debug 和 release 的base库,具体使用方法可以百度。
    2022-03-19 17:37:09下载
    积分:1
  • 新浪投票系统,线下操作,可自动进行ADSL重新拨号,源码
    新浪投票系统,线下操作,可自动进行ADSL重新拨号,源码-Sina voting systems, line operation, can be automatically re-dial-up ADSL, source
    2022-02-03 01:54:14下载
    积分:1
  • This book is designed for experienced C++ software developers, system designers,...
    本书是专为有经验的C++软件的开发者、系统设计师、软件质量保证人员编写的。适合从事大型软件开发工作(如数据库、操作系统、编译程序和框架)的人员阅读。 -This book is designed for experienced C++ software developers, system designers, software quality assurance personnel prepared. Suitable for large-scale software development work (such as databases, operating systems, compiler and frameworks) who are reading.
    2022-12-01 06:35:04下载
    积分:1
  • 这是我第一个delphi程序 是一个播放器和图片处理的组合
    这是我第一个delphi程序 是一个播放器和图片处理的组合-This is my first one delphi procedure is a player and photo processing portfolio
    2022-08-16 07:22:54下载
    积分:1
  • 15-puzzle(Game of Fifteen)
    15-拼图是滑动拼图包含一帧的编号正方形瓷砖按随机顺序与一瓷砖丢失。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-14 13:18:05下载
    积分:1
  • ID3算法
    id3算法实现-id3 algorithm
    2022-01-29 04:04:42下载
    积分:1
  • 公路上的汽车流量计数
    本次设计的程序是基于Matlab的应用于道路交通的汽车统计计数的设计,设计思路清晰,设计过程比较合理,也快速的实现了汽车的流量的计数统计,效果良好
    2022-07-14 15:30:59下载
    积分:1
  • BlueSoleil_ PC平台软件工具
    BlueSoleil_ PC平台软件开发工具-BlueSoleil_ PC Platform Software Development Tools
    2022-03-18 01:34:59下载
    积分:1
  • 链表实现约瑟夫环,输入一个环和起始位置,打印出结果。
    链表实现约瑟夫环,输入一个环和起始位置,打印出结果。-List the achievement of Joseph Central, Central, and start to enter a location, print out the results.
    2023-08-20 14:35:02下载
    积分:1
  • 696522资源总数
  • 104029会员总数
  • 31今日下载