GATE Computer ScienceHardGATE CS (PYQ pattern)

How many assignments to x₁, …, x₈ satisfy x₁ ⊕ x₂ ⊕ … ⊕ x₈ = 1 together with ¬(x₁ ∧ x₂) and ¬(x₃ ∧ x₄)?

  1. A. 80
  2. B. 60
  3. C. 96
  4. D. 72

Correct answer: D. 72

Of the 256 assignments, 128 have odd parity. Each of the pairs (x₁,x₂) and (x₃,x₄) has 3 allowed values (00, 01, 10), so 3 · 3 = 9 pair choices; for each, exactly half of the 16 settings of x₅…x₈ (8) give odd total parity: 9 · 8 = 72.

More Discrete Mathematics questions

Exams that ask this topic