-
约瑟夫环
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
-
进程之间以时间片为单位,进行唤醒,调用,当时间片到后,进程就进入等待队列,而且是按优先级进行调用。...
进程之间以时间片为单位,进行唤醒,调用,当时间片到后,进程就进入等待队列,而且是按优先级进行调用。-processes with time-unit, awakened, called when time-to the post, the process would enter the waiting queue, but is carried out according to priority calls.
- 2022-01-24 17:41:48下载
- 积分:1
-
OPC的源码!不过是1.0的!仅供学习!
OPC的源码!不过是1.0的!仅供学习!-OPC source! But is 1.0! Only learning!
- 2022-01-25 22:48:22下载
- 积分:1
-
学生信息管理,简单登录界面设计(java),图形设计初步,简单小程序...
学生信息管理,简单登录界面设计(java),图形设计初步,简单小程序-Student information management, interface design a simple login (java), the initial graphic design, a simple applet
- 2022-05-12 18:49:46下载
- 积分:1
-
关于编译原理的学习内容,
《编译原理(第3版)》
关于编译原理的学习内容,
《编译原理(第3版)》-build on the principle of learning content, "Compiler Principle (3rd edition)"
- 2023-07-19 18:50:07下载
- 积分:1
-
学习和掌握LabvIEW的数据的图形化实时动态显示方法
学习和掌握LabvIEW的数据的图形化实时动态显示方法-To learn and master data LabvIEW graphical real-time dynamic display method
- 2022-10-28 11:40:03下载
- 积分:1
-
Prepared using opengl game tutorials
用opengl编写游戏教程-Prepared using opengl game tutorials
- 2022-08-04 05:16:18下载
- 积分:1
-
是一个很好的数控仿真软件,是一个财政学的学者
是一个很好的数控仿真软件,是数控学者之宝典-is a very good NC simulation software, is a treasury of NC scholars
- 2023-01-03 07:10:08下载
- 积分:1
-
结构设计经典参考资料 详细地介绍了什么是公差 如何处理
结构设计经典参考资料 详细地介绍了什么是公差 如何处理-classic reference design is described in detail what is how to deal with tolerance
- 2022-07-08 19:26:29下载
- 积分:1
-
五子棋站
五子棋单机版、网络版合一,网络版为单人对战,可同时容纳多组在线-Gobang stand-alone version, the network version of unity, the network version of the Single Battle, which can accommodate multiple-line
- 2022-08-06 05:59:15下载
- 积分:1