GATE / CS ARCHIVE

GATE CSE 2025 SET 1 / QUESTION 24

Proving identities of a majority gate

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 2025 Set 1 paper

GATE 2025 Set 1, Q24 1 mark · MSQ
Report issue

Boolean Algebra & Logic Gates

Question 24, GATE 2025: X(a,b,c)=1 precisely when at least two of a,b,c equal 1. Select identities valid for every Boolean input: A X(a,b,X(c,d,e))=X(X(a,b,c),d,e); B X(a,b,X(a,b,c))=X(a,b,c); C X(a,b,X(a,c,d))=X(a,b,a) AND X(c,d,c); D X(a,b,c)=X(a,X(a,b,c),X(a,c,c)).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, D

Approach: Use two basic majority rules: X(u,u,v)=u, and X(0,1,v)=v. Prove claimed identities by cases and reject others with one counterexample.
For B, if a=b then both sides equal a. If a≠b, the outer X(a,b,z) returns z, so the left side becomes X(a,b,c), exactly the right side. Thus B holds.
For D, X(a,c,c)=c. If a=c, both the left side and X(a,X(a,b,c),c) equal a. If a≠c, X(a,b,c)=b, and the right side becomes X(a,b,c)=b. Thus D also holds.
A is not an associative law: choose (a,b,c,d,e)=(0,0,0,1,1). The left side is X(0,0,1)=0, whereas the right side is X(0,1,1)=1.
C fails for (a,b,c,d)=(0,1,1,1). Its left side is X(0,1,1)=1; its right side is X(0,1,0) AND X(1,1,1)=0 AND 1=0.
Therefore select B,D. Equality on a few examples cannot establish an identity, which is why the true cases require a complete case argument.

Original paper, page 24 · Answer key