Skip to content
Official PYQ · 1997

GATE CS 1997 Q71 — Minimization (K-Maps etc.)

Explain with AI

Let f=(wˉ+y)(xˉ+y)(w+xˉ+z)(wˉ+z)(xˉ+z)f=(\bar{w} + y)(\bar{x} +y)(w+\bar{x}+z)(\bar{w}+z)(\bar{x}+z)

  1. Express ff as the minimal sum of products. Write only the answer.

  2. If the output line is stuck at 00, for how many input combinations will the value of ff be correct?

View worked solution

Answer: 9

Part (A): Minimal Sum of Products (SOP)

Given the product-of-sums (POS) expression: f=(wˉ+y)(xˉ+y)(w+xˉ+z)(wˉ+z)(xˉ+z)f = (\bar{w} + y)(\bar{x} + y)(w + \bar{x} + z)(\bar{w} + z)(\bar{x} + z)

We can simplify this using Boolean algebra laws:

  1. Combine terms using the distributive law (A+C)(B+C)=AB+C(A+C)(B+C) = AB+C:
    • (wˉ+y)(xˉ+y)=wˉxˉ+y(\bar{w} + y)(\bar{x} + y) = \bar{w}\bar{x} + y
    • (wˉ+z)(xˉ+z)=wˉxˉ+z(\bar{w} + z)(\bar{x} + z) = \bar{w}\bar{x} + z
  2. Substitute these back into ff: f=(wˉxˉ+y)(wˉxˉ+z)(w+xˉ+z)f = (\bar{w}\bar{x} + y)(\bar{w}\bar{x} + z)(w + \bar{x} + z)
  3. Simplify the first two terms again using the distributive law: (wˉxˉ+y)(wˉxˉ+z)=wˉxˉ+yz(\bar{w}\bar{x} + y)(\bar{w}\bar{x} + z) = \bar{w}\bar{x} + yz
  4. Multiply with the remaining term: f=(wˉxˉ+yz)(w+xˉ+z)f = (\bar{w}\bar{x} + yz)(w + \bar{x} + z) f=wˉxˉw+wˉxˉxˉ+wˉxˉz+wyz+xˉyz+yzf = \bar{w}\bar{x}w + \bar{w}\bar{x}\bar{x} + \bar{w}\bar{x}z + wyz + \bar{x}yz + yz
  5. Since wˉxˉw=0\bar{w}\bar{x}w = 0, and applying the absorption law (A+AB=AA + AB = A): f=wˉxˉ+wˉxˉz+yz(w+xˉ+1)f = \bar{w}\bar{x} + \bar{w}\bar{x}z + yz(w + \bar{x} + 1) f=wˉxˉ+yzf = \bar{w}\bar{x} + yz

Thus, the minimal SOP form is wˉxˉ+yz\bar{w}\bar{x} + yz.

Part (B): Stuck-at-0 Fault Analysis

If the output is stuck at 00, the circuit always outputs 00. The output is correct only when the true function value f=0f = 0.

Let us find the number of input combinations where f=1f = 1:

  • Minterms for wˉxˉ\bar{w}\bar{x} (w=0,x=0w=0, x=0): 22=42^2 = 4 combinations.
  • Minterms for yzyz (y=1,z=1y=1, z=1): 22=42^2 = 4 combinations.
  • Common minterms (wˉxˉyz\bar{w}\bar{x}yz): 11 combination (00110011).

Using the principle of inclusion-exclusion, the total number of combinations where f=1f = 1 is: 4+4−1=74 + 4 - 1 = 7

Since there are 44 variables (w,x,y,zw, x, y, z), the total number of input combinations is 24=162^4 = 16.

The number of combinations where f=0f = 0 (and thus the stuck-at-0 output is correct) is: 16−7=916 - 7 = 9

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Minimization (K-Maps etc.) questions