ArticleslgStudy

mathematics

Parity function

Parity function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Parity function rather than just read about it. In short: In Boolean algebra, a parity function is a Boolean function whose value is one if and only if the input vector has an odd number of ones. The parity function of two inputs is also known as the XOR function.

Key takeaways

  • Parity function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Parity function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Parity function from memory before moving on to harder problems.

Reference excerpt

In Boolean algebra, a parity function is a Boolean function whose value is one if and only if 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.

Definition The n {\displaystyle n} -variable parity function is the Boolean function f : { 0 , 1 } n → { 0 , 1 } {\displaystyle f:\{0,1\}^{n}\to \{0,1\}} with the property that f ( x ) = 1 {\displaystyle f(x)=1} if and only if the number of ones in the vector x ∈ { 0 , 1 } n {\displaystyle x\in \{0,1\}^{n}} is odd. In other words, f {\displaystyle f} is defined as follows:

f ( x ) = x 1 ⊕ x 2 ⊕ ⋯ ⊕ x n {\displaystyle f(x)=x_{1}\oplus x_{2}\oplus \dots \oplus x_{n}}

where ⊕ {\displaystyle \oplus } denotes exclusive or.

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 monomials of length n and all conjunctive normal forms have the maximal number of 2 n − 1 clauses of length n.

Computational complexity Some of the earliest work in computational complexity was 1961 bound of Bella Subbotovskaya showing the size of a Boolean formula computing parity must be at least Ω ( n 3 / 2 ) {\displaystyle \Omega (n^{3/2})} . This work uses the method of random restrictions. This exponent of 3 / 2 {\displaystyle 3/2} has been increased through careful analysis to 1.63 {\displaystyle 1.63} by Paterson and Zwick (1993) and then to 2 {\displaystyle 2} by Håstad (1998). In the early 1980s, Merrick Furst, James Saxe and Michael Sipser and independently Miklós Ajtai 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. Håstad (1987) 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 for this work in 1994. The precise result is that depth-k circuits with AND, OR, and NOT gates require size exp ⁡ ( Ω ( n 1 k − 1 ) ) {\displaystyle \exp(\Omega (n^{\frac {1}{k-1}}))} to compute the parity function. This is asymptotically almost optimal as there are depth-k circuits computing parity which have size exp ⁡ ( O ( n 1 k − 1 ) t ) {\displaystyle \exp(O(n^{\frac {1}{k-1}})t)} .

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Parity function

Start with the simplest possible case. Write down what Parity function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Parity function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Parity function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Parity function

In research
Parity function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Parity function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Parity function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Boolean algebra, Circuit complexity, Functions and mappings, so understanding it makes those chapters shorter.
In everyday life
Look for Parity function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Parity function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Parity function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Parity function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Parity function in simple terms?

In Boolean algebra, a parity function is a Boolean function whose value is one if and only if the input vector has an odd number of ones. The parity function of two inputs is also known as the XOR function.

Why does Parity function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Parity function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Parity function.

Tags

  • Boolean algebra
  • Circuit complexity
  • Functions and mappings

Keep exploring