Browse course

Tutorial 5. Boolean satisfiability

Exercise sheet
Truth-function representations

We looked at how to read off a Boolean expression from a truth-table. Apply the method to the following:

Inspect the resulting Boolean expressions. Can you simplify them while remaining in DNF?

Circuit representations

We’ve observed that our relay circuits are essentially build up from relay implementations of NOT (default “on”) and AND (default “off”). Use the idea to represent the following circuits as Boolean expressions:

   

Are the resulting formulas in normal form (CNF or DNF)?

Equivalence

The XNOR function is special: it expresses that X and Y have the same value—just check the table!

  1. Find the simplest representation of XNOR in terms of NOT and XOR.

    Hint: Inspect XNOR and XOR’s function tables, how are they related?

  2. Use this implementation to reduce the verification problem for a relay circuit from two SAT problems for different sets (as in the text) to a single SAT problem for a single expression.

    Hint: Think about when X XNOR Y is true and when X XOR Y is true.

Truth tables

Use the truth-table method to check whether the following claims are true:

  1. The set of expressions ((NOT X) OR (NOT Y)) and (X AND Y) is SAT.

  2. The set formulas { Negation RAIN, (RAIN Disjunction ( Negation WIND Conjunction RAIN) } is SAT.

Mystery formula

Determine the following “mystery formula” form its truth-table:

What’s the shortest representation of the formula you can find?

Normal Forms

Transform the following formulas into DNF and CNF:

  1. (RAIN Conjunction Negation (SUN Disjunction Negation RAIN))
  2. ( Negation RAIN Disjunction Negation ( Negation RAIN Disjunction WIND))
  3. (RAIN Conjunction Negation SUN) Disjunction ( Negation RAIN Conjunction Negation SUN)
Resolution

Use the resolution method to determine whether the following formulas are satisfiable:

  1. (SUN Disjunction RAIN Disjunction Negation WIND) Conjunction (SUN Disjunction Negation RAIN Disjunction Negation WIND)
  2. Negation (SUN Conjunction RAIN) Disjunction (WIND Conjunction Negation WIND)
  3. (SUN Disjunction RAIN) Conjunction (SUN Disjunction Negation RAIN) Conjunction ( Negation SUN Disjunction RAIN) Conjunction ( Negation SUN Disjunction Negation RAIN)
  4. (SUN Conjunction (SUN Disjunction RAIN)) Conjunction (RAIN Conjunction (RAIN Disjunction SUN))
Valid inference

Determine whether the following inferences are valid using both the truth-table and the resolution method. Which one is faster?

  1. Negation RAIN Therefore RAIN Disjunction ( Negation RAIN Conjunction SUN)

  2. RAIN Disjunction (RAIN Conjunction WIND) Therefore RAIN Disjunction SUN