Dictionaries Flashcards
1
Q
Definition
A
Collection of key value pairs in which the value is accessed by its associated key.
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
3
Q
What is an application of a dicctionary?
A
Dictionary based compression.
4
Q
How would our example be compressed?
A
11123