GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 7(a)

Implement a Boolean function using one complement

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 2002 paper

GATE 2002, Q7(a) Descriptive
Report issue

Boolean Algebra & Logic Gates

Question 7(a), GATE 2002: Rewrite f(x,y,z)=xy′+yz′ using only one complementation and one or more AND/OR operations. Draw a circuit for that expression using a single NOT gate and AND/OR gates.
Question 7(a), GATE 2002: Rewrite f(x,y,z)=xy′+yz′ using only one complementation and one or more AND/OR operations. Draw a circuit for that expression using a single NOT gate and AND/OR gates.
Tap to enlarge
Shared context

Part (a) implements f(x,y,z) = xy′ + yz′ with one complement. Part (b) independently converts a drawn three-AND/two-OR circuit to exactly six two-input NAND gates.

Answer & solution

Answer: f = (x + y) · (yz)′ (no official key was published)

1. Start from the given f(x,y,z) = xy′ + yz′. Complementing y and z separately would require two NOT operations, so that direct sum-of-products implementation does not satisfy the restriction.

2. Search for a single complemented compound expression. De Morgan’s law gives (yz)′ = y′ + z′, so one NOT gate applied after AND(y,z) can generate the required complemented combination.

3. Verify the proposed factorization algebraically:
(x+y)(yz)′ = (x+y)(y′+z′) = xy′ + xz′ + yy′ + yz′ = xy′ + xz′ + yz′.

4. Show that xz′ is redundant rather than dropping it without justification. Split it by y: xz′ = xz′(y+y′) = xyz′ + xy′z′. The first term is already covered by yz′; the second is covered by xy′. Absorption therefore leaves precisely xy′ + yz′.

5. Implement the verified expression f = (x+y)(yz)′. Use t1 = OR(x,y), t2 = AND(y,z), t3 = NOT(t2), then f = AND(t1,t3):

x,y ---> OR --------- t1 ---\
                              AND ---> f
y,z ---> AND ---> NOT -- t3 -/

6. Count the gates: one OR, two AND gates, and exactly one NOT. The complemented quantity is yz, not either individual input. An exhaustive check of all eight input combinations independently confirms the identity.

Original paper, page 7