登录
首页 » Windows开发 » Josephus write a problem solving function. With the sequence of integers 1, 2, 3...

Josephus write a problem solving function. With the sequence of integers 1, 2, 3...

于 2022-04-13 发布 文件大小:714.00 B
0 113
下载积分: 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 个回复

  • bos物流项目
    主要技术,采用的传统框架struts 2 、spring 、hibernate,页面采用easyui,后台用到 hession远程调用客户服务crm系统,shiro框架做的认证和授权,activiti工作流做的自动分单和业务流转,工具eclipse,服务器用到tomcat、
    2022-04-07 02:17:10下载
    积分:1
  • 农历200年的算法。。。C语言写的
    农历200年的算法。。。C语言写的
    2022-01-26 03:05:59下载
    积分:1
  • 一套用windowsAPI底层函数的参考资料,主要用VB参考
    一套用windowsAPI底层函数开发的参考资料,主要用VB开发参考-A set of functions with windowsAPI underlying the development of reference materials, mainly used VB Developer
    2023-01-20 13:05:03下载
    积分:1
  • 课程计算器
    使用户能够将设备添加到他的臣民的班组 (一般加权平均) 计算器。它计算用户将输入为他的班组。
    2022-02-14 06:29:16下载
    积分:1
  • 使用delphi的指示灯控件
    使用delphi开发的指示灯控件-use development, the light control
    2022-03-02 00:30:08下载
    积分:1
  • Volume Manipulation Classes 操纵音量的类
    Volume Manipulation Classes 操纵音量的类-Volume Manipulation manipulation of the volume category
    2023-06-23 06:30:05下载
    积分:1
  • AD3080测距
    得益于传感器、执行机构、处理器等技术的进步以及相关成本的减少,结合这部分的优点,使得半自动和全自动的多旋翼飞行器的建造成为可能。由于对自主系统存在不同的定义,这里理解为能够在没有任何外部设备的情况下能够完全独立运行其所有功能的系统。相比于使用GPS或光学跟踪摄像机定位的系统,称为半自主系统更合适,因为其需要依赖外部设备或信号。而自主系统能够在未知和没有GPS的环境下运行,例如室内、洞穴、隧道或者其它没有精确GPS信号可用的地方。已有的实现自主系统的不同方法有使用超声波、红外、激光雷达、立体摄像机或者微软的Kinetic相机。每一种都有自己的缺点,比如可靠性、价格、重量和大小。对于可靠性来说,多传感器系统才是主流,而且基于摄相机的系统会得益于更轻的重量、更便宜的价格和更小的体积。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-11-13 17:45:04下载
    积分:1
  • 不规则界面程序VC示例工程源码,如果你只能制作传统的举行程序界面,可以参考一下这个...
    不规则界面程序VC示例工程源码,如果你只能制作传统的举行程序界面,可以参考一下这个-Irregular interface VC sample program source code works, if you only held the production of the traditional program interface, you can refer to this
    2022-05-09 14:35:00下载
    积分:1
  • 修改exe导入表vc++源代码,与汇编的源码不同!
    修改exe导入表vc++源代码,与汇编的源码不同!-revised table vc source code, compile the source code with different!
    2023-04-19 19:05:03下载
    积分:1
  • masm集成环境...提供可视化的操作界面
    masm集成开发环境...提供可视化的操作界面-Integrated Development Environment ... masm Visualized provide interface ..
    2022-03-18 11:04:48下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载