Rabin-Karp streaming hash
An implementation of the Rabin-Karp rolling hash algorithm.
Algorithm::RabinKUser3Contributed Perl DocumeAlgorithm::RabinKarp(3)
Algorithm::RabinKarp - Rabin-Karp streaming hash
my $text = "A do run run run, a do run run";
my $kgram = Algorithm::RabinKarp->new($window, $text);
my $kgram2 = Algorithm::RabinKarp->new($window, $fh);
my $kgram3 = Algorithm::RabinKarp->new($wind
Algorithm::RabinKUser:Contributed Perl Algorithm::RabinKarp::Util(3)
Algorithm::RabinKarp::Util - utility methods for use with
Rabin-Karp hash generation.
These are generator functions that all create a subrou‐
tine closure which produce pairs of ( value, position )
until their source is exhaused, and undef when no values
Modification of t/util.t to make it more compatible with perl 5.6 -- Some of the
tests failed because I forgot that the special form for opening a string as
a file handle was only recently introduced in 5.8
Umm. I accidently included duplicate information from two projects in the last push.
This version has an improved version of the rabin.pl that allows (requires, actually)
Browse inside perl-Algorithm-RabinKarp-0.41-1.el4.rf.noarch.rpm
Results 1 - 1 of 1Search over 15 billion files
© 1997-2017 FileWatcher.com