Skip to content
GATEiit

GATE CSE 2021 Set 2 Q62: Literals in the minimal SOP of a partially specified f(w,x,y,z)

Question

Consider a Boolean function f(w,x,y,z)f(w, x, y, z) such that

f(w,0,0,z)=1f(1,x,1,z)=x+zf(w,1,y,z)=wz+y\begin{aligned} f(w, 0, 0, z) &= 1 \\ f(1, x, 1, z) &= x + z \\ f(w, 1, y, z) &= wz + y \end{aligned}

The number of literals in the minimal sum-of-products expression of ff is ________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 6 (official GATE 2021 final answer key)

Concept used: Fill a 4-variable K-map from the three partial definitions, then find a minimal cover.

First step: Mark the cells: x=0,y=0x=0, y=0 gives four 1s; w=1,y=1w=1, y=1 gives 1 unless x=z=0x = z = 0; x=1x=1 gives 1 when y=1y=1 or wz=1wz=1.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2021 Set 2 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key