HOME

TheInfoList



OR:

In
Boolean algebra In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variables are the truth values ''true'' and ''false'', usually denoted 1 and 0, whereas ...
, a parity function is a Boolean function whose value is one
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bi ...
the input vector has an odd number of ones. The parity function of two inputs is also known as the XOR function. The parity function is notable for its role in theoretical investigation of circuit complexity of Boolean functions. The output of the parity function is the
parity bit A parity bit, or check bit, is a bit added to a string of binary code. Parity bits are a simple form of error detecting code. Parity bits are generally applied to the smallest units of a communication protocol, typically 8-bit octets (bytes) ...
.


Definition

The n-variable parity function is the Boolean function f:\^n\to\ with the property that f(x)=1
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bi ...
the number of ones in the vector x\in\^n is odd. In other words, f is defined as follows: :f(x)=x_1\oplus x_2 \oplus \dots \oplus x_n where \oplus denotes
exclusive or Exclusive or or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false). It is symbolized by the prefix operator J and by the infix operators XOR ( or ), EOR, EXOR, , ...
.


Properties

Parity only depends on the number of ones and is therefore a symmetric Boolean function. The ''n''-variable parity function and its negation are the only Boolean functions for which all disjunctive normal forms have the maximal number of 2 ''n'' − 1
monomial In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered: # A monomial, also called power product, is a product of powers of variables with nonnegative integer expon ...
s of length ''n'' and all conjunctive normal forms have the maximal number of 2 ''n'' − 1 clauses of length ''n''. Ingo Wegener, Randall J. Pruim, ''Complexity Theory'', 2005,
p. 260
/ref>


Computational complexity

Some of the earliest work in computational complexity was 1961 bound of Bella Subbotovskaya showing the size of a
Boolean formula Any kind of logic, function, expression, or theory based on the work of George Boole is considered Boolean. Related to this, "Boolean" may refer to: * Boolean data type, a form of data with only two possible values (usually "true" and "fals ...
computing parity must be at least O(n^). This work uses the method of random restrictions. This exponent of 3/2 has been increased through careful analysis to 1.63 by
Paterson Paterson may refer to: People * Paterson (surname) * Paterson (given name) Places Australia *Paterson, New South Wales *Paterson River, New South Wales * Division of Paterson, an electoral district in New South Wales *Paterson, Queensland, a lo ...
and Zwick (1993) and then to 2 by Håstad (1998). In the early 1980s, Merrick Furst, James Saxe and Michael SipserMerrick Furst, James Saxe and Michael Sipser, "Parity, Circuits, and the Polynomial-Time Hierarchy", Annu. Intl. Symp. Found.Computer Sci., 1981, '' Theory of Computing Systems'', vol. 17, no. 1, 1984, pp. 13–27, and independently Miklós AjtaiMiklós Ajtai, "\Sigma^1_1-Formulae on Finite Structures", '' Annals of Pure and Applied Logic'', 24 (1983) 1–48. established super-polynomial lower bounds on the size of constant-depth Boolean circuits for the parity function, i.e., they showed that polynomial-size constant-depth circuits cannot compute the parity function. Similar results were also established for the majority, multiplication and transitive closure functions, by reduction from the parity function. established tight exponential lower bounds on the size of constant-depth Boolean circuits for the parity function. Håstad's Switching Lemma is the key technical tool used for these lower bounds and Johan Håstad was awarded the
Gödel Prize The Gödel Prize is an annual prize for outstanding papers in the area of theoretical computer science, given jointly by the European Association for Theoretical Computer Science (EATCS) and the Association for Computing Machinery Special Intere ...
for this work in 1994. The precise result is that depth- circuits with AND, OR, and NOT gates require size \exp(\Omega(n^)) to compute the parity function. This is asymptotically almost optimal as there are depth- circuits computing parity which have size \exp(O(n^)t).


Infinite version

An infinite parity function is a function f\colon \^ \to \ mapping every infinite binary string to 0 or 1, having the following property: if w and v are infinite binary strings differing only on finite number of coordinates then f(w) = f(v) if and only if w and v differ on even number of coordinates. Assuming
axiom of choice In mathematics, the axiom of choice, or AC, is an axiom of set theory equivalent to the statement that ''a Cartesian product of a collection of non-empty sets is non-empty''. Informally put, the axiom of choice says that given any collection ...
it can be easily proved that parity functions exist and there are 2^ many of them - as many as the number of all functions from \^ to \. It is enough to take one representative per equivalence class of relation \approx defined as follows: w \approx v if w and v differ at finite number of coordinates. Having such representatives, we can map all of them to 0; the rest of f values are deducted unambiguously. Infinite parity functions are often used in theoretical Computer Science and Set Theory because of their simple definition and - on the other hand - their descriptive complexity. For example, it can be shown that an inverse image f^ /math> is a non-Borel set.


See also

*
Walsh function In mathematics, more specifically in harmonic analysis, Walsh functions form a complete orthogonal set of functions that can be used to represent any discrete function—just like trigonometric functions can be used to represent any continuous ...
, a continuous equivalent *
Parity bit A parity bit, or check bit, is a bit added to a string of binary code. Parity bits are a simple form of error detecting code. Parity bits are generally applied to the smallest units of a communication protocol, typically 8-bit octets (bytes) ...
, the output of the function * Piling-up lemma, a statistical property for independent inputs *
Multiway switching In building wiring, multiway switching is the interconnection of two or more electrical switches to control an electrical load from more than one location. A common application is in lighting, where it allows the control of lamps from multiple ...
, a physical implementation often used to control lighting Related topics: * Error Correction * Error Detection


References

* {{refend Boolean algebra Circuit complexity Functions and mappings