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-Thread: a07f3367d7,918406c619dd104d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 06 Jun 2009 11:22:35 -0500 Date: Sat, 06 Jun 2009 09:22:32 -0700 From: Patricia Shanahan User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer,comp.lang.ada Subject: Re: find words that contains some specific letters References: <78i1lbF1m69gkU1@mid.individual.net> <78i2ajF1m4nglU1@mid.individual.net> <78i4i2F1magkfU1@mid.individual.net> <3f1d007f-bcae-42b4-afb0-215b18f51b9c@n21g2000vba.googlegroups.com> <78ib19F1mfh7qU1@mid.individual.net> <3b519936-3db9-4dad-85ba-371fa4b29c8f@z5g2000vba.googlegroups.com> <78quiaF1n95fsU1@mid.individual.net> <78rpbkF1mqrc7U1@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 68.164.135.82 X-Trace: sv3-eH77aT88y0bfXoEmhr/zQ7/KxUVAJX1n2TP33ivl/igfgcZU/BPOQc8Lg8vduVKYkVd8wiJJsJmDZhl!8E89/TN8pErnklRJ11fWUuJsr0knZiCliJr9pLaqoFLQGSstH/QL5eaz/fQH+01D7a2Eo1hzXMvW!myKTwzdeScb6ny7VihwZAs0ACZyxHsIPwLpZgN1ozpndUw== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 X-Original-Bytes: 2763 Xref: g2news2.google.com comp.lang.java.programmer:42907 comp.lang.ada:6335 Date: 2009-06-06T09:22:32-07:00 List-Id: John B. Matthews wrote: > In article <78rpbkF1mqrc7U1@mid.individual.net>, > "Giovanni Azua" wrote: > >> "Patricia Shanahan" wrote in message >>> A perfect hash function is one that guarantees distinct hash codes >>> for a specific set of keys. There are algorithms for constructing >>> one, given a set of keys. >> For example the Character class. > > I think all of the primitive wrappers (except Double) have trivially > perfect integer hashes, as they wrap distinct values. Patricia was > perhaps referring to algorithms of the kind discussed here: > > Yes, that's the sort of thing I meant. The Long hash code is also not perfect, and cannot be, because there are more longs than ints. Patricia