GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Among the C(16,4) = 1820 four-variable Boolean functions with exactly four minterms, how many have a minimal sum-of-products with exactly two product terms?

  1. A. 24
  2. B. 1216
  3. C. 352
  4. D. 376

Correct answer: C. 352

Two terms covering exactly four minterms must be two disjoint K-map edges (two 2-minterm cubes). There are 32 edges, C(32,2) = 496 pairs, of which 16·C(4,2) = 96 share a vertex, leaving 400 disjoint pairs. A 2-face (single term AB-type, 24 of them) contains 2 such pairs, so 48 pairs give a 1-term function. Any other 4-set has at most one perfect matching by edges (two would form a 4-cycle, i.e. a face), so the count is 400 − 48 = 352.

More Digital Logic questions

Exams that ask this topic