Skip to content
Official PYQ · 2015

GATE CS 2015 Set 3 Q2 — Sets, Relations and Functions

Explain with AI

Let #\# be the binary operator defined as

X#Y=X′+Y′X\#Y = X'+Y' where XX and YY are Boolean variables.

Consider the following two statements.

  • (S1)(S_1) (P#Q)#R=P#(Q#R)(P\#Q)\#R = P\#(Q\#R)
  • (S2)(S_2) Q#R=(R#Q)Q\#R = (R\#Q)

Which are the following is/are true for the Boolean variables P,QP, Q and RR?

Choose one option
View worked solution

Answer: B

The binary operator #\# is defined as X#Y=X′+Y′X \# Y = X' + Y', which represents the logical NAND operation.

Let us analyze the two statements:

Statement S1S_1: Associativity

We need to check if (P#Q)#R=P#(Q#R)(P \# Q) \# R = P \# (Q \# R).

  • Left-Hand Side (LHS): (P#Q)#R=(P′+Q′)#R=(P′+Q′)′+R′=(P⋅Q)+R′(using De Morgan’s Law)\begin{align*} (P \# Q) \# R &= (P' + Q') \# R \\ &= (P' + Q')' + R' \\ &= (P \cdot Q) + R' \quad \text{(using De Morgan's Law)} \end{align*}
  • Right-Hand Side (RHS): P#(Q#R)=P#(Q′+R′)=P′+(Q′+R′)′=P′+(Q⋅R)(using De Morgan’s Law)\begin{align*} P \# (Q \# R) &= P \# (Q' + R') \\ &= P' + (Q' + R')' \\ &= P' + (Q \cdot R) \quad \text{(using De Morgan's Law)} \end{align*}

Since PQ+R′≠P′+QRPQ + R' \neq P' + QR in general (for example, if P=1,Q=1,R=0P=1, Q=1, R=0, LHS =1⋅1+1=1= 1 \cdot 1 + 1 = 1 while RHS =0+1⋅0=0= 0 + 1 \cdot 0 = 0), the operator is not associative. Thus, S1S_1 is false.

Statement S2S_2: Commutativity

We need to check if Q#R=R#QQ \# R = R \# Q.

  • LHS: Q#R=Q′+R′Q \# R = Q' + R'
  • RHS: R#Q=R′+Q′R \# Q = R' + Q'

Since Boolean addition is commutative (Q′+R′=R′+Q′Q' + R' = R' + Q'), we have Q#R=R#QQ \# R = R \# Q. Thus, the operator is commutative, and S2S_2 is true.

Therefore, only S2S_2 is true.

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

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions