-
本程序针对约瑟夫问题的描述:编号为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
-
中国象棋游戏
象棋是一款比较有智商的游戏。适合现代人的娱乐需求,尤其是网络对战,更是大快人心。。
- 2022-09-23 01:40:04下载
- 积分:1
-
vc++6.0插件,对程序员很好,帮助完成代码编写!
vc++6.0插件,对程序员很好,帮助完成代码编写!-vc++ 6.0 plug-in, for good programmers to help complete coding!
- 2022-01-29 00:35:40下载
- 积分:1
-
网贷源码,在线贷款源码
网贷源码,在线贷款源码网贷源码,在线贷款源码网贷源码,在线贷款源码网贷源码,在线贷款源码网贷源码,在线贷款源码网贷源码,在线贷款源码网贷源码,在线贷款源码
- 2022-04-13 11:51:02下载
- 积分:1
-
matlab下实现裂纹识别
图11是原图,可得到是预处理之后的二值化化图像,可以看出图中主要有三条裂纹,应用此代码可以检测出图中存在的裂纹,并进行标记。主要工作为应用数字图像处理技术对裂缝图像进行实时 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-06 15:01:31下载
- 积分:1
-
此软件是基于VB开发的图书管理软件,希望和大家一起分享
此软件是基于VB开发的图书管理软件,希望和大家一起分享-This software is based on the VB development of library management software, hope and share with everyone
- 2022-10-09 00:45:02下载
- 积分:1
-
提高教师的有效性和提高学习者包括客户保留…
Enhance instructor effectiveness and improve learner retention by including custom simulations and games in virtual classrooms
- 2022-01-31 17:03:55下载
- 积分:1
-
players AVI animation, a small handy
播放AVI动画,小巧好用-players AVI animation, a small handy
- 2023-02-10 23:50:03下载
- 积分:1
-
View disk partition information of the C language source code. Zip
查看磁盘分区信息的 C 语言源代码.zip-View disk partition information of the C language source code. Zip
- 2023-01-09 00:25:03下载
- 积分:1
-
A Delphi history manager for self use only.Compiled under Delphi 2007 and VCLSki...
这是本人写的一个简单的Delphi打开历史文件清理软件,现在Delphi 2010已经有了这个功能了,不过如果你机器上装了多个的版本,不妨还是可以做为一个小工具使用的。编译此工程需要Delphi2007及VCLSkin5.4。如果没有vclskin,则打开工程时,可以把Tskindata组件删除。-A Delphi history manager for self use only.Compiled under Delphi 2007 and VCLSkin 5.4 required.If not installed vclskin components just delete TSkinData component.
- 2022-05-27 04:47:47下载
- 积分:1