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?
- A. 208
- B. 224
- C. 216
- 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
- How many of the following are tautologies? (a) ((p → q) → p) → p (b) (p → q) ∨ (q → p) (c) ((p ∧ q) → r) ↔ (p → (q → r)) (d) ((p → q) ∧ (q…
- A Boolean function is symmetric if its value depends only on the number of 1s in the input. If S(n) is the number of symmetric self-dual…
- How many of the 64 assignments to a, b, c, d, e, f satisfy (a ∨ b ∨ c) ∧ (¬a ∨ d ∨ e) ∧ (¬b ∨ ¬d ∨ f)?
- How many relations on A = {1, 2, 3} are symmetric and transitive but NOT reflexive?
- There are 219 strict partial orders (irreflexive, transitive relations) on the labelled set {1, 2, 3, 4}, and 19 on a labelled 3-element…
- How many equivalence relations on {1, 2, …, 7} relate 1 with 2, but relate neither 3 with 4 nor 1 with 3?