hajautusfunktioista
Hash functions are mathematical algorithms that transform data of arbitrary size into a fixed-size string of characters, typically a sequence of numbers and letters. The output, known as a hash or digest, is designed to be unique for different input values; even a tiny change in the input usually produces a dramatically different hash. Hash functions are fundamental in computer science for tasks such as data retrieval, cryptography, and data integrity verification.
The key properties of a good hash function include determinism, fast computation, uniform distribution of hash
Common non-cryptographic hash functions used in data structures are MurmurHash, FNV-1a, and CityHash, which emphasize speed
Hash functions also underpin blockchain technology, where they provide data integrity, consensus mechanisms, and proof-of-work calculations.