Difference between revisions of "Majority"

From Boolean Zoo
Jump to: navigation, search
m (Properties)
m
Line 17: Line 17:
 
<references/>
 
<references/>
  
[[Category:symmetric function]] [[Category:monotone function]] [[Category:balanced function]]
+
[[Category:symmetric function]] [[Category:monotone function]] [[Category:balanced function]] [[Category:odd function]]

Revision as of 14:15, 5 September 2018

Definition

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

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

For even [math]n[/math], 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]