GATE Computer ScienceVery hardGATE CSE · UGC NET
A Boolean function f(x, y, z) is monotone if raising any input from 0 to 1 never lowers the output, and self-dual if f(x̄, ȳ, z̄) is the complement of f(x, y, z). How many Boolean functions of three variables are both monotone and self-dual?
- A. 4
- B. 3
- C. 6
- D. 8
Correct answer: A. 4
Checking all 256 functions leaves exactly x, y, z and the majority function: 4.
More Discrete Mathematics questions
- How many pairwise non-isomorphic (unlabelled) trees exist on exactly 8 vertices?
- How many independent sets (the empty set included) does the cycle graph C₉ have?
- What is the smallest k such that every k-element subset of {1, 2, …, 40} contains two distinct elements a and b with a dividing b?
- In the complete graph K₄ a walk may repeat vertices and edges. How many closed walks of length 6 exist in total, summing over all 4…
- How many onto (surjective) functions f from {1,…,8} to {a,b,c,d} satisfy f(1) ≠ f(2)?
- In how many ways can the set {1, 2, …, 8} be partitioned into non-empty blocks so that every block has at least 2 elements?