<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-5%3Akkan048</id>
	<title>SE250:lab-5:kkan048 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-5%3Akkan048"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-5:kkan048&amp;action=history"/>
	<updated>2026-04-28T23:52:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-5:kkan048&amp;diff=6586&amp;oldid=prev</id>
		<title>Mark: 21 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-5:kkan048&amp;diff=6586&amp;oldid=prev"/>
		<updated>2008-11-03T05:19:48Z</updated>

		<summary type="html">&lt;p&gt;21 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is my testing condition.&lt;br /&gt;
  int sample_size = 300;&lt;br /&gt;
  int n_keys = 1000;&lt;br /&gt;
  int table_size = 100;&lt;br /&gt;
&lt;br /&gt;
Sample_size can not be too low/high.If it is too low/high,the results between different function will not be shown.&lt;br /&gt;
&lt;br /&gt;
buzhash is a most common hash function.So i think it is a high standard function in the test.&lt;br /&gt;
buzhash has a Entropy greater than 7 just after sample_size 300.&lt;br /&gt;
So i choose 300 as a sample size.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SAMPLE SIZE 300&lt;br /&gt;
&lt;br /&gt;
In  Typical entropy source,&lt;br /&gt;
                                   buzhash     buzhashn   hash CRC   base256   &lt;br /&gt;
Entropy               :            7.258579    7.392708   6.288118   3.901501&lt;br /&gt;
Optimum compression:               9%          7%         21%         51%&lt;br /&gt;
Chi square:                        25.00%      99.00%     0.01%       0.01%&lt;br /&gt;
Arithmetic mean:(127.5 = random)   127.6200    122.2267   101.9633    103&lt;br /&gt;
Monte Carlo error:                 6.95%       4.41%      4.41%       27.32%&lt;br /&gt;
Serial correlation coefficient:    0.030493    0.035384   0.072278    0.282614&lt;br /&gt;
(totally uncorrelated = 0.0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In  Low entropy source,&lt;br /&gt;
&lt;br /&gt;
                                   buzhash     buzhashn   hash CRC   base256   &lt;br /&gt;
Entropy               :            7.348095    7.392708   3.614340   0.000000&lt;br /&gt;
Optimum compression:               8%          7%         54%        100%&lt;br /&gt;
Chi square:                        75.00%      99.00%     0.01%      0.01%&lt;br /&gt;
Arithmetic mean:(127.5 = random)   131.6200    122.2267   94.1633    97&lt;br /&gt;
Monte Carlo error:                 3.23%       4.41%      27.32%     27.32%&lt;br /&gt;
Serial correlation coefficient:   -0.083985    0.035384  -0.386868   all values equal!&lt;br /&gt;
(totally uncorrelated = 0.0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unix Random Number Generator&lt;br /&gt;
&lt;br /&gt;
SAMPLE SIZE 300&lt;br /&gt;
&lt;br /&gt;
In  Typical entropy source,&lt;br /&gt;
                                   Rand        high_rand   &lt;br /&gt;
Entropy of the output :            7.258579    7.392708   &lt;br /&gt;
Optimum compression:               9%          7%         &lt;br /&gt;
Chi square:                        25.00%      99.00%     &lt;br /&gt;
Arithmetic mean:(127.5 = random)   127.6200    122.2267   &lt;br /&gt;
Monte Carlo error:                 6.95%       4.41%      &lt;br /&gt;
Serial correlation coefficient:    0.030493    0.035384   &lt;br /&gt;
(totally uncorrelated = 0.0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In  Low entropy source,&lt;br /&gt;
&lt;br /&gt;
                                   Rand        high_rand&lt;br /&gt;
Entropy of the output :            7.317278    7.247632   &lt;br /&gt;
Optimum compression:               8%          9%         &lt;br /&gt;
Chi square:                        50.00%      25.00%     &lt;br /&gt;
Arithmetic mean:(127.5 = random)   108.3600    128.2033   &lt;br /&gt;
Monte Carlo error:                 14.59%       0.69%      &lt;br /&gt;
Serial correlation coefficient:    -0.041849   0.010037 &lt;br /&gt;
(totally uncorrelated = 0.0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I am still looking at the randomness meaning of the individual output parameters.&lt;br /&gt;
So i just rank them in 3 group.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rank 1:buzhash,buzhashn,UNRG&lt;br /&gt;
Rank 2:hash CRC&lt;br /&gt;
Rank 3:base256&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>