Hash Tables Flashcards

1
Q

What is the purpose of a hash table?

A

To store data that is indexed according to its key

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

What is a hash table collision?

A

When two different values create the same key

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

What steps must be taken when rehashing?

A

Designing a new hashing algorithm, then recalculating the key for each value in the hash table

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

What are some uses of hashing algorithms?

A

Indexing or looking up items in an array, dictionary
or database
Calculating a checksum to check the validity of a piece of data
Encrypting passwords

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