GateAI
Boolean Algebra and Minimization

GATE CSE 2021 Set 2 · Q52

NAT2 marksMedium

Time

Consider a Boolean function f(w,x,y,z)f(w, x, y, z) such that f(w,0,0,z)=1f(w, 0, 0, z) = 1 f(1,x,1,z)=x+zf(1, x, 1, z) = x + z f(w,1,y,z)=wz+yf(w, 1, y, z) = wz + y The number of literals in the minimal sum-of-products expression of ff is __________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 6

Boolean Algebra and Minimization

Let us analyze the given conditions to determine the minimal sum-of-products (SOP) expression for f(w,x,y,z)f(w, x, y, z):

  1. From $f(w, 0, 0, z) = 1$:When x=0x=0 and y=0y=0, the function is identically 11, giving the product term x‾y‾\overline{x}\overline{y}.

  2. From $f(w, 1, y, z) = wz + y$:When x=1x=1, the function outputs wz+ywz + y. Multiplying by xx gives the terms xy+wxzxy + wxz.

  3. From $f(1, x, 1, z) = x + z$:When w=1w=1 and y=1y=1, the function outputs x+zx + z. This gives terms wxy+wyzwxy + wyz.

Combining these conditions into a single Boolean expression:

f(w,x,y,z)=x‾y‾+xy+wzf(w, x, y, z) = \overline{x}\overline{y} + xy + wz

Let us verify all three conditions with f(w,x,y,z)=x‾y‾+xy+wzf(w, x, y, z) = \overline{x}\overline{y} + xy + wz:

  • f(w,0,0,z)=(1)(1)+(0)(0)+wz=1f(w, 0, 0, z) = (1)(1) + (0)(0) + wz = 1

  • f(1,x,1,z)=x‾(0)+x(1)+(1)z=x+zf(1, x, 1, z) = \overline{x}(0) + x(1) + (1)z = x + z

  • f(w,1,y,z)=(0)y‾+(1)y+wz=y+wzf(w, 1, y, z) = (0)\overline{y} + (1)y + wz = y + wz

All conditions are satisfied.

In the minimal SOP expression:

f=x‾y‾+xy+wzf = \overline{x}\overline{y} + xy + wz
  • x‾y‾\overline{x}\overline{y} contains 2 literals (x‾,y‾\overline{x}, \overline{y})

  • xyxy contains 2 literals (x,yx, y)

  • wzwz contains 2 literals (w,zw, z)

Total number of literals=2+2+2=6\text{Total number of literals} = 2 + 2 + 2 = 6

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Boolean Algebra and Minimization previous year question is Q52 of the GATE CSE 2021 Set 2 paper. Find more GATE CSE PYQs on Boolean Algebra and Minimization in Digital Logic, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Boolean Algebra and Minimization PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Boolean Algebra and Minimization in GATE CSE

Boolean Algebra and Minimization has 36 GATE CSE PYQs across 23 papers from 2011 to 2026. 2 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2021 Set 2.

How GATE tests Boolean Algebra and Minimization

More from GATE CSE 2021 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2021 Set 2 · Q52 · NAT

Consider a Boolean function f(w, x, y, z) such that f(w, 0, 0, z) = 1 f(1, x, 1, z) = x + z f(w, 1, y, z) = wz + y The number of literals in the minimal sum-of-products expression of f is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.