-
约瑟夫环
1. 本演示程序利用一循环链表,每个结点为一人,类似将人按顺时针方向围坐一圈,每个结点包括,号码,密码.号码是作为排的顺序.密码用来作为下一次报数...
约瑟夫环
1. 本演示程序利用一循环链表,每个结点为一人,类似将人按顺时针方向围坐一圈,每个结点包括,号码,密码.号码是作为排的顺序.密码用来作为下一次报数的数字.当走到结尾时,再下个结点便循环回去,依此类推.
2. 演示程序以用户与计算机的对话方式执行,用户输入相应的数据,输出结果显示在其后。,即总结点数,和密码.
3. 程序执行的命令包括:1)创建链表 2)寻找结点 3)删除结点
4. 测试数据测试数据:m初始值20,n=7,7个人密码依次为:3,1,7,2,4,8,4。首先m值为6,正确出列顺序为6,1,4,7,2,3,5。
-Josephus 1. The demonstration program using a chain cycle, each node to a person, similar to a clockwise direction by people sitting circle, and each node include numbers, Password. As the number is the sequence. used as a password the next few reported figures. When reached at the end, the next nodes will cycle back, and so forth. 2. Demonstration Program to computer users with implementation of the dialogue, the corresponding user input data and output results in later. , Summed up the quota, and password. 3. Procedures for the implementation of the order include : 1) Create List 2) Find node 3) delete nodes 4. test data test data : the initial value of 20 m, n = 7, 7 PIN followed : 3,1,7,2,4,8,4. M value fo
- 2022-07-24 02:51:37下载
- 积分:1
-
TFTTEST
说明: 这只是一个空的项目工程,MCU IC为STM32F103ZCT6(144PIN),为方便建项目工程提供方便。(This is only an empty project. MCU IC provides convenience for STM32F103ZCT6 (144PIN) to facilitate the construction of the project.)
- 2020-06-20 15:00:01下载
- 积分:1
-
Delphi毕业论文:分布式多层数据库图书管理系统
Delphi毕业论文:分布式多层数据库图书管理系统,通过开发一个分布式多层数据库图书管理系统,学习用delphi开发分布式多层数据库系统。采用Delphi6.0和MS Server2000等软件为开发工具;通过对计算机硬件和软件解决方案的论证;对应用领域进行调查分析;参考各种资料和进行数据库编程实践。在指导老师的帮助下,已经基本上成功地实现了设计任务书的要求。使得设计的数据库系统能够实现一般数据库的管理。我们研究了数据库的查询优化问题。
- 2022-08-19 10:40:41下载
- 积分:1
-
21点算法,非常不错,值得初学者研究,
21点算法,非常不错,值得初学者研究,-21:00 algorithm, very good, worthy of study for beginners,
- 2023-04-13 20:35:03下载
- 积分:1
-
c_adv_prog_ppt
数学与信息科学学院,C语言学习——高级进阶C语言学习高级教程(School of Mathematics and Information Science, C language learning- Senior Advanced C language learning advanced tutorials)
- 2014-04-01 15:21:28下载
- 积分:1
-
BRdataosha
说明: PHP网页游戏 BR大逃杀 生存游戏 开源源码(PHP Web Game BR Big Escape Survival Game Open Source)
- 2020-11-19 14:39:37下载
- 积分:1
-
doban250.py
使用Python编写的豆瓣最佳250影片爬虫(Best 250 films of Douban Reptiles)
- 2020-06-21 05:40:02下载
- 积分:1
-
教程每一个章节的代码实例pajek数据
pajek 教程每一个章节的代码实例,适合初学者学习(data and extras,appendix,chapter1,chapter2,chapter3,chapter4)
- 2020-07-09 09:28:55下载
- 积分:1
-
HighSeismicZones
桥梁电子杂志,内容较为丰富,希望对大家有所帮助(Bridges E-zine, the content is more rich in hope to help everyone)
- 2008-07-25 00:11:03下载
- 积分:1
-
第三次作业
说明: 这个是爬虫代码,希望大家可以喜欢收藏,不胜感激(This is the crawler code. I hope you enjoy collecting it. Thank you very much.)
- 2020-06-19 00:00:02下载
- 积分:1