Chapter 10 Flashcards
(10 cards)
A function that takes an object and computes an integer that is used to locate a key in a hash table
hash function
Looping through a sequence and selecting or omitting elements
filtering
An object that appears in a dictionary as the way of looking up a value
key
A variable used in a loop to hold intermediate results
accumilator
A collection of key-value pairs organized so that we can look up a key and find its value efficiently
hash table
A relationship in which each element of one set corresponds to an element of another set
mapping
In a dictionary, another name for a key-value pair
item
An object that contains key-value pairs, also called items
dictionary
A property of immutable types like integers, floats and strings are hashable, but not mutable types like lists and dictionaries
hashable
A computed value stored to avoid unnecessary future computation
memo