GATE Computer ScienceVery hardGATE CS (PYQ pattern)
f(a,b,c) is a threshold function if f = 1 exactly when w1·a + w2·b + w3·c ≥ t for some real weights and threshold (negative weights allowed). There are 104 threshold functions of three variables. How many of them depend essentially on all three variables?
- A. 56
- B. 96
- C. 72
- D. 48
Correct answer: C. 72
Threshold functions on fewer variables: 2 constants, 6 literals and, for each of the 3 variable pairs, the 8 functions xy, x'y, …, x + y, x' + y', … (all 2-variable functions except XOR and XNOR, minus the 6 that depend on ≤ 1 variable: 14 − 6 = 8), so 24. 104 − 2 − 6 − 24 = 72: the 3-input AND and OR types with any input polarities (8 + 8), the majority types (8), and the x(y + z) and x + yz types (24 + 24).
More Digital Logic questions
- A Boolean function is affine if it equals c ⊕ (XOR of some subset of its variables) for a constant c, and self-dual if f(x̄) = f(x)'…
- A Boolean function f is self-dual if f(x̄) = f(x)' for every input x. How many self-dual functions of three variables A, B, C depend…
- How many Boolean functions f(A,B,C,D) are self-dual (f(x̄) = f(x)' for every input x) and can also be written as a single product of…
- F(A,B,C,D) = 1 exactly when the unsigned number ABCD (A is the MSB) is a prime. How many literals are there in the minimal sum-of-products…
- What is the minimum number of 2-input NOR gates needed to realise A XOR B when only the true inputs A and B are available?
- F(A,B,C,D,E) = E + (A ⊕ B ⊕ C ⊕ D). How many literals does the minimal sum-of-products of F contain?