-
约瑟夫环
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
-
数据结构与算法(c++)版源代码,很有用!
数据结构与算法(c++)版源代码,很有用!-Data Structures and Algorithms (c++) Version of the source code, very useful!
- 2023-01-10 19:55:02下载
- 积分:1
-
SPI并行Verilog源代码
SPI to parallel verilog source code
- 2022-02-25 10:03:13下载
- 积分:1
-
我编写的一个经典的小游戏--贪食蛇,能够在你的茶余饭后给你带来快乐!...
我编写的一个经典的小游戏--贪食蛇,能够在你的茶余饭后给你带来快乐!-I prepared a classic small game-- Snake, in your leisure to bring you happiness!
- 2022-08-21 07:54:34下载
- 积分:1
-
用C++语言实现艺术的清晰画面
用c语言实现艺术清屏- Realizes the artistic clear screen with the c language
- 2022-03-02 08:44:24下载
- 积分:1
-
用VC编写的dB和功率倍数的转换软件(有源码),虽然很简单,但是很实用...
用VC编写的dB和功率倍数的转换软件(有源码),虽然很简单,但是很实用-Written by VC multiples dB and power conversion software (with source code), although very simple, but very practical
- 2022-06-14 20:10:18下载
- 积分:1
-
Small football games, complete code can freely use perspective .. QUAKE2 to writ...
小足球游戏,代码齐全可以自由视角..利用QUAKE2来写的,非常适合初级游戏开发者学习和研究.-Small football games, complete code can freely use perspective .. QUAKE2 to write, and very suitable for the primary game developers to learn and research.
- 2022-01-22 10:48:21下载
- 积分:1
-
2008 First acm Collegiate Programming Contest Regional Competition in Zhuhai
2008年首届acm大学生程序设计竞赛珠海区域赛――赛题、参考源代码及测试数据-2008 First acm Collegiate Programming Contest Regional Competition in Zhuhai- Race title, reference source code and test data
- 2022-02-13 17:31:11下载
- 积分:1
-
一个时间控制的数字动画,看看你是否感兴趣
一个时间控制的数字动画,看看你是否感兴趣-a time control of digital animation, try to see whether you interested
- 2022-09-20 03:45:03下载
- 积分:1
-
改程序描述了,在vs中数据库的一系列的用法,重数据库的链接,数据库的创建,数据库的访问和数据库视图的建立,数据库修改等基本的过程。不愧为学习数据库的好例子。...
改程序描述了,在vs中数据库的一系列的用法,重数据库的链接,数据库的创建,数据库的访问和数据库视图的建立,数据库修改等基本的过程。不愧为学习数据库的好例子。-Change procedure described in the series vs the usage of the database, re-link to the database, database creation, database access and database view creation, database, modify the basic process. Worthy of study and a good example of the database.
- 2022-02-04 00:48:03下载
- 积分:1