hash table Flashcards

1
Q

What is a hash table?

A

Data structure that maps keys to values. Uses a hash function to compute an index into an array of buckets from which the value can be found

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

What is a collision?

A

When two keys hash to the same value

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

What is hash table chaining?

A

collection of entries called buckets. each bucket is the top of a linked list holding the items

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