Question

In direcotry implementation, which method may result in collisions? Linear list or Hash table?

In direcotry implementation, which method may result in collisions?

Linear list or Hash table?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hash table method result in collision.

Explanation:

Hash table method works by using a hash function, which takes a key as input to compute an algorithm and results index number of an array that has the value.

When hashing a random subset of a large set of possible keys, collision is usually unavoidable. Some times it is possible that two different keys given to the hashing function result in an index that points to the same slot.

To handle such situation, almost all hash table implementations have some collision resolution strategy.

Find below some collision resolution strategies.

  • Separate chaining
  • Open addressing
  • Robin Hood hashing
Add a comment
Know the answer?
Add Answer to:
In direcotry implementation, which method may result in collisions? Linear list or Hash table?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT