Jump to content

help in selecting a good hash function

Featured Replies

Hi all,

Please suggest a good hash function and the optimal table size top hash

4 billion unsigned integers.

 

 

 

Thanks in advance,

Roy

there are 3 things you have to check:

 

1. format of keys: String, Integer, ..

2. hash function: compatible with the keys

3. hash table size: depends on 3 things:

a. hash function

b. dataset size

c. optimization factor (can be constant, or a function f(n) where n is the dataset-size)

Edited by khaled

What is the size of your 4 billion integers?

Whether they're on 16, 32 or 64 bits, the anwswer won't be the same!

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.