Subject: CVS commit: pkgsrc/devel/mph
To: None <pkgsrc-changes@NetBSD.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: pkgsrc-changes
Date: 12/04/2003 08:44:58
Module Name:	pkgsrc
Committed By:	agc
Date:		Thu Dec  4 08:44:58 UTC 2003

Update of /cvsroot/pkgsrc/devel/mph
In directory ivanova.netbsd.org:/tmp/cvs-serv26868

Log Message:
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 (see below).


Vendor Tag:	TNF
Release Tags:	pkgsrc-base
		
N pkgsrc/devel/mph/Makefile
N pkgsrc/devel/mph/distinfo
N pkgsrc/devel/mph/DESCR
N pkgsrc/devel/mph/PLIST

No conflicts created by this import