Skip to content
hash function

File:Hash_table_4_1_1_0_0_1_0_LL.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ183427· pop 57· linked from 1,069 articles

hash function

Sign in to save

Also known as hash algorithm, hash

type of function that maps data of arbitrary size to data of fixed size

AI overview

A hash function is a mathematical tool that takes in data of any size and converts it into a fixed-size output, like turning a long document into a short code. This is useful because it allows computers to quickly organize, verify, and manage large amounts of information efficiently.

AI-generated from the Wikipedia summary — may contain errors.

Wikidata facts

Image
Hash table 4 1 1 0 0 0 0 LL.svg
Show 2 more facts
Stack Exchange tag
stackoverflow.com/tags/hash
Commons category
Hashing
Sources (4)

via Wikidata · CC0

~38 min read

Article

A hash function that maps names to integers from 0 to 15. There is a collision between keys "John Smith" and "Sandra Dee".

A hash function is any function that can be used to map data of arbitrary size to fixed-size values, though there are some hash functions that support variable-length output. The values returned by a hash function are called hash values, hash codes, (hash/message) digests, or simply hashes. The values are usually used to index a fixed-size table called a hash table. Use of a hash function to index a hash table is called hashing or scatter-storage addressing.

Connections

Categories