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?
- A. 8
- B. 16
- C. 12
- 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
- Out of the 16 binary Boolean operators, how many are BOTH commutative and associative?
- Which of the following sets of connectives are functionally complete? I. {→, ⊥} II. {↔, ⊕} III. {→, ⊕} IV. {∧, ∨, →} V. {↛, ⊤} (↛ is 'p…
- Which of the following sets of connectives are functionally complete (no constants may be used unless they can be built from the…
- Which of the following first-order formulas are valid (true in every interpretation over every non-empty domain)? I. ∃x(P(x) → Q(x)) ↔ (∀x…
- Which of the following first-order formulas are valid? I. ∀x(P(x) ∨ Q(x)) → (∀x P(x) ∨ ∃x Q(x)) II. (∃x P(x) ∧ ∃x Q(x)) → ∃x(P(x) ∧ Q(x))…
- Over the domain D = {1, 2, 3, 4}, how many interpretations of the binary predicate R make ∀x∀y(R(x, y) → R(y, x)) ∧ ∀x∃y(x ≠ y ∧ R(x, y))…