Chapter 10 Flashcards

(10 cards)

1
Q

A function that takes an object and computes an integer that is used to locate a key in a hash table

A

hash function

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

Looping through a sequence and selecting or omitting elements

A

filtering

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

An object that appears in a dictionary as the way of looking up a value

A

key

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

A variable used in a loop to hold intermediate results

A

accumilator

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

A collection of key-value pairs organized so that we can look up a key and find its value efficiently

A

hash table

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

A relationship in which each element of one set corresponds to an element of another set

A

mapping

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

In a dictionary, another name for a key-value pair

A

item

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

An object that contains key-value pairs, also called items

A

dictionary

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

A property of immutable types like integers, floats and strings are hashable, but not mutable types like lists and dictionaries

A

hashable

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

A computed value stored to avoid unnecessary future computation

A

memo

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