[OSM-dev] [OSM-talk] Handling of towns with different or alternative names

Simon Ward simon at bleah.co.uk
Wed Jan 28 07:38:45 GMT 2009


On Wed, Jan 28, 2009 at 01:54:57AM +0100, Frederik Ramm wrote:
> Simon Ward wrote:
> > Hash table, or associative array/hash/dictionary?  Hash tables have
> > mechanisms to deal with collisions.  
> 
> A collision in a hash table is two keys sharing the same hash value, not 
> two keys being identical.

The same hash key necessarily hashes to the same value.  It’s not the
normal way to use a hash table, since you’d normally expect to stop once
you find the key you want, and less than optimal but, for example, in a
chained hash, you can walk along the collision chain to get all keys
matching the values.

Simon
-- 
A complex system that works is invariably found to have evolved from a
simple system that works.—John Gall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090128/e4bf4513/attachment.pgp>


More information about the dev mailing list