A hash function is any function that can be used to map data of arbitrary size to fixed-size values.
Hash tables use hash functions to relate keys
to a position in an array of buckets/slots holding the values
.
Bibliography
“Hash Function.” 2022. Wikipedia, June. https://en.wikipedia.org/w/index.php?title=Hash_function&oldid=1091965426.