home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!goanna!minyos.xx.rmit.oz.au!kjb
- From: kjb@cgl.citri.edu.au (Kendall Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: String hashing algorithms
- Message-ID: <kjb.714795799@godzilla.cgl.citri.edu.au>
- Date: 26 Aug 92 02:23:19 GMT
- References: <1992Aug17.133117.21102@hubcap.clemson.edu> <161@sc.sni.ie>
- Sender: usenet@minyos.xx.rmit.oz.au (Njuiz noveles nova newes)
- Organization: RMIT Advanced Computer Graphics Centre, CITRI, Melbourne
- Lines: 28
-
- bsullivn@sc.sni.ie (Bryan O'Sullivan) writes:
-
- >wolf@hubcap.clemson.edu (Randy Martin) writes:
- >: Does anyone have any string hashing algorithms that are very fast and
- >: produce few collisions?
-
- >I don't have any source to hand, but Peter Weinberger's hashpjw
- >algorithm seems to produce consistently good results and few collisions.
- >A listing can be found in K&R2 or the 1985 edition of the Dragon book
- >(Aho, Sethi, and Ullman).
-
- An implementation is available in my 'ctools' archive. It can be ftp'ed from
- most places (garbo, simtel-20), or directly from:
-
- godzilla.cgl.rmit.oz.au
-
- as the file:
-
- ~ftp/kjb/ctools10.tar.Z
-
- +------------------------------------------+-------------------------------+
- | Kendall Bennett, | Internet: |
- | Advanced Computer Graphics Centre, | kjb@citri.edu.au |
- | Royal Melbourne Institute of Technology, | rcskb@minyos.xx.rmit.oz.au |
- | Victoria, AUSTRALIA. | |
- +------------------------------------------+-------------------------------+
- | CoSysop (Bossman), PC Connection Australia: +61 3 688 0909 |
- +--------------------------------------------------------------------------+
-