-
约瑟夫环
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
-
led灯显示与开关控制
资源描述一个关于单片机led灯的实验,有Isis图和编程代码,刚入门的初级人士可以看看
- 2022-01-25 21:00:19下载
- 积分:1
-
将16进制转换成10进制的C语言源码
提供任意位数(包含小数点)的转换,
适合在校大学生C语言课程参考...
将16进制转换成10进制的C语言源码
提供任意位数(包含小数点)的转换,
适合在校大学生C语言课程参考-base for the conversion of 16% of the 10 C-band source of arbitrary median (including decimal point) conversion, suitable for the college students C language courses reference
- 2022-07-22 11:09:54下载
- 积分:1
-
利用fisher算法对数据序列进行有序最优分割。
利用fisher算法对数据序列进行有序最优分割。-using Fisher algorithm to conduct orderly sequence optimal partition
- 2022-03-30 12:35:49下载
- 积分:1
-
CAN 总线波特率及协议标识符数值计算工具
CAN 总线波特率及协议标识符数值计算工具-CAN bus baud rate and agreements numerical identifier tools
- 2022-07-16 22:35:01下载
- 积分:1
-
The JILRunOnly project is a simple command
The JILRunOnly project is a simple command-line application written in ANSI-C that is intended to demonstrate in detail, how the JILRuntime/JewelScript library can be embedded into an application.
- 2022-01-25 23:34:52下载
- 积分:1
-
The program features can be achieved Audition green character of the game server...
本程序功能可以实现劲舞团服务器的游戏绿字公告效果,效果十分出色-The program features can be achieved Audition green character of the game server announcement effect, the effect is very good
- 2022-12-01 05:55:04下载
- 积分:1
-
这是数字图像处理的教程,有专门的系统相比,PDF…
这是数字图像处理的教程,比较专用与系统,pdf格式-This is the Digital Image Processing Guide, compared with dedicated systems, pdf format
- 2022-05-28 08:04:06下载
- 积分:1
-
Simple Sokoban game, just by the arrow keys to control the
简单的推箱子游戏, 只需通过方向键来控制-Simple Sokoban game, just by the arrow keys to control the
- 2022-03-14 13:21:33下载
- 积分:1
-
一个图书销售管理的例子,使用access数据库,其中有编辑、更新、查找等功能,适合初学者下载学习。...
一个图书销售管理的例子,使用access数据库,其中有编辑、更新、查找等功能,适合初学者下载学习。-An example of book sales management, using access databases, including editing, update, search and other functions, suitable for beginners to learn to download.
- 2022-04-09 22:36:15下载
- 积分:1