Chap. 9 (Dictionaries) Flashcards

(11 cards)

1
Q

Define Dictionary

A

A mapping from a set of keys to their corresponding values.

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

Define Hashtable

A

The algorithm used to implement Python dictionaries

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

Define Hash Function

A

A function used by the hashtable to compute the location for a key

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

Define Histogram

A

A set of counters

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

Define Implementation

A

A way of performing a computation

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

Define Item

A

Another name for a key value-pair

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

Define Key

A

An object that appears in a dictionary as the first part of a Key-value pair

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

Define Key-value pair

A

The representation of the mapping from a key to a value

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

Define Lookup

A

A dictionary operation that takes a key and finds the corresponding value.

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

Define Nested Loops

A

When there are one or more loops “inside” of another loop. The inner loop runs to completion each time the outer loop runs once.

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

Define Value

A

An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “ value”.

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