Exact expected query complexity of three-bit majority #
Uniformly choose one of the six query orders, stopping after two equal answers. The expected
query cost is two on constant inputs and 8 / 3 otherwise. The uniform input law on the six
nonconstant words forces expected cost at least 8 / 3 on every everywhere-correct decision
tree, including adaptive trees with repeated queries. A residual-subcube potential proves the
lower bound by structural induction; the proof never classifies arbitrary trees as query orders.
Local computation and random choice are uncharged, as in the existing zero-error query model.
Main definitions #
Cslib.QueryComplexity.MajorityThree.queryOrder: a short-circuit tree for a given permutation.Cslib.QueryComplexity.MajorityThree.algorithm: the uniform mixture of six such trees.Cslib.QueryComplexity.MajorityThree.hardDistribution: uniform on the six nonconstant inputs.
Main results #
Cslib.QueryComplexity.zeroErrorComplexity_majority_three: exact complexity8 / 3.Cslib.QueryComplexity.MajorityThree.algorithm_expectedCost: exact input-specific mean.Cslib.QueryComplexity.MajorityThree.hardDistribution_lower: a matching lower bound for all correct deterministic trees.
References #
- [AB07], Examples 11.14 and 11.18, printed pages 215–216 / PDF pages 231–232.
Read π(0), π(1); stop if they agree, and otherwise read π(2).
Choose one of the six short-circuit majority query orders uniformly.
Uniform on the six hard inputs, with no mass on 000 or 111.
Three-bit majority has zero-error expected query complexity exactly 8 / 3.