3.1.10 · D4Boolean Algebra & Logic Gates

Exercises — Product of sums (POS) form

2,433 words11 min readBack to topic

Throughout, a literal means a variable in true form () or complemented form (). A sum term is a pure OR of literals, like . A maxterm is a sum term that equals at exactly one row (row ) and everywhere else.


Level 1 — Recognition

Exercise 1.1

Which of these expressions are in product-of-sums form? For each, say yes/no and why.

  • (a)
  • (b)
  • (c)
  • (d)
Recall Solution 1.1

POS = an AND of pure-OR sum terms. Check each factor is a pure OR and the factors are ANDed.

  • (a) Yes. Two sum terms and , joined by AND. ✓
  • (b) No. This is — an OR of AND terms. That is sum-of-products (Sum of products (SOP) form), the dual. ✗
  • (c) Yes. A single sum term is a valid (trivial) product of one factor. ✓
  • (d) No. The second factor contains an AND () inside it. A sum term must be pure OR. ✗

Exercise 1.2

For a 3-variable function, identify the maxterm written below and state the one row where it equals :

Recall Solution 1.2

A maxterm is only when every literal is . Set each literal to :

So the killing row is . As a binary number . Answer: this is ; it equals at row only.


Level 2 — Application

Exercise 2.1

Write the maxterm for the 3-variable row (row ).

Recall Solution 2.1

Rule: complement a variable if it is in this row, plain literal if it is .

  • → plain

Maxterm . Check: plug in : . ✓

Exercise 2.2

A 3-variable function has at rows and everywhere else. Write its canonical POS.

Recall Solution 2.2

Write one maxterm per row (flip variables that are ).

Row maxterm
1
4
6

AND them:

Exercise 2.3

Same function as 2.2. Write it in the shorthand and the complementary SOP shorthand .

Recall Solution 2.3
  • at rows .
  • The remaining rows carry : .

Cross-check: the eight rows split with no overlap: covers all exactly once. ✓ (See Minterms and maxterms.)


Level 3 — Analysis

Exercise 3.1

Convert this SOP function to canonical POS without a full truth table where possible, then verify with the table:

Recall Solution 3.1

WHAT: POS uses the rows where — i.e. the rows not in the minterm list. WHY: by the identity (see De Morgan's theorems), the POS list is the complement of the SOP list.

All 3-variable rows: . Remove the rows : So . Expand:

Row maxterm
1
2
4
7

Verify: row 0 (): every factor has at least one plain that is ? Factor 1 , factor 2 , factor 3 , factor 4 → product . Table says row 0 is a minterm (). ✓

Exercise 3.2

Take the POS (a 2-variable, non-canonical form). Show it simplifies, and give its canonical POS.

Recall Solution 3.2

Simplify algebraically. Use the distributive law for OR over AND (the dual of ordinary distribution): (Here always.) So .

Canonical POS of (2 variables ): exactly when , i.e. rows (row 0) and (row 2).

  • Row 0 ():
  • Row 2 ():

Interesting: the original two factors were already the two canonical maxterms — it was canonical all along, and it happens to equal the single variable .


Level 4 — Synthesis

Exercise 4.1

Design a majority function that is when two or more of the three inputs are . Build its truth table, then give the canonical POS.

Recall Solution 4.1

Truth table when the number of s is :

# #ones
0 0 0
1 1 0
2 1 0
3 2 1
4 1 0
5 2 1
6 2 1
7 3 1

at rows → POS uses these.

Row maxterm
0
1
2
4

Exercise 4.2

Simplify the majority POS from 4.1 using a Karnaugh map of the zeros, and give the reduced POS.

Recall Solution 4.2

For POS we group the 0s on the K-map (Karnaugh maps). The four zeros are at . See the map below.

Figure — Product of sums (POS) form

Group the zeros into pairs (each pair = one simplified sum term; write the literal that stays constant across the pair, complemented if it is ):

  • Rows : constant ( varies) → sum term .
  • Rows : constant ( varies) → sum term .
  • Rows : constant ( varies) → sum term .

Together these three pairs cover all four zeros ( is shared). This is the classic minimal POS for majority: "at least two of the three must be ." Verify row 3 (): . ✓ Row 1 (): . ✓


Level 5 — Mastery

Exercise 5.1

A 4-variable safety interlock must be (locked) at exactly these input rows: . Everywhere else it is . Give the canonical POS , then confirm the SOP row-count by complement.

Recall Solution 5.1

Rows given directly: at .

Write each maxterm (variables ; flip if ):

Row maxterm
0
5
10
15

SOP count check: a 4-variable table has rows. at rows, so . The complement of within is — exactly minterms. ✓

Exercise 5.2

For the same of 5.1, translate the canonical POS into a two-level AND-of-OR gate circuit and count gates and inputs (assume gates of any fan-in are available). See Logic gates.

Recall Solution 5.2

Canonical POS maps to a standard two-level OR–AND structure:

  • First level: one OR gate per maxterm. There are maxterms → 4 OR gates, each with 4 inputs.
  • Second level: one AND gate combining the four OR outputs → 1 AND gate with 4 inputs.

Totals: gates. First-level inputs: literal connections; second-level inputs: . Each variable also needs its complement available (inverters), but the two-level logic count is 5 gates.

Figure — Product of sums (POS) form

Why exactly two levels: POS is by construction an AND (outer) of ORs (inner). Signals pass through one OR then one AND — that is the defining "two-level" depth, which minimises propagation delay.

Exercise 5.3

Prove, using the complement identity, that for any -variable function the number of maxterms in its canonical POS plus the number of minterms in its canonical SOP equals .

Recall Solution 5.3

WHAT: Let = set of rows where , and = set of rows where . WHY the identity applies: By , the canonical POS has exactly one maxterm per row in , so its count is . The canonical SOP has one minterm per row in , so its count is . The finish: every one of the rows has equal to exactly one of or — there is no third value and no overlap. So and partition all rows: Hence (#maxterms) + (#minterms) .

Sanity check with 5.1: maxterms, minterms, . ✓


Active recall


Connections

  • Sum of products (SOP) form — the dual you cross-check against (row lists are complementary).
  • Minterms and maxterms — the atoms every exercise here is built from.
  • De Morgan's theorems — the engine behind used in 3.1 and 5.3.
  • Truth tables — the source of the rows.
  • Karnaugh maps — grouping zeros in 4.2.
  • Logic gates — the two-level AND-of-ORs circuit in 5.2.