Determinacy Checker
Determinacy Checker:
! Syntax error
! operator expected after expression
! in line 1
! #
! <
>
! ! / usr / bin / perl # This program generates a simkey10 '.' dat ( 100 , 1000 , etc ) each # containing 100 random keys of length 10 ( 100 , 1000 , etc ) .
! Syntax error
! operator expected after expression
! in line 5
! #
! <>
! These files can then be fed into keystats to observe that # the time to add or find the keys is directly proportional to # keylength n [ in other words , O ( n ) ] .
! Syntax error
! operator expected after expression
! in line 9
! #
! <>
! # The conclusion is that really long keys ( e '.' g .
! Syntax error
! operator expected after expression
! in line 9
! 100
! <>
! k ) are not # efficient .
! Syntax error
! operator expected after expression
! in line 10
! TDH
! <>
! 23 Jan07 use strict ; use warnings ; # for my $ len ( 10 , 100 , 1000 , 10000 , 100000 , 1000000 ) { for my $ len ( 100 ) { open OUTFILE , ">simkeys$len.dat" or die "can't open: $!
" ; # we
print "keylen $len
";
for my $i (0..99) {
my $key = pack "I", $len;
$key .= pack "C", (int(rand(256))) for (1..$len);
print OUTFILE $key;
}
close OUTFILE;
}
)>