GATE Computer ScienceEasyGATE CS (PYQ pattern)

A Boolean function f(x, y, z) is monotone if a ≤ b componentwise implies f(a) ≤ f(b). How many monotone functions satisfy f(1, 0, 0) = 0 and f(0, 1, 1) = 1?

  1. A. 6
  2. B. 4
  3. C. 20
  4. D. 9

Correct answer: D. 9

f(1,0,0) = 0 forces f(0,0,0) = 0; f(0,1,1) = 1 forces f(1,1,1) = 1. Only f(0,1,0) ≤ f(1,1,0) and f(0,0,1) ≤ f(1,0,1) remain free, each a monotone pair with 3 choices (00, 01, 11), so 3 × 3 = 9.

More Discrete Mathematics questions

Exams that ask this topic