From: "Steven Deller" <deller@smsail.com>
Subject: RE: hashing
Date: Wed, 10 Apr 2002 17:24:43 -0400
Date: 2002-04-10T17:24:43-04:00 [thread overview]
Message-ID: <mailman.1018477621.31315.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <1b2t8.507$na.19833@news8-gui.server.ntli.net>
> -----Original Message-----
> [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of chris.danx
> Sent: Wednesday, April 10, 2002 5:31 PM
> To: comp.lang.ada@ada.eu.org
> Subject: hashing
> Hi,
>
> Does anyone have a good hash function for strings (length is
> arbitary, number of buckets is determined when package is
I'd check out the PERL 5 sources. The hashing function there seems to
be excellent for numerous cases I have looked into. Not sure, but the
internal documentation might just explain the algorithm without having
to reverse engineer C code.
Other than that, I'd try one of the numerous ISO-defined hash functions,
such as CRC-32, etc.
I did a web search on "hash function algorithms" and came up with
NUMEROUS interesting sites.
>...>
> p.s. does anyone have any uses for circular lists? Tom Swans
> Tp5.5 book mentions them, what are they used for? Just curious...
I have used circular lists in numerous buffering situations where a
simple double-buffer is insufficient. Typically the situation is one
where the list is created once and the "head" and "tail" positions move
as data is put in and taken out. Using a circular list allows different
sizes to be put in and taken out. I've also used a 10ary-buffer system
(the buffers themselves formed a circular list) to meet some system
transfer and error-correction requirements. Some transmission systems
use a (short) counter of items sent and look for return ACK's for the
items; that algorithm is easy to write using a circular list.
> p.p.s. should performance/complexity information be included?
> I seem to recall a conversation on this a while back, but
> can't remember if ppl thought it was a good idea.
Complexity information always raises its head at some point. Best to
include it.
Regards,
Steve
next prev parent reply other threads:[~2002-04-10 21:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-10 21:31 hashing chris.danx
2002-04-10 21:24 ` Steven Deller [this message]
2002-04-10 22:41 ` hashing Nick Williams
2002-04-10 23:36 ` hashing chris.danx
2002-04-11 14:18 ` hashing joevl
2002-04-15 15:32 ` hashing Ken Burtch
2002-04-11 23:18 ` hashing(HATs. A more efficient algorithm?) Wannabe h4x0r
2002-04-11 23:29 ` chris.danx
2002-04-12 7:24 ` Wannabe h4x0r
2002-04-12 15:00 ` Chad R. Meiners
2002-04-12 17:22 ` tmoran
2002-04-10 21:56 ` hashing Chad R. Meiners
2002-04-10 23:43 ` hashing Ted Dennison
2002-04-11 16:12 ` hashing Georg Bauhaus
2002-04-11 22:36 ` hashing Simon Wright
2002-05-03 10:16 ` hashing Antonio Duran
2002-05-05 13:55 ` hashing Robert Dewar
2002-05-06 20:42 ` hashing Antonio Duran
2002-05-06 23:36 ` hashing Jeffrey Carter
-- strict thread matches above, loose matches on Subject: below --
2002-04-10 22:00 hashing Beard, Frank [Contractor]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox