GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Compose Boolean functions as minterm sets

4 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Treat each ON-set as a set of indices; implement AND by intersection, OR by union, NOT by complement and XOR by symmetric difference; solve or compute the requested network set.

2 marks · MSQ
Report issue

Compose minterm sets through AND, OR and XOR

Boolean Algebra & Logic Gates

Question 50, GATE 2024: Four-input-variable Boolean functions have minterm sets f1={0,2,3,5,7,8,11,13}, f2={1,3,5,7,11,13,15}, f3={0,1,4,11}, f4={0,2,6,13}. Circuit Y=(f1 AND f2) XOR (f3 OR f4). Which are correct? A Y=Σ(0,1,2,11,13); B Y=Π(3,4,5,6,7,8,9,10,12,14,15); C Y=Σ(0,1,2,3,4,5,6,7); D Y=Π(8,9,10,11,12,13,14,15).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Approach: Treat each function’s one-set as a set: AND intersects, OR unites, XOR takes symmetric difference.

1. Derivation. The circuit first ANDs f1 and f2, whose common minterms are{3, 5, 7, 11, 13}. The OR of f3, f4 has minterms{0, 1, 2, 4, 6, 11, 13}. The final XOR keeps their symmetric difference, cancelling11, 13 and giving{0, 1, 2, 3, 4, 5, 6, 7}. Its complementary maxterm indices are 8 through 15. Hence C, D. The final gate was visually confirmed to be XOR, not OR.

2. Explanation and checks. At indices 11 and 13 both intermediate gates output 1, so XOR outputs 0; an OR final gate would incorrectly keep them. At 3,5,7 only the AND branch is 1; at 0,1,2,4,6 only the OR branch is 1. All eight indices 0 through 7 therefore survive. A product-of-maxterms lists zero positions rather than one positions, so complementing this set inside the 16 possible inputs yields D, an equivalent representation to C.

Original paper, page 35 · Answer key

2 marks · MCQ
Report issue

Combining Boolean on-sets

Boolean Algebra & Logic Gates

Question 30, GATE 2019: The on-sets of four-variable functions are f1={0,2,5,8,14}, f2={2,3,6,8,14,15}, f3={2,7,11,14}. A circuit ANDs f1 and f2, then XORs that output with f3. Find the output minterms: A {7,8,11}; B {2,7,8,11,14}; C {2,14}; D {0,2,3,5,6,7,8,11,14,15}.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. An on-set lists the input minterms on which a Boolean function equals 1. Working with these sets avoids expanding every minterm into a product of four literals.
2. The AND output is 1 only where both f1 and f2 are 1. Their intersection is H={2,8,14}; all other minterms make the AND output zero.
3. XOR is 1 precisely when its inputs differ. Therefore the final on-set is the symmetric difference of H and the on-set of f3, not their ordinary union.
4. Minterms 2 and 14 occur in both sets, so XOR makes them zero. Minterm 8 occurs only in H, while 7 and 11 occur only in f3, so these three survive.
5. The result is f=Σ(7,8,11), option A. Option B would correspond to OR at the second stage, illustrating why the XOR symbol matters.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Compatible minterms of an internal signal

Boolean Algebra & Logic Gates

Question 8, GATE 2008: An AND gate combines f₁ and f₂, and its output is ORed with f₃ to produce f. Given f₁=Σm(4,5,6,7,8), f₃=Σm(1,6,15), f=Σm(1,6,8,15), which offered f₂ works?

(A) Σm(4,6)
(B) Σm(4,8)
(C) Σm(6,8)
(D) Σm(4,6,8)
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. The circuit computes f=(f1∧f2)∨f3. Minterm8 must be supplied through f1f2, while 4,5,7 must not be introduced.
2. Of the options, only f2=Σm(6,8) meets these conditions, giving final set{1,6,8,15}, C. The internal function is not uniquely determined over all possible minterms: values outside f1’s support are irrelevant and minterm 6 is already covered by f3.
3. C is the unique compatible supplied choice.

Original paper, page 3

2 marks · MCQ
Report issue

Solving for a NAND-network input

Boolean Algebra & Logic Gates

Question 2.1, GATE 2002: A circuit connects f₁ and f₂ to a two-input NAND gate, inverts f₃ with a NOT gate, and feeds these two outputs to another two-input NAND gate whose output is f. Given f₁(x,y,z)=Σm(0,1,3,5), f₂(x,y,z)=Σm(6,7), and f(x,y,z)=Σm(1,4,5), find f₃.
(A) Σm(1,4,5); (B) Σm(6,7); (C) Σm(0,1,3,5); (D) None of these.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: Apply De Morgan’s law at the final gate.

Step 2: The first NAND outputs¬(f1f2), and the lower inverter outputs¬f3. The final NAND complements their conjunction, giving f1f2+f3. Because no minterm belongs to both{0,1,3,5} and{6,7}, the product f1f2 is identically zero. Therefore the third input must equal the required output, not either of the two earlier input functions.

Conclusion: The network computes f=¬(¬(f1f2)·¬f3)=f1f2+f3. The minterm sets of f1 and f2 are disjoint, so f1f2=0. Hence f3=f=Σ(1,4,5), A.

Original paper, page 3