GATE Computer ScienceHardGATE CS (PYQ pattern)
Over the domain D = {1, 2, 3, 4}, how many interpretations of the binary predicate R make ∀x∀y(R(x, y) → R(y, x)) ∧ ∀x∃y(x ≠ y ∧ R(x, y)) true? (R(x, x) may be true or false.)
- A. 656
- B. 41
- C. 64
- D. 1024
Correct answer: A. 656
R is a symmetric relation: its off-diagonal part is a simple graph on 4 vertices, and the 4 loops are free (2⁴ = 16). The second conjunct says the graph has no isolated vertex: 2⁶ − 4·2³ + 6·2¹ − 4·2⁰ + 1 = 41 such graphs. Total 41 × 16 = 656.
More Discrete Mathematics questions
- How many of the 64 assignments to a, b, c, d, e, f satisfy a ∧ (a → b) ∧ ((b ∧ c) → d) ∧ (d → e) ∧ (e → c) ∧ (¬d ∨ ¬f)?
- On an island knights always tell the truth and knaves always lie. A says 'B is a knave'. B says 'A and C are of the same type'. C says…
- Using only ∧ and ∨ (no negation, no constants), formulas are built from the variables p, q, r. How many pairwise non-equivalent such…
- A Boolean function f of four variables is self-dual if f(x̄₁, x̄₂, x̄₃, x̄₄) = ¬f(x₁, x₂, x₃, x₄). How many self-dual functions of four…
- How many of the following are tautologies? (a) ((p → q) → p) → p (b) (p → q) ∨ (q → p) (c) ((p ∧ q) → r) ↔ (p → (q → r)) (d) ((p → q) ∧ (q…
- A Boolean function is symmetric if its value depends only on the number of 1s in the input. If S(n) is the number of symmetric self-dual…