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
- Canonical Forms and Functional Completeness: SOP/POS, minterms, De Morgan.
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 (complemented literals available for free):
| Measure | Value | How it is counted |
|---|---|---|
| Product terms | 2 | , |
| Literals | 4 | |
| Gates (two-level) | 3 | two ANDs and one OR |
| Gate inputs | 6 | at the ANDs, 2 at the OR |
If complemented inputs are not available, add one inverter per complemented variable (here one, for ). 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
| Rule | Form | Typical use |
|---|---|---|
| Idempotent | , | drop duplicates |
| Complement | , | eliminate pairs |
| Absorption | , | drop covered terms |
| Combining | merge adjacent minterms | |
| Consensus | drop redundant consensus term | |
| Distributive | factor or expand | enable combining |
| De Morgan | push NOTs | NAND/NOR conversion |
| common 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
- Look for pairs of terms that differ in one literal; combine them.
- Absorb terms contained in others.
- Factor common literals to expose new combinations.
- Apply consensus to delete redundant terms.
- 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: 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 :
- The consensus of and (opposed variable ) is . Adding it does not change : .
- Combine : .
- Absorb into : .
Six literals became three. Deleting whole terms cannot reach this form; it needs the literal dropped from , which is legal only because the other two terms already cover . Finding that cover is exactly what the consensus step does.
Minimal POS through the complement
To minimize as a product of sums, minimize as a sum of products, then apply De Morgan once. For : , so . 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: and differ at (left 0, right 1).
Worked discipline. An identity in variables is proved by its -row truth table. For 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):
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 termsAlways 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 for terms over variables.
Mathematical explanation
Prime implicants (preview). A product term is an implicant of if implies . 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 , some literal could be deleted from leaving an implicant that covers everything covered and more, still inside . Replacing by lowers the literal count without changing , a contradiction.
Minimal forms need not be unique. equals , and so does . 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 above, the four-term SOP covers , and removing leaves uncovered, removing leaves uncovered, removing leaves uncovered, removing leaves 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
. Combine first two: . Then . So . Check: whenever , original has a 1 from or from ; whenever , every term is 0.
Example 2: consensus cleanup
. Consensus of and is , so .
Example 3: the rewrite
after , then nothing absorbs .
Example 4: POS style
. Combine first two: . Then . So .
Example 5: factoring for multi-level
Start with
Factor by pairs:
The factored circuit shares 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
. The first two factors combine on (dual combining rule ): . Then by the distributive law of OR over AND. So .
Example 7: count literals before and after
Expression (8 literals).
- , using . Now .
- . Now .
- Can be dropped by consensus? Consensus removes only next to a pair such as and , with opposed. Here is uncomplemented in both and , so no. Indeed at only is 1.
Final , the majority function: 6 literals, down from 8. Its minterms are .
Example 8: XOR expressions
- , using (AND distributes over XOR).
- .
- , since forces (absorption with XOR).
Example 9: complement of an SOP
. Multiplying out gives , 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 , 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.
- "." False: at the left side is 0 and the right side 1. The only legal consequence of the pair is the consensus term , 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 ().
- SOP VERSUS POS COST. Minimize 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
- 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).