-
约瑟夫环
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
-
本程序通过用递归调用的方法实现了汉诺塔问题,这是一个通用的程序,通过输入的层数结果输入到一个out.txt的文件中...
本程序通过用递归调用的方法实现了汉诺塔问题,这是一个通用的程序,通过输入的层数结果输入到一个out.txt的文件中-This procedure by using the method of recursive calls a Tower of Hanoi problem, which is a common procedure, the results by entering into the layers of a document out.txt
- 2022-07-26 21:39:55下载
- 积分:1
-
很好的asp参考手册,可以看看对asp的学习者有很大的帮助的
很好的asp参考手册,可以看看对asp的学习者有很大的帮助的-Asp very good reference manual, you can see on the asp learners have a lot of help
- 2022-07-12 17:11:04下载
- 积分:1
-
扫描线算法中的一种,在vb下运行,比较好用
扫描线算法中的一种,在vb下运行,比较好用-scan lines of an algorithm, vb running, the better quality
- 2023-02-25 05:25:03下载
- 积分:1
-
计算时间,日期的函数. 大家可以下载后直接使用。 在C 下面的共通函数。...
计算时间,日期的函数. 大家可以下载后直接使用。 在C 下面的共通函数。-calculated time, date functions. Members can download directly after use. C in the following common function.
- 2022-01-31 09:52:29下载
- 积分:1
-
数字滤波器 labview程序
数字滤波器 labview程序-Digital Filter
- 2022-02-13 17:20:33下载
- 积分:1
-
简单的电子时钟程序
简单的电子时钟程序-simple electronic clock procedures
- 2022-12-22 09:10:02下载
- 积分:1
-
快速FFT变换,C语言的,比较好用,我没试过
快速FFT变换,C语言的,比较好用,我没试过-Fast FFT transform, C language, comparative ease of use, I have not tried
- 2022-01-26 04:26:01下载
- 积分:1
-
一个大师仿PowerBuilder开发优化界面程序…
powerbuilder开发的一个仿优化大师的界面的一个程序源代码。不知道有人喜欢吗?-PowerBuilder development of a master of imitation optimize the interface a program"s source code. Do not know that people like?
- 2022-07-18 19:52:57下载
- 积分:1
-
visio software development kit(sdk)这是visio开发包,包含文档和例子,值得研究...
visio software development kit(sdk)这是visio开发包,包含文档和例子,值得研究-visio software development kit (sdk) This is the vi sio development kits, containing documentation and examples worth studying
- 2022-02-25 04:14:59下载
- 积分:1