pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/doc Initial import of mph-1.2 into the NetBSD Packages...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9078834e734
branches:  trunk
changeset: 464167:c9078834e734
user:      agc <agc%pkgsrc.org@localhost>
date:      Thu Dec 04 08:46:40 2003 +0000

description:
Initial import of mph-1.2 into the NetBSD Packages Collection.

The program mph tries to generate an order preserving minimal perfect
hashing (MPH) function for the set of keys, one per line, on stdin.
Each key can be at most 4095 characters long (see keys.h to increase
this limit), and the keys must be unique.  If mph terminates, it emits
a language independent binary or text representation of the MPH
function on stdout.  To generate a usable hash function, this output
should be fed to a language dependent filter, like emitc.

e.g.
        % mph <foo | emitc >hash.c

The algorithm used by mph is probabilistic - it iterates until it
finds a MPH function.  For each failed iteration, it prints a
(cryptic) reason on stderr.  There is no no guarantee that mph will
terminate.  In practice this is unlikely, unless the constants
specified with options -c or -m are too small.

diffstat:

 doc/CHANGES |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 3efe4aaa338b -r c9078834e734 doc/CHANGES
--- a/doc/CHANGES       Thu Dec 04 08:45:43 2003 +0000
+++ b/doc/CHANGES       Thu Dec 04 08:46:40 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.3956 2003/12/04 08:36:05 agc Exp $
+$NetBSD: CHANGES,v 1.3957 2003/12/04 08:46:40 agc Exp $
 
 Changes to the packages collection and infrastructure in 2003:
 
@@ -4827,3 +4827,4 @@
        Added thunderbird-bin-nightly [grant 2003-12-04]
        Added chef-19920415 [agc 2003-12-04]
        Added awf-19900907 [agc 2003-12-04]
+       Added mph-1.2 [agc 2003-12-04]



Home | Main Index | Thread Index | Old Index