Re: Hashtable that doesn't store the key?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bruno Jouhier [MVP] (bjouhier_at_club-internet.fr)
Date: 01/12/05


Date: Wed, 12 Jan 2005 10:25:30 +0100


"JackRazz" <JackRazz@NotValid.com> a écrit dans le message de news:
%23ClmIaI%23EHA.2112@TK2MSFTNGP14.phx.gbl...
> Is it possible to create a hashtable that doesn't store the key? I have a
> very large
> hashtable and I just want it to store the HashCode and the Value (two
> Int16s).

How will it distinguish 2 keys that have the same HashCode if you don't
store the keys? Equality on HashCode is just a hint that the keys may be
equal, but you have to compare the keys to be sure that they match, unless
you have a perfect hashing function (no collision).

Bruno.

>
>
> Thanks - JackRazz
>
>



Relevant Pages

  • Re: Buying Keys from Blizzard?
    ... Battlechest which has up to BC and another $40 for WotLK. ... point I can justify passing the store for the deal but if Blizz is ... DVD keys or buy the DVD keys from Blizzard. ...
    (alt.games.warcraft)
  • Re: EF Designer ignores my foreign key
    ... ItemGroupId}' that are partially contained in the set of primary keys ... I don't know why the EF team didn't fix this, and I can only describe from my own experience with reverse engineering an entity model from a relational schema, but as I do recall we had a similar bug very early on in LLBLGen Pro as well and I think it was even in the first beta cycle of v1. ... Well, unless they store that information, you can't: someone could have written the store XML meta data by hand and could have made an error. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Buying Keys from Blizzard?
    ... Battlechest which has up to BC and another $40 for WotLK. ... point I can justify passing the store for the deal but if Blizz is ... IIRC Blizzard charges the same as Gamestop, ... DVD keys or buy the DVD keys from Blizzard. ...
    (alt.games.warcraft)
  • Re: Where does your APL application hold its settings?
    ... the accepted practices call for on other Unix variants. ... If you are going to "avoid platform specific facilities" then you're going ... The keys are easy to find and to ... store a file name than to store a copy of a file. ...
    (comp.lang.apl)
  • Re: In 2006, 99.8% of burglars were unable to open or remove a gun safe.
    ... and/or keys. ... where are your facts that "most burglaries are inside jobs" Anyway, ... out of the cash register and put it in their pocket - that way the cash ... store owner will do it to write it off on his taxes. ...
    (misc.survivalism)