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₁?
- A. 8
- B. 9
- C. 25
- 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
- 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…
- A Boolean function f of four variables is self-dual if f(x̄₁, x̄₂, x̄₃, x̄₄) = ¬f(x₁, x₂, x₃, x₄) for every input, and monotone if a ≤ b…
- Out of the 16 binary Boolean operators, how many are BOTH commutative and associative?
- Which of the following sets of connectives are functionally complete? I. {→, ⊥} II. {↔, ⊕} III. {→, ⊕} IV. {∧, ∨, →} V. {↛, ⊤} (↛ is 'p…
- Which of the following sets of connectives are functionally complete (no constants may be used unless they can be built from the…
- Which of the following first-order formulas are valid (true in every interpretation over every non-empty domain)? I. ∃x(P(x) → Q(x)) ↔ (∀x…