Majority function
From Wikipedia, the free encyclopedia
The majority function is a logic function from n inputs to one output, defined as follows: If more inputs are TRUE than are FALSE, then the majority function returns TRUE. Otherwise, the function returns FALSE.
Representing TRUE as 1 and FALSE as 0 provides this alternate definition:
The "- 1/2" in the formula serves to break ties in favor of FALSE.
A major result in circuit complexity asserts that this function cannot be computed by AC0 circuits of subexponential size.