Balanced boolean function

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by David Eppstein (talk | contribs) at 06:18, 17 December 2018 (rm examples that are either incomplete (don't specify input domain) or wrong (depending on details of numerical encoding). Better to just stick with bits.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In mathematics and computer science, a balanced boolean function is a boolean function whose output yields as many 0s as 1s over its input set. This means that for a uniformly random input string of bits, the probability of getting a 1 is 1/2.

Examples of balanced boolean functions are the function that copies the first bit of its input to the output, and the function that produces the exclusive or of the input bits.

Usage

Balanced boolean functions are primarily used in cryptography. If a function is not balanced, it will have a statistical bias, making it subject to cryptanalysis such as the correlation attack.

See also

References