Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8402729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:08:48+00:00 2026-06-09T22:08:48+00:00

I have an application where each element is identified by a unique 32-bit number,

  • 0

I have an application where each element is identified by a unique 32-bit number, aka the “key”. My main concern is look-up speed into the Hash table for any particular key to get the attached element. The choices I have for the Hash Table are ELF, PJW, and BKDR. Security is not an issue so in that case, which of these hashing algorithms will create a table with the best look-up speed?

One other consideration. Would I get better performance if I converted the number to its string representation and used it for the key?

Note: I did find this relevant SO thread:

What integer hash function are good that accepts an integer hash key?

But the accepted answer had some some opposing viewpoints in the comments that seemed reasonable and the spread of caveats and opinions across all the other answers left me still uncertain as to the best algorithm for my use case scenario.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:08:50+00:00Added an answer on June 9, 2026 at 10:08 pm

    The problem of finding a good, fast hash-function has been solved: http://code.google.com/p/smhasher/wiki/MurmurHash3

    The time, where hash functions where based on math tricks like Knut’s multiplicative hash, are over. Modern hashes operate using binary operations.

    Maybe you can just take integer that you already have and not hash it at all. If there are too many collisions, which only happens because of some special data distribution, use MurmurHash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an expandable list in my application. In group view each element has
In my Android application I have used a Listview and in each element in
I have an application where for each object the user can specify his own
i have application with Listbox and files, each time i press on Add button
I have two Visual Studio vb.NET applications. Previously, I have published each application separately
I have two application that need to talk to each other. App1 needs to
I have an application where I receive each data 40.000 rows. I have 5
I have various objects in application,and each has isvalid method to test if values
I have an application with multiple forms, each form has the same icon, so
I have an application with different sections. Each section is accessed through a domain.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.