Raw

6. Control questions and tasks / Контрольні запитання і завдання

Boolean functions and truth tables

  1. In what ways can a Boolean function be specified (formula, truth table, …)? What are the trade-offs?
  2. How many interpretations, and how many rows, does the truth table of an nn-variable function have? How do you order the rows in the standard way?
  3. How is the number of an interpretation read from a row? Build the truth table of g(x,y)=xyg(x,y) = \overline{x} \vee y and state which two-variable connective it is.
  4. Describe, step by step, how to go from a formula to its truth table (as in Task 1). Why is it enough to evaluate the formula “inside-out”?

Connectives, precedence, and the laws

  1. State the value of ABA \to B as a formula in ¬,\neg,\vee. When is ABA \to B false?
  2. State the precedence of ¬,,,,\neg,\wedge,\vee,\to,\leftrightarrow. Fully parenthesise xyztx \vee \overline{y}\,z \to t.
  3. State both De Morgan laws and the distributive laws. Which pair does the heavy lifting when reducing to a normal form?
  4. Which two formulas are called equivalent? Give two ways to check equivalence (truth tables; a chain of laws).

Normal forms (DNF and CNF)

  1. Define a literal, a term (elementary conjunction), and a clause (elementary disjunction).
  2. Define DNF and CNF. Which is a sum of products and which a product of sums? Which does a SAT solver take as input?
  3. Give the three-step recipe for reducing a formula to DNF or CNF, and say which distributive direction each form uses.
  4. In a reduction, what does a term containing both xx and x\overline{x} equal, and what does a clause containing both equal? How does each affect a DNF vs. a CNF?

Tasks by hand

  1. Reduce x(yx)x \to (y \to x) to CNF. What special formula is it?
  2. Reduce (xy)(xz)(x \wedge y) \vee (\overline{x} \wedge z) — already a DNF — to CNF by distributing \vee over \wedge.
  3. Show, by simplifying with the laws, that (xy)(xy)\overline{(x \to y)} \wedge (x \to y) is a contradiction (0\equiv 0).

Practical/Practical3/6questions.md · 2.1 KB · updated 2026-07-31 21:14