GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 functions of n variables, what is S(4) + S(5)?
- A. 8
- B. 24
- C. 12
- D. 18
Correct answer: A. 8
Self-duality pairs weight w with n − w. For n = 5 the 3 pairs are free: S(5) = 2³ = 8; for n = 4 weight 2 pairs with itself (f(w) = ¬f(w)), so S(4) = 0. Sum 8.
More Discrete Mathematics questions
- 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?
- On the integers define a R b iff a³ ≡ b³ (mod 504). How many equivalence classes does R have? (504 = 8 · 7 · 9)
- How many onto functions f : {1, …, 7} → {a, b, c, d} have exactly one element of the codomain with a single preimage?