Worked Example 3.2.1.
Determine a Boolean polynomial \(p(x,y)\) that has the truth table below.
\(x\) | \(y\) | \(p(x,y)\) |
\(1\) | \(1\) | \(1\) |
\(1\) | \(0\) | \(0\) |
\(0\) | \(1\) | \(0\) |
\(0\) | \(0\) | \(1\) |
Solution.
We want a “true” output when the inputs match the first or fourth rows, and only then. The inputs match the first row precisely when both \(x\) and \(y\) are true (i.e. when the conjunction \(x \lgcand y\) is true), and they match the fourth row precisely when both \(x\) is not true and \(y\) is not true (i.e. when the conjunction \(x' \lgcand y'\) is true). So take the disjunction of these two conjunctions: \(p(x,y) = (x \lgcand y) \lgcor (x' \lgcand y')\text{.}\)