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

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

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

  • API为抓屏
    应用背景如果你编译这个文件,它会保存你的桌面图像,现在。关键技术截图,图像捕捉,立即。如果你应用这个,你可以开发屏幕捕捉程序
    2022-01-26 06:01:43下载
    积分:1
  • C #程序
    2022-05-18 05:14:32下载
    积分:1
  • 纯文本转PDF格式
    一个纯文本(Text)转换成PDF格式 的 C++ 实例,简单实用,欢迎选用。   
    2023-01-30 13:15:03下载
    积分:1
  • 仿3dsmax界面及基本操作, 自我感觉界面和用户交互做得还可以
    仿3dsmax界面及基本操作, 自我感觉界面和用户交互做得还可以-imitation 3dsmax interface and basic operation, a sense of self, interactive user interface and can also do
    2022-02-04 07:43:17下载
    积分:1
  • fmincon函数代码,点击直接运行结果,最小值求解程序MATLAB
    Matlab最小值求解程序;里面有案例;点击直接使用;根据代码直接套用修改后,就可以进行模型求解;此代码可以类似用于所有最优解的求解程序太用。你值得拥有!另外有任何问题,可以联系本人手把手教会
    2022-04-06 11:02:00下载
    积分:1
  • 复合管OCL甲乙类互补对称电路 Composite pipe OCL class AB complementary symmetry circuit...
    复合管OCL甲乙类互补对称电路 Composite pipe OCL class AB complementary symmetry circuit-Composite pipe OCL class AB complementary symmetry circuit
    2022-03-12 12:44:55下载
    积分:1
  • 获取心率的测试代码
    通过定时器中断和外部中断获取心率的次数,使用的是飞思卡尔的低功耗芯片MKL25平台。这个只是测试代码,提供一个测试方式。
    2022-08-11 10:51:33下载
    积分:1
  • 频谱分析软件:利用VC6.0和matlab两个软件联合开发的,运行起来很不错的,是Vc调用matcom里面的fft函数来实现了,速度很快,精度很高。...
    频谱分析软件:利用VC6.0和matlab两个软件联合开发的,运行起来很不错的,是Vc调用matcom里面的fft函数来实现了,速度很快,精度很高。-Spectrum analysis software: Using VC6.0 and matlab software jointly developed by two, up and running very good, is inside Matcom Vc call fft function to achieve a fast, high precision.
    2023-05-09 15:35:02下载
    积分:1
  • udp通信客户端程序
    应用背景 AppWizard has created this udpClient application for you.  This file contains a summary of what you will find in each of the files that make up your udpClient application. udpClient.dsp     This file (the project file) contains information at the project level and     is used to build a single project or subproject. Other users can share the     project (.dsp) file, but they should export the makefiles locally. udpClient.cpp     This is the main application source file. 关键技术 ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp     These files are used to build a precompiled header (PCH) file     named udpClient.pch and a precompiled types file named StdAfx.o
    2022-02-13 21:01:13下载
    积分:1
  • 浏览pe格式的字符串资源! 很特别
    浏览pe格式的字符串资源! 很特别-View pe format string! Very special
    2022-01-26 02:18:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载