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)?
- A. 110
- B. 96
- C. 128
- 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
- How many Boolean functions of 4 variables are both monotone (non-decreasing in every variable) and self-dual (f(x̄1,…,x̄4) = complement of…
- Five states of a sequential machine are encoded with distinct 3-bit codes. Two assignments are considered equivalent if one can be…
- A 3-bit Gray-code sequence lists all 8 codes exactly once, with consecutive codes differing in exactly one bit (the last need not be…
- A 3-bit synchronous circuit of D flip-flops has D2 = Q1, D1 = Q0 ⊕ Q2, D0 = NOT(Q2 · Q1). Starting from Q2Q1Q0 = 010, how many distinct…
- A Mealy machine has states A–G with (next state / output) entries for inputs 0 and 1: A: B/0, C/0; B: A/0, D/0; C: E/0, F/1; D: E/0, F/1…
- F(A,B,C,D) = A·C' + B·C + A'·C·D is implemented as a two-level AND–OR circuit with exactly these three product terms. Considering…