GATE Computer ScienceVery hardGATE CSE · UGC NET

A threshold function is f(x) = 1 iff w1·x1 + w2·x2 + w3·x3 ≥ T for some real weights and threshold. How many of the 256 Boolean functions of three variables are threshold functions (the constant functions included)?

  1. A. 110
  2. B. 96
  3. C. 128
  4. D. 104

Correct answer: D. 104

Of the 256 functions, exactly 104 are linearly separable (searching integer weights up to ±7 with all useful thresholds; the rest, such as XOR-type functions, are not).

More Digital Logic questions

Exams that ask this topic