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

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

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

  • 曲线类型图
    主要用来画地球物理勘探专业的测深(瞬变电磁,大地电磁,激发极化测深,复频激电,甚低频等等)电阻率的曲线类型图;操作简便,易于观察,可以生成矢量化图片与surfer,grapher等软件进行交换处理。
    2022-02-21 07:40:32下载
    积分:1
  • good is very nice program but i dont understand it
    good is very nice program but i dont understand it
    2022-10-18 12:00:03下载
    积分:1
  • 一个用于生成文本文件的小程序,很浅显的C++程序
    一个用于生成文本文件的小程序,很浅显的C++程序-Text file used to generate a small program, it is simple C++ Procedures
    2023-07-24 12:25:03下载
    积分:1
  • Simple movie database
    这是一个电影数据库程序。我真的不知道我还应该放些什么。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
    2022-08-10 00:09:14下载
    积分:1
  • Windows语音识别程序
    利用windows本身的库函数和API实现语音识别功能。用于实现人机口语对话的系统。受目前技术所限,对话系统往往是面向一个狭窄领域、词汇量有限的系统,其题材有旅游查询、订票、数据库检索等等。其前端是一个语音识别器,识别产生的N-best候选或词候选网格,由语法分析器进行分析获取语义信息,再由对话管理器确定应答信息,由语音合成器输出。由于目前的系统往往词汇量有限,也可以用提取关键词的方法来获取语义信息。
    2023-05-03 21:40:02下载
    积分:1
  • c#获取网页中所有链接地址
    通过正则表达式,获取网页源代码,然后通过正则表达式获取其中中所有链接地址。
    2022-04-10 01:43:21下载
    积分:1
  • wince EVC 简单的图片浏览功能,自已随意扩展 支持 *.bmp *.jpg *.gif *.png 等等 // TODO: Add yo...
    wince EVC 简单的图片浏览功能,自已随意扩展 支持 *.bmp *.jpg *.gif *.png 等等 // TODO: Add your control notification handler code here CString defFilter("选中其中一个文件|*.bmp *.jpg *.gif *.png") CFileDialog dlg(TRUE,NULL,NULL,OFN_ALLOWMULTISELECT,defFilter) if(dlg.DoModal()==IDOK){ PathName=dlg.GetPathName() }-wince EVC simple picture browsing, support the expansion of their own free*. bmp*. jpg*. gif*. png, etc.// TODO: Add your control notification handler code hereCString defFilter (
    2023-04-14 17:00:03下载
    积分:1
  • Endless flight
    在无尽的飞行3主屏幕:StartScreen和PlayScreen主屏幕。该机制采用有限状态机(FSN),简化了屏幕间的切换,减少了无止境飞行中的错误。每个
    2022-12-30 22:10:05下载
    积分:1
  • opc ua 基于.net的
    这个是一个关OPC UA 基于.NET环境下开发的核心元代吗。
    2023-06-19 18:35:13下载
    积分:1
  • about administer procedures curriculum design
    约契夫约程序课程设计-about administer procedures curriculum design
    2022-05-07 02:31:04下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载