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?

  1. A. 56
  2. B. 96
  3. C. 72
  4. 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

Exams that ask this topic