GATE Computer ScienceHardGATE CS
Which of the following sets of connectives are functionally complete (no constants may be used unless they can be built from the connectives themselves)? I. {↔, ∨} II. {⊕, →} III. {↛} IV. {↛, ↔} (p ↛ q means p ∧ ¬q)
- A. II and IV only
- B. I, II and IV only
- C. II only
- D. II, III and IV only
Correct answer: A. II and IV only
Post's criteria: I preserves 1 (both ↔ and ∨ give 1 on all-ones), III preserves 0, so neither is complete. II: p → p = 1, then 1 ⊕ p = ¬p and {→, ¬} is complete. IV: p ↔ p = 1, ¬p = 1 ↛ p and p ∧ q = p ↛ ¬q, so {∧, ¬} is obtained.
More Discrete Mathematics questions
- 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…
- Which of the following first-order formulas are valid? I. ∀x(P(x) ∨ Q(x)) → (∀x P(x) ∨ ∃x Q(x)) II. (∃x P(x) ∧ ∃x Q(x)) → ∃x(P(x) ∧ Q(x))…
- 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))…
- 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…