Physics (JEE/NEET)Very hardJEE Main · JEE Advanced

What is the minimum number of 2-input NAND gates needed to build the 3-input majority function (output 1 when at least two inputs are 1)?

  1. A. 6
  2. B. 4
  3. C. 5
  4. D. 7

Correct answer: A. 6

The sum-of-products AB + BC + CA through NANDs needs three NANDs for the products, then a 3-input NAND to OR them, which expands to extra 2-input gates. An exhaustive search over all 2-input NAND networks shows 6 is the minimum.

More Semiconductor Electronics questions

Exams that ask this topic