Dictionaries Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Definition

A

Collection of key value pairs in which the value is accessed by its associated key.

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

Dictionary example

A

The value “row, row, row” your boat could be put into a dictionary like:

key value
1 row
2 your
3 boat

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

What is an application of a dicctionary?

A

Dictionary based compression.

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

How would our example be compressed?

A

11123

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