Question

The total number of prime implicants of the function f(w,x,y,z)=∑(0,2,4,5,6,10)f(w, x, y, z) = \sum(0, 2, 4, 5, 6, 10) is _____.

Official answer and solution
Official answer
3
From
Official GATE 2015 answer key

Solution

Plot minterms on a 4-variable Karnaugh map and identify all maximal rectangular implicants.

The minterms of f(w,x,y,z)f(w, x, y, z) are: m0(0000),m2(0010),m4(0100),m5(0101),m6(0110),m10(1010)m_0(0000), m_2(0010), m_4(0100), m_5(0101), m_6(0110), m_{10}(1010).

Examine possible group formations:

  1. Minterms {m0,m2,m4,m6}\{m_0, m_2, m_4, m_6\}:
    • Binary: 0000,0010,0100,01100000, 0010, 0100, 0110.
    • They form a 4-cell group covering all cells with w=0w = 0 and z=0z = 0.
    • Product term: w′z′w' z'. This cannot be expanded further, so it is a Prime Implicant.
  1. Minterms {m4,m5}\{m_4, m_5\}:
    • Binary: 0100,01010100, 0101.
    • They differ only in zz, giving product term w′xy′w' x y'.
    • Since m5m_5 shares no other adjacent minterms in the function, this 2-cell group is maximal and is a Prime Implicant.
  1. Minterms {m2,m10}\{m_2, m_{10}\}:
    • Binary: 0010,10100010, 1010.
    • They differ only in ww, giving product term x′yz′x' y z'.
    • Since m8m_8 is not a minterm, this 2-cell group cannot expand into a 4-cell corner group. Thus, x′yz′x' y z' is maximal and is a Prime Implicant.

All 6 minterms are covered by these 3 prime implicants (w′z′,w′xy′,x′yz′w'z', w'xy', x'yz'), and no other maximal groups exist.
Hence, the total number of prime implicants is 3.

Final answer

3

Common trap

Counting essential prime implicants instead of total prime implicants, or missing the vertical 2-cell wrap-around group {m2, m10}.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 3
Question
53 of 65, printed as CS Q.43
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.