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

  • Home
  • SEARCH
  • 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 8991603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:46:02+00:00 2026-06-15T22:46:02+00:00

Hash table basics: – MAJOR TEST COMING UP. ALL HELP WOULD BE APPRECIATED. I

  • 0

Hash table basics: – MAJOR TEST COMING UP. ALL HELP WOULD BE APPRECIATED.

I am basically a bit confused on uniform hashing of keys.

----------------------
| X X X                    <=== Chains; X represents an item in there
----------------------
| X X X                    <=== Multiple X represents collisions
---------------------- 
| 
----------------------
| X X X
----------------------
| X
----------------------
  1. Consider the case of the above hash table where M = 5 (num of rows) and the total length to be 10. How would I know if this is hash table is uniformly hashed or not?

  2. If one makes a uniform hashing of a set of keys, does that mean the lists inside the chains in a hashtable aka the linked-lists due to collisions have the same length? Or does it mean the average?

  3. If one makes a uniform hashing of keys, does that mean the find and remove functions of this hashtable are O(1) (amortized) and a pure complexity of O(n/M) where M is the number of chains in total?

  4. Does the load factor or (N/#ofChains) identify the uniformity of the hashing?

I hope you can help me with these questions. My professor had put a lot of concepts out in class and I am just basically bending them together here and I am getting confused when I put these concepts together.

I was searching on the web for more to study about this concept and I saw a set of slides as shown below. I would be obliged if you can explain to me what the equation means in the second slide in relation to uniform hashing of keys.

Also, what does it mean when they say “the number of keys that map to each slot are equal.” Does go to say that my hashtable that is shown above is NOT uniformily hashed?

enter image description here

Thank you

  • 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-15T22:46:03+00:00Added an answer on June 15, 2026 at 10:46 pm

    The slide is talking about all possible values of keys. It’s important to realize that in your hashmap, you only have a subset of keys at any given time. Regardless of how good your hash function is, you might be lucky in how those keys map to buckets, or you might be not.

    1) Consider the case of the above hash table where M = 5 (num of rows) and the total length to be 10. How would I know if this is hash table is uniformly hashed or not?

    Uniform hashing is a property of the hash function, not of the hash table. Therefore, just by looking at the contents of the hash table, you can’t. You have to look at the hash function itself to establish whether or not it’s uniform.

    2) If one makes a uniform hashing of a set of keys, does that mean the lists inside the chains in a hashtable aka the linked-lists due to collisions have the same length? Or does it mean the average.

    It means on average.

    3) If one makes a uniform hashing of keys, does that mean the find and remove functions of this hashtable are O(1) (amortized) and a pure complexity of O(n/M) where M is the number of chains in total.

    In addition to the properties of the hash function, complexity also depends on the load factor. If the number of buckets grows linearly in the number of elements, you get O(1) find and remove on average (as long as you amortize re-bucketing appropriately).

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

Sidebar

Related Questions

We all know that a hash table has O(1) time for both inserts and
I would like to write/read a hash-table to/from disk, but it is not a
I'm quite confused about the basic concepts of a Hash table. If I were
My Hash Table implementation has a function to resize the table when the load
I am having a hash table where Keys are being used based on value.
When implementing a hash table using a good hash function (one where the probability
I have a hash table where the keys are rather complex lists, with sublists
I'm using a hash table (source code by Google Inc) to store some method
I have a hash table with the following contents: my %hash = ( 'a'
This is my first time making a hash table. I'm trying to associate strings

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.