GATE Computer ScienceEasyGATE CS (PYQ pattern)
A Boolean function f(x, y, z) satisfies f(x, y, z) = f(y, x, z) for all inputs. How many such functions exist?
- A. 32
- B. 128
- C. 64
- D. 16
Correct answer: C. 64
The value is determined by the unordered pair of (x, y) and z: there are 3 × 2 = 6 classes of inputs (xy ∈ {00, 01~10, 11} and z), so 2⁶ = 64 functions.
More Discrete Mathematics questions
- How many functions f : {1, 2, 3, 4} → {1, 2, 3, 4} satisfy f(f(x)) ≠ x for every x?
- In how many ways can 8 distinct objects be placed into 4 identical boxes, no box empty, so that objects 1 and 2 are in different boxes?
- How many equivalence relations on {1, 2, …, 7} have exactly 3 equivalence classes, each with at least 2 elements?
- How many partial orders on the labelled set {1, 2, 3, 4} have exactly one maximal element? (There are 19 partial orders on a labelled…
- How many injective functions f : {1, 2, 3, 4} → {1, 2, …, 7} satisfy f(i) ≠ i for every i?
- How many relations R on {1, 2, 3} have the property that the transitive closure of R is the full relation {1, 2, 3} × {1, 2, 3} (all 9…