Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. High Quality
Content by WIKIPEDIA articles! In Boolean logic, the majority function
(also called the median operator) is a function from n inputs to one
output. The value of the operation is false when n/2 or more arguments
are false, and true otherwise. Alternatively, representing true values
as 1 and false values as 0, we may use the formula
operatorname{Majority} left ( p_1,dots,p_n right ) = left lfloor
frac{1}{2} + frac{sum_ {i=1}^n p_i - 1/2}{n} right rfloor.