Skip to content

Glossary: Data Structures and Algorithms

Hash function

Also written: hash, hash()

A function that turns any key into a whole number, which a dict uses to pick the key's bucket. Within one run the same key always gives the same number.

Where the book teaches it

Related terms

Hash mapBucketHashable