GATE Computer ScienceModerateGATE CS (PYQ pattern)

Using only ∧ and ∨ (no negation, no constants), formulas are built from the variables p, q, r. How many pairwise non-equivalent such formulas φ satisfy φ(p=1, q=1, r=0) = 0?

  1. A. 6
  2. B. 5
  3. C. 4
  4. D. 18

Correct answer: B. 5

∧/∨ formulas are exactly the non-constant monotone functions. φ(1,1,0) = 0 forces φ = 0 on every point below 110 (000, 100, 010, 110). On the remaining square 001 ≤ 101, 011 ≤ 111 φ is any monotone function (6 of them) except the all-zero one, which would make φ constant: 6 − 1 = 5.

More Discrete Mathematics questions

Exams that ask this topic