GATE Computer ScienceVery hardGATE CS

A Boolean function f of four variables is self-dual if f(x̄₁, x̄₂, x̄₃, x̄₄) = ¬f(x₁, x₂, x₃, x₄) for every input, and monotone if a ≤ b componentwise implies f(a) ≤ f(b). How many 4-variable functions are both self-dual and monotone?

  1. A. 8
  2. B. 16
  3. C. 12
  4. D. 4

Correct answer: C. 12

Self-dual monotone functions are weighted majorities here: the 4 projections xᵢ, the 4 majorities of three of the variables, and the 4 functions maj(xᵢ, xᵢ, xⱼ, xₖ, xₗ) in which one variable carries weight 2 (e.g. x₁(x₂ ∨ x₃ ∨ x₄) ∨ x₂x₃x₄). Total 4 + 4 + 4 = 12 (confirmed by exhaustive check of all 256 self-dual functions).

More Discrete Mathematics questions

Exams that ask this topic