Question

Consider three 4-variable functions f1,f2,f_1, f_2, and f3f_3, which are expressed in sum-of-minterms as

f1=∑(0,2,5,8,14),f2=∑(2,3,6,8,14,15),f3=∑(2,7,11,14)f_1 = \sum (0, 2, 5, 8, 14), \quad f_2 = \sum (2, 3, 6, 8, 14, 15), \quad f_3 = \sum (2, 7, 11, 14)

For the following circuit with one AND gate and one XOR gate, the output function ff can be expressed as:

Logic circuit with inputs f1 and f2 into an AND gate, whose output enters an XOR gate alongside input f3 to produce output f
Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2019 answer key

Solution

Compute the minterm expressions for the AND and XOR gates in the circuit.

We are given the minterms of three 4-variable functions:

  • f1=∑(0,2,5,8,14)f_1 = \sum (0, 2, 5, 8, 14)
  • f2=∑(2,3,6,8,14,15)f_2 = \sum (2, 3, 6, 8, 14, 15)
  • f3=∑(2,7,11,14)f_3 = \sum (2, 7, 11, 14)

From the circuit diagram:

  1. The inputs to the AND gate are f1f_1 and f2f_2. The output of an AND gate corresponds to the set intersection of their minterms:
fAND=f1∩f2={0,2,5,8,14}∩{2,3,6,8,14,15}={2,8,14}f_{\text{AND}} = f_1 \cap f_2 = \{0, 2, 5, 8, 14\} \cap \{2, 3, 6, 8, 14, 15\} = \{2, 8, 14\}
  1. The inputs to the XOR gate are fANDf_{\text{AND}} and f3f_3. The output of an XOR gate corresponds to the symmetric difference of their minterm sets:
f=fAND⊕f3={2,8,14}⊕{2,7,11,14}f = f_{\text{AND}} \oplus f_3 = \{2, 8, 14\} \oplus \{2, 7, 11, 14\}

Common minterms are {2,14}\{2, 14\}. Removing them from the union gives:

f={8}∪{7,11}={7,8,11}f = \{8\} \cup \{7, 11\} = \{7, 8, 11\}

Thus, the output function is f=∑(7,8,11)f = \sum (7, 8, 11).

Final answer

A

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

Source

Paper
GATE 2019 Computer Science and Information Technology (CS)
Question
40 of 65, printed as CS Q.30
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.