Boolean function
From Wikipedia, the free encyclopedia
| This article may be too technical for most readers to understand, and needs attention from an expert on its subject. Please expand it to make it accessible to non-experts, without removing the technical details. |
A Boolean function describes how to determine a Boolean value output based on some logical calculation from Boolean inputs. These play a basic role in questions of complexity theory as well as the design of circuits and chips for digital computers. The properties of boolean functions play a critical role in cryptography, particularly in the design of symmetric key algorithms (see S-box).
A boolean mask operation on boolean-valued functions combines values point-wise (for example, by XOR, or other boolean operators).
Contents |
A boolean function can be written uniquely as a sum (XOR) of products (AND). This is known as the Algebraic Normal Form (ANF).
![]() |
![]() |
![]() |
|
![]() |
|
![]() |
|
![]() |
where
.
The values of the sequence
can therefore also uniquely represent a boolean function. The algebraic degree of a boolean function is defined as the highest number of xi that appear in a product term. Thus f(x1,x2,x3) = x1 + x3 has degree 1 (linear), whereas f(x1,x2,x3) = x1 + x1x2x3 has degree 3 (cubic).
In mathematics, a finitary boolean function is a function of the form f : Bk → B, where B = {0, 1} is a boolean domain and where k is a nonnegative integer. In the case where k = 0, the "function" is simply a constant element of B.
More generally, a function of the form f : X → B, where X is an arbitrary set, is a boolean-valued function. If X = M = {1, 2, 3, …}, then f is a binary sequence, that is, an infinite sequence of 0's and 1's. If X = [k] = {1, 2, 3, …, k}, then f is a binary sequence of length k.
There are
such functions.
Boolean functions are often represented by sentences in propositional logic, but more efficient representations are binary decision diagrams (BDD), negation normal forms, and propositional directed acyclic graphs (PDAG).
|
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Main articles | |||||||||||||||
| Key concepts and logics |
|
||||||||||||||
| Controversies | |||||||||||||||
| Key figures | |||||||||||||||
| Lists | |||||||||||||||
| Portal · Category · WikiProject · Logic stubs · Mathlogic stubs · Cleanup · Noticeboard | |||||||||||||||





