Current location - Quotes Website - Collection of slogans - What is a hash rule?
What is a hash rule?
Hash rules originated from the traditional English paper tracing game.

Hash, generally translated as "hash" or directly transliterated as "hash", is to convert an input of any length (also known as the previous image) into an output of a fixed length through a hash algorithm, and the output is a hash value. This transformation is a kind of compressed mapping, that is, the space of hash value is usually much smaller than that of input, and different inputs may be hashed into the same output, so it is impossible to uniquely determine the input value from hash value. Simply put, it is the function of compressing messages of any length into message digests of fixed length.

Commonly used hash function

Direct remainder method: f (x): = x mod maxm; MaxM is generally a prime number that is not close to 2 t.

Multiplication and rounding methods: f (x): = trunc ((x/maxx) * maxlong it) mod maxm, mainly used for real numbers.

Square method: f (x): = (x * x div1000) mod100000); Take the middle one after squaring, and each one contains more information.

HASH has become popular all over the world, and many people even enjoy participating in HASH and collecting different HASH T-shirts around the world. In the first game, the loser must sit on the ice.