the output is :7/8 can some-one Explain???
No! It is easy to see that keys 11 & 15 each hash to the same bucket as one of the previous keys, as the buckets used number doesn't increase when they are added:
$hash{ $_->[0] } = $_->[1] and print "@$_\t", scalar keys %hash, scala
+r %hash
for [1,2],[3,4],[5,6],[7,8],[9,10],[11,12],[15,16],[22,34],[88,99]
+;;
1 2 1 1/8
3 4 2 2/8
5 6 3 3/8
7 8 4 4/8
9 10 5 5/8
11 12 6 5/8 *
15 16 7 5/8 *
22 34 8 6/8
88 99 9 7/8 ???
But why the size of the hash was not doubled when the key count equalled the number of buckets is not clear. It seems to suggest that this is also not the complete story here?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
|