hashing Flashcards

1
Q

what is hashing

A

an ADT which would be able to find any data set almost instanley

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

How is the address for data determined in hashing?

A

Address = key mod (number of slots)

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

What is an important feature of a good hashing algorithm?

A

A good hashing algorithm should distribute data uniformly to minimize collisions.

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

What happens in a collision during hashing?

A

A collision occurs when two different keys are assigned the same address by the hashing algorithm.

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