Majority

From Boolean Zoo
Revision as of 09:13, 31 August 2018 by Renan (talk | contribs) (Created page for majority function.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

A function f:\{-1,1\}^n \to \{-1,1\} is called a majority function if f(x) returns the most common bit in the input:

f(x) = \begin{cases} 1, & if ~ \sum_i x_i \geq 0 \\ -1 & otherwise \end{cases}

For even n, the above definition breaks ties in favor of 1, although any arbitrary rule may be used instead.

Properties


References

  1. Ryan O'Donnell, Analysis of Boolean functions, [1]/