HashingDataStructures Flashcards

1
Q

What is a map?

A

Stores a set of key/value pairs.
Provides at least three basic operations:
-put
-get
size

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

What is a hashmap?

A

Uses an array to store key/value pairs.

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

What is a hash function?

A

Used to translate each key into a hashcode.

A one way function that, given some
non-numeric input, produces a number as output.

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

What is a hashcode?

A

Used to find an index for the k/v pair.

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