Introduction

Algebraic minimization rewrites a Boolean expression using identities until literal count, term count, or gate count drops, without changing the truth table. It is the syllabus's first minimization technique: no map drawing, no tabular covering. For two or three variables it is often enough; for four or more, Karnaugh Maps and Quine-McCluskey scale better, but algebraic steps still justify every grouping those methods find.

Prerequisites

Core concepts

What "minimal" means

Common objectives (state which one a question wants):

  • Fewest literals in an SOP (or POS).
  • Fewest product terms, then fewest literals as a tie-break.
  • Fewest gates in a two-level AND-OR (or OR-AND) network, counting inverters separately or not as the question says.

Algebraic minimization is not guaranteed to reach a global minimum without a systematic method; it is guided search using identities.

Cost conventions. For f=ab+a′cf = ab + a'c (complemented literals available for free):

MeasureValueHow it is counted
Product terms2abab, a′ca'c
Literals4a,b,a′,ca, b, a', c
Gates (two-level)3two ANDs and one OR
Gate inputs62+22 + 2 at the ANDs, 2 at the OR

If complemented inputs are not available, add one inverter per complemented variable (here one, for a′a'). A single-literal term needs no AND gate, so it adds a literal and an OR input but no gate.

Identities used as rewrite rules

RuleFormTypical use
Idempotentx+x=xx+x=x, xx=xxx=xdrop duplicates
Complementx+x′=1x+x'=1, xx′=0xx'=0eliminate pairs
Absorptionx+xy=xx+xy=x, x(x+y)=xx(x+y)=xdrop covered terms
Combiningxy+xy′=xxy + xy' = xmerge adjacent minterms
Consensusxy+x′z+yz=xy+x′zxy+x'z+yz = xy+x'zdrop redundant consensus term
Distributivefactor or expandenable combining
De Morganpush NOTsNAND/NOR conversion
x+x′y=x+yx+x'y=x+ycommon simplification

Combining is the algebraic form of circling two adjacent 1s on a K-map: the changing variable drops out.

How it works

Pattern: reduce a sum of products

  1. Look for pairs of terms that differ in one literal; combine them.
  2. Absorb terms contained in others.
  3. Factor common literals to expose new combinations.
  4. Apply consensus to delete redundant terms.
  5. Stop when no rule reduces literal or term count; verify by truth table if unsure.

Pattern: reduce a product of sums

Dual steps: combine sums that differ in one literal, absorb, distribute carefully, apply dual consensus.

Multi-level factoring

Two-level minimal SOP is not always the cheapest in gates once shared factors are allowed. Example: f=ab+ac+ad=a(b+c+d)f = ab + ac + ad = a(b+c+d) saves gates. Multi-level minimization is largely heuristic in this setting; mention factoring when a common literal is obvious.

Adding a term to remove others

Sometimes the shortest route first adds a redundant consensus term, uses it to combine or absorb, and only then deletes. For f=xy+yz′+x′zf = xy + yz' + x'z:

  1. The consensus of yz′yz' and x′zx'z (opposed variable zz) is x′yx'y. Adding it does not change ff: f=xy+yz′+x′z+x′yf = xy + yz' + x'z + x'y.
  2. Combine xy+x′y=yxy + x'y = y: f=y+yz′+x′zf = y + yz' + x'z.
  3. Absorb yz′yz' into yy: f=y+x′zf = y + x'z.

Six literals became three. Deleting whole terms cannot reach this form; it needs the literal xx dropped from xyxy, which is legal only because the other two terms already cover x′yx'y. Finding that cover is exactly what the consensus step does.

Minimal POS through the complement

To minimize as a product of sums, minimize f′f' as a sum of products, then apply De Morgan once. For f=x′+yzf = x' + yz: f′=x(yz)′=xy′+xz′f' = x(yz)' = xy' + xz', so f=(x′+y)(x′+z)f = (x' + y)(x' + z). Here the SOP (3 literals) is cheaper than the POS (4 literals); for other functions the POS wins, so compare both when a question asks for the cheaper two-level form.

Equivalence and non-equivalence

  • To prove two expressions equal, transform one into the other by identities, or compare complete truth tables.
  • To disprove, one distinguishing input suffices: xy+x′zxy + x'z and y+zy + z differ at x=1,y=0,z=1x = 1, y = 0, z = 1 (left 0, right 1).

Worked discipline. An identity in nn variables is proved by its 2n2^n-row truth table. For n≤3n \le 3 that is quick enough to do by hand in an exam, and it is the safest final check of an algebraic answer.

Algorithms and pseudocode

There is no short complete algorithm short of Quine-McCluskey. A practical greedy sketch (terms are products of literals):

Text
ALGEBRAIC-REDUCE-SOP(terms)
1  repeat
2      if two terms P, Q are identical except that one variable appears
3          complemented in P and uncomplemented in Q then replace them by
4          the common part R (the combining rule xy + xy' = x)
5      remove any term absorbed by another
6      remove any term equal to the consensus of two other terms
7  until no change
8  return terms

Always finish with an equivalence check against the original truth table for worked examples.

The loop is greedy: it never adds terms, so it can miss reductions such as the consensus-addition example above, and it can stop at a form that is irredundant (no term or literal can be deleted) but not minimum. Its cost per pass is O(k2n)O(k^2 n) for kk terms over nn variables.

Mathematical explanation

Prime implicants (preview). A product term PP is an implicant of ff if P=1P=1 implies f=1f=1. It is prime if deleting any literal destroys that property. A minimal SOP is always a sum of prime implicants (possibly not all of them). Algebraic combining finds prime implicants; essential ones must appear in every minimal SOP. Full covering is the Quine-McCluskey chart step.

Why minimal SOPs use only primes. If a minimal SOP contained a non-prime implicant PP, some literal could be deleted from PP leaving an implicant P∗P^{*} that covers everything PP covered and more, still inside ff. Replacing PP by P∗P^{*} lowers the literal count without changing ff, a contradiction.

Minimal forms need not be unique. f=x′y+y′z+xz′f = x'y + y'z + xz' equals ∑m(1,2,3,4,5,6)\sum m(1, 2, 3, 4, 5, 6), and so does xy′+yz′+x′zxy' + yz' + x'z. Both have three terms and six literals, and no two-term SOP exists. Such cyclic functions have no essential prime implicant; see Quine-McCluskey Method.

Irredundant is weaker than minimum. An SOP is irredundant when no term and no literal can be removed. For f=∑m(1,2,3,4,5,6)f = \sum m(1,2,3,4,5,6) above, the four-term SOP x′y+xy′+x′z+xz′x'y + xy' + x'z + xz' covers {2,3},{4,5},{1,3},{4,6}\{2,3\}, \{4,5\}, \{1,3\}, \{4,6\}, and removing x′zx'z leaves m1m_1 uncovered, removing xz′xz' leaves m6m_6 uncovered, removing x′yx'y leaves m2m_2 uncovered, removing xy′xy' leaves m5m_5 uncovered, and every term is already prime. It is irredundant, yet it has four terms where three suffice.

Worked examples

Example 1: combine and absorb

f=xyz+xyz′+x′yf = xyz + xyz' + x'y. Combine first two: xy(z+z′)=xyxy(z+z')=xy. Then xy+x′y=y(x+x′)=yxy + x'y = y(x+x')=y. So f=yf=y. Check: whenever y=1y=1, original has a 1 from x′yx'y or from xy(⋅)xy(\cdot); whenever y=0y=0, every term is 0.

Example 2: consensus cleanup

f=ac+a′b+bcf = ac + a'b + bc. Consensus of acac and a′ba'b is bcbc, so f=ac+a′bf = ac + a'b.

Example 3: the x+x′yx+x'y rewrite

f=a+a′b+cd=a+b+cdf = a + a'b + cd = a + b + cd after a+a′b=a+ba+a'b=a+b, then nothing absorbs cdcd.

Example 4: POS style

f=(x+y)(x+y′)(x′+z)f = (x+y)(x+y')(x'+z). Combine first two: (x+y)(x+y′)=x+yy′=x(x+y)(x+y')=x+yy'=x. Then x(x′+z)=xx′+xz=xzx(x'+z)=xx'+xz=xz. So f=xzf=xz.

Example 5: factoring for multi-level

Start with

f=ab′c+ab′d+a′bc+a′bd.f = ab'c + ab'd + a'bc + a'bd.

Factor by pairs:

f=ab′(c+d)+a′b(c+d)=(ab′+a′b)(c+d)=(a⊕b)(c+d).f = ab'(c+d) + a'b(c+d) = (ab' + a'b)(c+d) = (a\oplus b)(c+d).

The factored circuit shares (c+d)(c+d) and may exploit an XOR primitive. This is not a reduction in strict two-level AND-OR product terms: expanding the XOR and the factor restores the four original products, all essential under that model. Compare costs only after specifying the available gates and number of levels.

Example 6: eliminate by complement pairs

g=(x+y+z)(x+y+z′)(x′+y)g = (x+y+z)(x+y+z')(x'+y). The first two factors combine on zz (dual combining rule (A+z)(A+z′)=A(A + z)(A + z') = A): (x+y+z)(x+y+z′)=x+y(x+y+z)(x+y+z') = x+y. Then (x+y)(x′+y)=y+xx′=y(x+y)(x'+y) = y + xx' = y by the distributive law of OR over AND. So g=yg=y.

Example 7: count literals before and after

Expression h=xy+xy′z+x′yzh = xy + xy'z + x'yz (8 literals).

  1. xy+xy′z=x(y+y′z)=x(y+z)=xy+xzxy + xy'z = x(y + y'z) = x(y + z) = xy + xz, using y+y′z=y+zy + y'z = y + z. Now h=xy+xz+x′yzh = xy + xz + x'yz.
  2. xz+x′yz=z(x+x′y)=z(x+y)=xz+yzxz + x'yz = z(x + x'y) = z(x + y) = xz + yz. Now h=xy+xz+yzh = xy + xz + yz.
  3. Can yzyz be dropped by consensus? Consensus removes yzyz only next to a pair such as xyxy and x′zx'z, with xx opposed. Here xx is uncomplemented in both xyxy and xzxz, so no. Indeed at x=0,y=1,z=1x = 0, y = 1, z = 1 only yzyz is 1.

Final h=xy+xz+yzh = xy + xz + yz, the majority function: 6 literals, down from 8. Its minterms are {3,5,6,7}\{3, 5, 6, 7\}.

Example 8: XOR expressions

  • a⊕ab=a(1⊕b)=ab′a \oplus ab = a(1 \oplus b) = ab', using x⊕xy=x(1⊕y)x \oplus xy = x(1 \oplus y) (AND distributes over XOR).
  • a⊕b⊕ab=a+ba \oplus b \oplus ab = a + b.
  • (a⊕b)(a+b)=a⊕b(a \oplus b)(a + b) = a \oplus b, since a⊕b=1a \oplus b = 1 forces a+b=1a + b = 1 (absorption with XOR).

Example 9: complement of an SOP

(ab+c′d)′=(ab)′(c′d)′=(a′+b′)(c+d′)(ab + c'd)' = (ab)'(c'd)' = (a' + b')(c + d'). Multiplying out gives a′c+a′d′+b′c+b′d′a'c + a'd' + b'c + b'd', the SOP of the complement, with no further reduction (four prime implicants, all needed).

Important properties and observations

  • Combining requires opposite literals of the same variable and identical other literals.
  • Never cancel across unlike terms without a justifying identity (students invent xy+x′z=y+zxy+x'z=y+z, which is false).
  • Algebra can increase size temporarily (expand to combine) before shrinking.

Common misconceptions.

  • "Any SOP with prime implicants is minimal." Need a minimum cover; extras can be non-essential.
  • "Algebra always finds the unique minimum." Minima need not be unique; algebra may stop at a local form.
  • "xy+x′z=y+zxy + x'z = y + z." False: at x=1,y=0,z=1x = 1, y = 0, z = 1 the left side is 0 and the right side 1. The only legal consequence of the pair is the consensus term yzyz, which can be added or removed.
  • "An irredundant SOP is minimal." It may still use more terms than necessary (four against three in the cyclic example).
  • "Simplification only ever deletes." Adding a consensus term first can unlock a combination.

GATE examination perspective

  • STEPWISE SIMPLIFICATION. Show each identity; final answer matched to options.
  • EQUIVALENCE CHECK. When two options remain, compare on a single distinguishing input.
  • LITERAL COUNT. Count every variable appearance after simplification.
  • NAND CONVERSION AFTERWARD. Minimize in AND-OR, then rewrite with De Morgan.
  • HIDDEN CONSENSUS. If no pair combines, look for a consensus term that, once added, combines with an existing term (xy+yz′+x′z=y+x′zxy + yz' + x'z = y + x'z).
  • SOP VERSUS POS COST. Minimize f′f' for the POS; the cheaper of the two can differ.
  • COST MEASURE. Literals, terms, gates and gate inputs give different counts; read which one is asked.

Summary

Sources

  1. M. Morris Mano, M. D. Ciletti, Digital Design, 5th ed., Pearson, 2013: Chapter 2 (Boolean algebra theorems used as rewrite rules) and Chapter 3 introduction (gate-level minimization goals).

Next steps