hashing Flashcards

1
Q

colisions

A

linear probing
quadratic probing
double hash probing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

linear probing advan and dis

A

H(k) = [h(k) + i] mod m
A = cache
B = clusters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

quadratic probing advan and dis

A

H(k) = [h(k) + i^2] mod m
A ~ clusters
D ~ cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

double hash probing

A

H(k) = [h1(k) + ih2(k)] mod m
A = clusters
D = cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

cuckoo hashing

A

utiliza 2 tablas de hash, en donde los elementos tienen 2 keys distintas para cada tabla
insert O(1)
delete O(1)
search O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

hopscotch

A

the use of a bit map to see which positions their in
insert O(1)
delete O(1)
search O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly