Documentation

Complexity.Computability.DecisionTree.Parity

Decision trees for parity #

Flipping any bit flips the parity, so parity is sensitive to every bit at every input (BitString.sensitivityAt_parity), and every decision tree for it queries all of its bits in the worst case (DecisionTree.complexity_parity) Jukna, Chapter 14. More generally, restricted parity queries every free bit (DecisionTree.card_free_le_complexity_parity_fill).

Main results #

References #

Every decision tree for the parity of n bits queries all of them in the worst case.

Restricted parity is the parity of the free bits, up to a constant, so every decision tree for it queries all free bits in the worst case.