Hash table double hashing

preview_player
Показать описание
Related Videos:

Data Structures Source Code:

Рекомендации по теме
Комментарии
Автор

This is a great explanation and loving all the videos in the hashing series so far! Thank you!

jananir
Автор

About construction of H2(x): You've used (more or less) offset_increment = H2(x) % N, if H2(x) %N !=0, 1 otherwise.
However, I think it would be more elegant (and also, make offset_increment uniform in set {1, 2, ... N-1}) by using offset_increment = 1 +H2(x) % (N - 1).
Cheers.

nonamehere
Автор

How do we decide on the number to resize to? Is there an algorithm to find the next prime number?

amoghdadhich
Автор

At 7:39, you say delta = H2(K2) mod 7 = 5. But H2(k2) = -79. How is -79 mod 7 = 5? Can you please help me understand if I missing something?

dallasmilanista
Автор

P(k, x) in your first slide, but in next slides P(x) is used. Why? thanks

maxxxwan
Автор

Thank you for the video, it helped me a lot. However, why do we use Quadratic Probing when Linear Probing works?

sarthakshah
Автор

why H1(k6) +2* delta mod 7 = 0?, why not 7?

LinhVũNguyễnDuy
Автор

Sir, Can u say some examples for Universal Hash functions

sasanktadepalli
Автор

I need to confirm something.
Why does N usually preferred to be taken as a prime number?

I know for most probing sequences it prevents an infinite cycle of collisions
But is there any reason for it? Does it also provide a more uniform distribution of elements within our HT?

Luna-vkxy