Re: Hashtable that doesn't store the key?
From: Bruno Jouhier [MVP] (bjouhier_at_club-internet.fr)
Date: 01/12/05
- Next message: Marcin Grzębski: "Re: Hashtable that doesn't store the key?"
- Previous message: Cor Ligthert: "Re: How to validate a string with a Regular Expression?"
- In reply to: JackRazz: "Hashtable that doesn't store the key?"
- Next in thread: JackRazz: "Re: Hashtable that doesn't store the key?"
- Reply: JackRazz: "Re: Hashtable that doesn't store the key?"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: Marcin Grzębski: "Re: Hashtable that doesn't store the key?"
- Previous message: Cor Ligthert: "Re: How to validate a string with a Regular Expression?"
- In reply to: JackRazz: "Hashtable that doesn't store the key?"
- Next in thread: JackRazz: "Re: Hashtable that doesn't store the key?"
- Reply: JackRazz: "Re: Hashtable that doesn't store the key?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|