文件名称:MyShuffleTest
介绍说明--下载内容来自于网络,使用问题请自行百度
Suppose we start with N=3 and run the shuffling test four times, resulting in the arrays:
[2, 0, 1]
[2, 1, 0]
[2, 0, 1 ]
(This not very likely, but i s possible) Then the resulting count array would be:
0: 0 3 1
1: 0 1 3
2: 4 0 0
If we normalize by dividing by the number of times we ran the test, then we get
0: 0.000 0.750 0.250
1: 0.000 0.250 0.750
2: 1.000 0.000 0.000
That is:
• element "2" was always in the first position
• element "0" was in the second position 75 of the time and in the third position 25 of the time
• element "1" was in the second position 25 of the time and in the third position 75 of the time
-Suppose we start with N=3 and run the shuffling test four times, resulting in the arrays:
[2, 0, 1]
[2, 1, 0]
[2, 0, 1]
[2, 0, 1]
(This is not very likely, but it is possible) Then the resulting count array would be:
0: 0 3 1
1: 0 1 3
2: 4 0 0
If we normalize by dividing by the number of times we ran the test, then we get
0: 0.000 0.750 0.250
1: 0.000 0.250 0.750
2: 1.000 0.000 0.000
That is:
• element "2" was always in the first position
• element "0" was in the second position 75 of the time and in the third position 25 of the time
• element "1" was in the second position 25 of the time and in the third position 75 of the time
[2, 0, 1]
[2, 1, 0]
[2, 0, 1 ]
(This not very likely, but i s possible) Then the resulting count array would be:
0: 0 3 1
1: 0 1 3
2: 4 0 0
If we normalize by dividing by the number of times we ran the test, then we get
0: 0.000 0.750 0.250
1: 0.000 0.250 0.750
2: 1.000 0.000 0.000
That is:
• element "2" was always in the first position
• element "0" was in the second position 75 of the time and in the third position 25 of the time
• element "1" was in the second position 25 of the time and in the third position 75 of the time
-Suppose we start with N=3 and run the shuffling test four times, resulting in the arrays:
[2, 0, 1]
[2, 1, 0]
[2, 0, 1]
[2, 0, 1]
(This is not very likely, but it is possible) Then the resulting count array would be:
0: 0 3 1
1: 0 1 3
2: 4 0 0
If we normalize by dividing by the number of times we ran the test, then we get
0: 0.000 0.750 0.250
1: 0.000 0.250 0.750
2: 1.000 0.000 0.000
That is:
• element "2" was always in the first position
• element "0" was in the second position 75 of the time and in the third position 25 of the time
• element "1" was in the second position 25 of the time and in the third position 75 of the time
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyShuffleTest/MyShuffleTest.java
MyShuffleTest
MyShuffleTest
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.