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

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

于 2022-12-02 发布 文件大小:592.00 B
0 176
下载积分: 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 个回复

  • 遍历文件郏.rar
    遍历文件郏.rar-traverse document. Rar
    2022-03-16 12:34:45下载
    积分:1
  • 基于OpenCV的SIFT实现中的kd-tree改进算法BBF算法
    BBF(Best Bin First)是一种改进的k-d树最近邻查询算法。从前两篇标准的k-d树查询过程可以看出其搜索过程中的“回溯”是由“查询路径”来决定的,并没有考虑查询路径上数据点本身的一些性质。BBF的查询思路就是将“查询路径”上的节点进行排序,如按各自分割超平面(称为Bin)与查询点的距离排序。回溯检查总是从优先级最高的(Best Bin)的树节点开始。另外BBF还设置了一个运行超时限制,当优先级队列中的所有节点都经过检查或者超出时间限制时,算法返回当前找到的最好结果作为近似的最近邻。采用了best-bin-first search方法就可以将k-d树扩展到高维数据集上。
    2023-06-14 06:35:04下载
    积分:1
  • DelphiX 编程控件
    DelphiX 编程控件-DelphiX Control Programming
    2022-02-01 09:03:27下载
    积分:1
  • the VB6 program is prepared for the major cities throughout the meteorological p...
    本程式是用VB6编写的用以全国各地主要城市的气象参数的查询。-the VB6 program is prepared for the major cities throughout the meteorological parameters of the inquiry.
    2022-01-25 19:48:15下载
    积分:1
  • 可用仿真视频质量的软件,可与NS相结合使用,对工程和学术研究都十分有用.
    可用仿真视频质量的软件,可与NS相结合使用,对工程和学术研究都十分有用.-Video quality available simulation software, can be used in conjunction with the NS phase, the engineering and academic research are very useful.
    2023-02-19 01:35:04下载
    积分:1
  • php环境
    php开发环境,简单的php开发环境搭建,一键安装php,mysql,qpqche,phpmyadmin,不需需改,就可使用php开发环境,简单的php开发环境搭建,一键安装php,mysql,qpqche,phpmyadmin,不需需改,就可使用
    2022-03-07 04:28:06下载
    积分:1
  • C++ FAQs 经典著作~此为英文原版的第二版,学习C++不应错过~
    C++ FAQs 经典著作~此为英文原版的第二版,学习C++不应错过~-C++ FAQs classics ~ This is the second edition of the English original, learning C++ should not be missed ~
    2022-04-13 05:59:06下载
    积分:1
  • AC-FTP控制程序源代码acftp_2.1.zip-AC-FTP control of the source code acftp_2.1.zip
    2023-07-19 04:05:04下载
    积分:1
  • hi hi hi hi hi hi hi hi
    hi hi hi hi hi hi hi hi -hi hi hi hi hi hi hi hi hi hi hi hi hi hi
    2023-06-24 21:05:02下载
    积分:1
  • 得到文件驱动器、路径、扩展名等信息
    得到文件驱动器、路径、扩展名等信息-The example of getting dirver , path and extension of file
    2022-06-12 06:28:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载