Hashing floating- point numbers

When you need to reference tables of floating-point data frequently, you might want to use a hash table for efficiency. Collections describes the classes supporting hash tables. In the floating-point domain, where the types are built in, you need just one function to map (hash) a floating-point value to an unsigned long, for use with a hash table of floating-point values.

    HashValue nextHashValue = Hash(nextDataItem);


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker