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.)

  1. A. 656
  2. B. 41
  3. C. 64
  4. 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

Exams that ask this topic