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

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

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

  • MFC THREAD的类继承使用的 例子
    MFC THREAD的类继承使用开发的 例子-MFC THREAD class inheritance example of the use of the development ~~~~~~~~~~~~~~~~~~
    2022-01-30 11:14:41下载
    积分:1
  • javascript实现的一个工作流图形编辑器,还需完善
    javascript实现的一个工作流图形编辑器,还需完善-javascript realize a graphical workflow editor, needs to be perfect
    2022-02-21 02:30:22下载
    积分:1
  • IE风格工具条,定时关机
    IE风格工具条,定时关机-IE style tools, Mytob.BSNotes
    2022-02-15 20:50:15下载
    积分:1
  • GDI+使用动态prodigy.com
    GDI+ using dynamic prodigy.com
    2022-03-22 08:30:10下载
    积分:1
  • 微分进化算法
    differential evolution 源码。用c++实现的实数型编码方案,并且改进了差分因子和突变因子的表达形式。非常适合初学者使用。                                                                                                                                        
    2022-04-13 06:41:58下载
    积分:1
  • 基于VC6.0串口调试助手
    基于VC++6.0的串口调试助手,适合菜鸟学习串口通信,或者上位机编程入门级资源!此串口调试助手,串口设置可以手工设置,数据显示格式有十进制和十六进制,当然还有正常显示的字符格式。发送格式,可以是字符发送方式,也可以选择十六进制发送方式。可以选择自动发送,发送周期可以手工设置。界面上还有显示发送和接收字符个数计数器。非常适合上位机入门学习参考!
    2022-10-06 07:20:03下载
    积分:1
  • 几何变换是最常见的图像处理手段,通过对变形的图像进行几何校正,可以得出准确的图像。常用的几何变换功能包括图像的平移、图像的镜像变换、图像的转置、图像的缩放、图像...
    几何变换是最常见的图像处理手段,通过对变形的图像进行几何校正,可以得出准确的图像。常用的几何变换功能包括图像的平移、图像的镜像变换、图像的转置、图像的缩放、图像的旋转等等。目前数字图像处理的应用越来越广泛,已经渗透到工业、航空航天、军事等各个领域,在国民经济中发挥越来越大的作用。 作为数字图像处理的一个重要部分,本文介绍的工作是如何用Visual C++编程工具设计一个完整的应用程序,实现经典的图像几何变换功能。程序大概分为两大部分:读写BMP图像,和数字图像的几何变换。即首先用Visual C++创建一个多文档应用程序框架,在实现任意BMP图像的读写,打印,以及剪贴板操作的基础上,完成经典的图像几何变换功能。 -geometric transformation is the most common means of image processing, image deformation of geometric correction, can be an accurate picture. Transform common geometric features include image translation, the mirror image transform, image transfer home, image scaling, image rotation and so on. Current digital image processing applications have become wider, and have penetrated into the industrial, aerospace, military and other areas, the national economy will play an increasingly larger role. Digital image processing as a vital part of the work presented in this paper is how to use Visual C programming tools to design a complete application procedures and achieve the classic i
    2022-03-20 04:33:00下载
    积分:1
  • 用asp编写的一个用于数据库管理的小系统,欢迎各位多多执教...
    用asp编写的一个用于数据库管理的小系统,欢迎各位多多执教-used for the preparation of a database management system of small, welcome you coached a lot
    2022-06-21 05:32:53下载
    积分:1
  • wince5.0 keyboard hook
    WINCE5.0 下键盘鼠标钩子源码 注:WINCE6下貌似不能用-wince5.0 keyboard hook
    2022-04-20 11:03:59下载
    积分:1
  • C编写的服务端程序
    C编写的服务端程序-Server-side program written in C
    2022-10-01 05:35:04下载
    积分:1
  • 696518资源总数
  • 105678会员总数
  • 22今日下载