From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,795de96bd314bc93 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-27 23:47:52 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B11F48A.F018909F@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: function hash References: <3b117b26_3@news.arrakis.es> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 28 May 2001 06:47:55 GMT NNTP-Posting-Host: 38.29.181.12 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 991032475 38.29.181.12 (Sun, 27 May 2001 23:47:55 PDT) NNTP-Posting-Date: Sun, 27 May 2001 23:47:55 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sun, 27 May 2001 23:46:02 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:7827 Date: 2001-05-28T06:47:55+00:00 List-Id: Nacho Robledo wrote: > > I am a student of Computer Sciencie and i am looking for an easy hash > function that can work with 15 o more characters... It's for working in a > table of 500-1000 elements. ANY idea? You might find the article "Fast Hashing of Variable-Length Text Strings," by P. K. Pearson (CACM 1990 Jun) of interest. It describes a fast "hashing function specifically tailored to variable-length text strings." An implementation of this function is part of the PragmAda Reusable Components, available from http://home.earthlink.net/~jrcarter010/pragmarc.htm or from the mirror at www.adapower.com. -- Jeff Carter "Your mother was a hamster and your father smelt of elderberries." Monty Python & the Holy Grail