0

imagine that we have the set S containing n keys. we want to use the uniform hashing function in a table T[0,...,m-1] and m=n+2. is it better to handle the collisions using open addressing or chaining? I would appreciate if anyone can explain for me. thanks

Rinkesh P
  • 588
  • 4
  • 13
anita
  • 13
  • 6
  • open addressing/ chaining is used to handle collisions. Your question doesn't make sense because if you remove collisions(hypothetically) then you'll never need to handle them. – Rinkesh P May 19 '22 at 16:22
  • @RinkeshP maybe i should say wich one is better for handling the collisions? – anita May 19 '22 at 16:29
  • That would be a more appropriate question. – Rinkesh P May 19 '22 at 16:38
  • @RinkeshP can you please explain it more? – anita May 19 '22 at 16:46
  • Please edit your question so that the title as well as the content is more appropriate. One shouldn't feel the need to go through the comments to understand the context. – Rinkesh P May 19 '22 at 16:48
  • Might have already been answered here https://stackoverflow.com/questions/2556142/chained-hash-tables-vs-open-addressed-hash-tables – Hung Thai May 20 '22 at 04:08

0 Answers0