GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A Boolean function f of four variables is self-dual if f(x̄₁, x̄₂, x̄₃, x̄₄) = ¬f(x₁, x₂, x₃, x₄). How many self-dual functions of four variables depend essentially on all four variables?

  1. A. 208
  2. B. 224
  3. C. 216
  4. D. 192

Correct answer: A. 208

There are 2⁸ = 256 self-dual functions. Self-dual functions of 2 variables are only x, ¬x, y, ¬y, so none depends on exactly 2. Exactly 1 variable: xᵢ or ¬xᵢ = 8. Exactly 3: per triple, 2⁴ = 16 self-dual functions minus the 6 depending on one variable = 10, times 4 triples = 40. Answer 256 − 8 − 40 = 208.

More Discrete Mathematics questions

Exams that ask this topic