-
本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺...
本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺序时针方向自1开始顺序报数,报道m时停止报数,报m的人处列将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。
演示程序以用户和计算机的对话方式执行,即在计算机终端上显示“提示信息”下,用户输入循环人数n和每人的密码。-This procedure description specifically for Joseph problem: The serial number is 12, ... The n n individual surrounds the ready-made one circle according to the clockwise sense , each person holds (positive integer) a password, one positive integer beginning to assume a post of selections is upper limits ms numbering off, direction starts the hour hand beginning from the first people according to order from 1 numbering off in proper order , stop numbering off when reporting m, the person place column reporting m looks on his password as new m value , the individual begins to number off again from 1 , getting down like this from his time as soon as going ahead in clockwise sense, until proprietor all till leaving self s place in the ranks.
- 2022-10-13 13:15:03下载
- 积分:1
-
采用C#开发语言,使用API应用程序接口函数,实现视频监控功能,包含录制视频,视频拍照等功能。
采用C#开发语言,使用API应用程序接口函数,实现视频监控功能,包含录制视频,视频拍照等功能。
- 2022-12-14 08:00:03下载
- 积分:1
-
C读取arcinfo数据源程序,希望对大家有所帮助
C读取arcinfo数据源程序,希望对大家有所帮助-C ArcInfo read data source, and I hope to help everyone
- 2022-03-12 09:54:12下载
- 积分:1
-
获取系统内存、磁盘空间使用情况等信息
获取系统内存、磁盘空间使用情况等信息-access to system memory, disk space usage and other information
- 2022-01-31 18:30:40下载
- 积分:1
-
VC++语法分析工具源代码附说明的文档
VC++语法分析工具源代码附说明的文档
-VC++ grammar analysis tool attached to the document source code
- 2022-04-16 12:07:39下载
- 积分:1
-
汉诺塔,一个游戏,玩完便是世界末日,是由一个和尚发明的...
汉诺塔,一个游戏,玩完便是世界末日,是由一个和尚发明的-Tower of Hanoi, a game
- 2022-05-28 10:28:03下载
- 积分:1
-
ga优化神经网权值&阈值程序。
优化的基本原理和过程很多论文可以查到...
ga优化神经网权值&阈值程序。
优化的基本原理和过程很多论文可以查到-ga optimizing neural network weights
- 2023-02-16 15:35:04下载
- 积分:1
-
软件定义网络
软件定义网络 (SDN) 是一种新兴的体系结构,看来动态、 易管理、 性价比高,适应性强,寻求适合当今的应用程序的高带宽、 动态性质。SDN 体系结构解耦网络控制及转发功能,使网络控制成为直接可编程和底层基础架构,从应用程序和网络服务中抽象出来。
- 2022-03-04 08:33:24下载
- 积分:1
-
重新启动和关闭电脑
重新启动和关闭电脑-restart and shut down computers
- 2022-07-17 21:41:36下载
- 积分:1
-
航班基本信息:航班号、航线起始站、航线终点站、飞行时间(星期几)、成员订额、票价...
航班基本信息:航班号、航线起始站、航线终点站、飞行时间(星期几)、成员订额、票价-flights basic information : Flight, the starting point routes, the flight destination, flight time (the week). members set amount of the fare
- 2022-01-26 03:37:51下载
- 积分:1