Digital Logic · K-Map Minimization
Introduction to Minimization of Switching Expressions and Cost Criteria
Overview
A switching function can be written as many different but equivalent Boolean expressions. Minimization is the process of choosing the smallest of these equivalent expressions so that the circuit implementing it is easy to build.
The minimized expression must represent exactly the same function as the original.
Key concepts
- Minimization: Given a switching function , find an expression equivalent to that minimizes a chosen cost criterion.
- Equivalence requirement: If is minimized to , then and must be equivalent — for every assignment of all inputs, the output must be the same. Minimization must not change the function value or meaning.
- Literal: Any occurrence of a variable in true form or complemented form. If the variable is , then and are both literals.
- Minimal expression: An expression with the minimum number of terms, and within each term the minimum number of literals, provided no other expression has the same number of terms with fewer literals.
- Uniqueness condition: Once an expression is declared minimal, no other expression should later be found that is also smaller.
- Analogy: Just as a language can have many finite automata but the reduced (minimal) automaton is unique and has fewer states, a switching function has many expressions but the minimal one is what is wanted.
How it works
- Recognize that one function has many representations.
For example, a function of can be written as a canonical sum of products (SOP) with 4 terms, or in another SOP form with only 3 terms where each term also has fewer literals. Both represent the same function. - Compare the representations. The form with fewer terms and fewer literals per term is smaller, so implementing it is easier when building a circuit from scratch. (The larger canonical form can still be useful in some cases later.)
- Fix a cost criterion. Several criteria are possible; one criterion is chosen and applied consistently to minimize all functions.
- Criterion options:
- Minimize the number of appearances of a literal (do not let repeat twice).
- Minimize the number of literals in the SOP or POS form (reduce the number of literals in every minterm, i.e., product term, or every sum term).
- Minimize the number of terms in the SOP expression, provided no other expression has the same number of terms with fewer literals.
- The criterion fixed upon: minimize the number of terms, and within each term minimize the number of literals.
The result is called the minimal expression provided there is no other expression with the same number of terms but fewer literals. - Check the uniqueness condition: no other expression should exist that is also smaller.
Formulas
- Literal: any occurrence of a variable in true form or complemented form; for variable , both and are literals.
- Minimal expression criterion: minimum number of terms in the SOP expression, and within each term minimum number of literals, with no other expression having the same number of terms and fewer literals.
- Equivalence: means for every input assignment, and produce the same output.
Worked examples
Example function of :
- Representation 1: canonical sum of products with 4 terms.
- Representation 2: SOP form with 3 terms, each having fewer literals.
- Both represent the same function. Representation 2 is smaller (fewer terms, fewer literals per term), so it is easier to implement as a circuit.
A function of three variables is to be minimized; the minimization steps themselves follow in the next part.
Comparison
| Representation | Number of terms | Literals per term | Implementation |
|---|---|---|---|
| Canonical SOP | More (e.g., 4) | More | Harder to build from scratch |
| Minimized SOP | Fewer (e.g., 3) | Fewer | Easier to build |
Revision summary
- A switching function has many equivalent expressions; minimization picks the smallest equivalent one.
- Minimization must preserve the function exactly: and equivalent for all input assignments.
- Literal = occurrence of a variable in true or complemented form ( and are both literals).
This term is used repeatedly. - Fixed cost criterion: minimum number of terms, then minimum number of literals per term; minimal means no other expression has the same number of terms with fewer literals.
- The minimal expression should be unique — nothing smaller should be found later.
- Smaller expressions mean easier circuit construction.
Previous-year exam insights
- A literal is a single variable in true or complemented form; a product term with k literals covers minterms in an n-variable function, so fewer literals per term means a larger K-map group.
Asked inGATE 2021 - For a minimal SOP, count the total number of literals summed over all product terms (not literals per term); the same criterion applies to minimal POS with sum terms.
Asked inGATE 2021 - Minimization by K-map is not guaranteed optimal if done greedily: choosing essential prime implicants first and then greedily taking the largest remaining groups can miss a cover with fewer terms/literals; all prime implicants must be considered.
Asked inUGC NET 2015 - A Boolean expression corresponds to a labelled acyclic digraph (circuit/DAG), and the expression with the fewest literals need not correspond to the simplest gate network, because sharing of subexpressions (fan-out) can reduce gate count.
Asked inUGC NET 2015 - Two expressions are equivalent iff they have the same truth table, i.e., the same value for every one of the input assignments; minimization must preserve this exactly (including don't-care handling only where specified).
- Cost criteria used in practice include number of literals, number of terms (gates), number of gate inputs, and literal appearances; the chosen criterion must be fixed before comparing expressions, since different criteria can rank expressions differently.