GATE Computer ScienceHardGATE CS (PYQ pattern)

How many of the 256 assignments to x₁, …, x₈ satisfy all of: x₁ → x₂, x₂ → x₃, x₃ → x₄, x₅ → x₆, x₆ → x₇, x₇ → x₈, x₄ → ¬x₅ and x₈ → x₁?

  1. A. 8
  2. B. 9
  3. C. 25
  4. D. 5

Correct answer: A. 8

Each chain is 0…01…1. If x₈ = 0 the second chain is all 0 and the first chain is free: 5. If x₈ = 1 then x₁ = 1, so x₁…x₄ are all 1, which forces x₅ = 0; the second chain then has 1, 2 or 3 ones: 3. Total 8 (forgetting x₅ = 0 gives 9; ignoring the cross clauses gives 25).

More Discrete Mathematics questions

Exams that ask this topic