Sub topic 11
Minimal POS form from a K-map
This chapter assumes you can fill a K-map from a truth table, use Gray-code adjacency (including wraparound), and form minimal SOP groups of 1s. It also assumes you know De Morgan's laws and the maxterm notation ΠM from the canonical-forms chapter. Here you will get a minimal product-of-sums (POS) expression from the same map by grouping 0s instead of 1s.
Why group the zeros
A POS expression is an AND of sum terms. A sum term (an OR of literals) equals 0 on exactly one block of the truth table, so each sum term "kills" a set of cells. The function is 0 where any sum term is 0 and 1 elsewhere. A K-map group of 0s is therefore one sum term.
The derivation is short:
- Group the 0s of F as if they were 1s of the complement F'. This gives a minimal SOP for F'.
- Complement the result with De Morgan's laws. Each product term of F' becomes a sum term of F, and the OR of products becomes an AND of sums.
The shortcut is to skip the complement and write each sum term directly from its group.
| Value of variable across the group of 0s | Literal written in the sum term |
|---|---|
| Always 0 | The variable, uncomplemented (x) |
| Always 1 | The variable, complemented (x') |
| Changes inside the group | Variable omitted |
This is the reverse of SOP reading. In SOP, a variable that is 1 becomes x. In POS, a variable that is 0 becomes x.
Worked example
Let F(A,B,C,D) = ΠM(0,2,5,7,8,10). Rows are labeled AB and columns CD, both in Gray order 00, 01, 11, 10.
| AB \ CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 1 | 1 | 0 |
| 01 | 1 | 0 | 0 | 1 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 0 |
The 0s form two groups:
- Quad of minterms 0, 2, 8, 10. The four corners are adjacent through wraparound. Here B = 0 and D = 0 throughout, while A and C change. The sum term is (B + D).
- Pair of minterms 5 and 7. Here A = 0, B = 1, D = 1, and C changes. The sum term is (A + B' + D').
So F = (B + D)(A + B' + D').
You can check this with the complement route. The groups of 0s give F' = B'D' + A'BD. Complementing gives F = (B'D')' · (A'BD)' = (B + D)(A + B' + D'). This matches the direct reading.
Comparing with the minimal SOP
Grouping the 1s of the same map gives F = B'D + BD' + AB. That is 3 product terms and 6 literals. The POS form has 2 sum terms and 5 literals. Neither form always wins, so a question that asks for the "minimal POS" needs the POS map reading. Converting the minimal SOP to POS algebraically does not guarantee a minimal result.
Checking the result in code
This script confirms the POS expression against the truth table. Minterm number m is read as the bits ABCD, with A as the most significant bit.
zeros = {0, 2, 5, 7, 8, 10}
def pos(a, b, c, d):
return int((b or d) and (a or not b or not d))
ok = True
for m in range(16):
a, b, c, d = (m >> 3) & 1, (m >> 2) & 1, (m >> 1) & 1, m & 1
expected = 0 if m in zeros else 1
ok = ok and (pos(a, b, c, d) == expected)
print(ok)It prints True.
Rules for choosing groups
The rules match SOP minimization, with 0s in place of 1s:
- Every group has a size of 1, 2, 4, 8, or 16 cells and is a rectangle on the map. Wraparound is allowed on the left-right edges and the top-bottom edges.
- Make each group as large as possible. A larger group drops more variables.
- A group that cannot be enlarged is a prime implicate. This is the POS counterpart of a prime implicant.
- A prime implicate that covers a 0 no other prime implicate covers is essential. Select the essential ones first.
- Cover the remaining 0s with as few extra groups as possible. Overlap is allowed.
- Never include a cell with F = 1 in a group.
Don't-cares in POS
A don't-care cell (X) may be treated as 0 or as 1, whichever gives a larger group. In a POS map, include an X in a group of 0s only if it makes that group larger or lets you use fewer groups. Do not circle X cells that would form a group on their own, because no 0 needs them. Each X you include is implemented as 0, and each X you leave out is implemented as 1. The chosen function is then not the same as one where you made different choices, which is acceptable because the specification does not care about those inputs.
Common errors
- Reading SOP literals. For a group of 0s with A = 1, write A' and not A. A quick check is to put a sum term's literals all at 0. The term is 0 only when every literal is 0, and that must match the group's cell.
- Writing products inside a group. A group becomes a sum of its literals, not a product.
- Forgetting the outer AND. Different groups are joined by AND.
- Dropping the wrong variable. A variable is omitted only if it takes both 0 and 1 inside the group.
- Grouping 1s by mistake. Mark the 0s in a different way before grouping so you do not drift back to SOP.
Practice
Exercise
F(A,B,C) = ΠM(3,4). Find the minimal POS expression.
Show answer
The cells 011 (minterm 3) and 100 (minterm 4) are not adjacent, so each is its own group. Minterm 3 has A=0, B=1, C=1, giving the term (A + B' + C'). Minterm 4 has A=1, B=0, C=0, giving (A' + B + C). So F = (A + B' + C')(A' + B + C).
Exercise
F(A,B,C,D) = ΠM(0,2) with don't-cares d(8,10). All other cells are 1. Find the minimal POS expression.
Show answer
Treat 8 and 10 as 0 so the four corners 0, 2, 8, 10 form one quad. In this quad B = 0 and D = 0, while A and C change, so the sum term is (B + D). F = B + D. It is 0 on the required cells 0 and 2 and 1 on every other required cell.