An essential prime implicant of a Boolean function is a Prime implicant that covers at least one minterm not covered by any other prime implicant. Because that minterm has only one prime over it, every minimum-cost SOP for must contain this essential — there is no alternative.
Spotting essentials is the first concrete step in K-map and Quine-McCluskey minimisation: include all of them automatically, then worry about the rest.
How to spot them
Walk every on the Karnaugh Map. If exactly one prime implicant covers that (i.e., that is inside only one maximal rectangle), then that prime is essential, and the is its distinguishing minterm.
Some primes have no distinguishing minterm — every they cover is also covered by some other prime. Those primes are non-essential. They might still appear in the minimum cover, but their inclusion is a choice rather than forced.
Worked example
Continuing the four-variable function from Prime implicant with primes:
- covering .
- covering .
- covering .
- covering .
Per-minterm coverage (which primes cover each ):
| Minterm | Covered by primes |
|---|---|
| 0 | , |
| 1 | |
| 2 | , |
| 5 | |
| 6 | |
| 7 | |
| 8 | , |
| 9 | |
| 10 | , |
| 14 |
Distinguishing minterms (covered by only one prime):
- Minterm 1 → only . So is essential.
- Minterm 5 → only . Essential.
- Minterm 6 → only . Essential.
The fourth prime has no distinguishing minterm — every it covers (0, 2, 8, 10) is also covered by an essential. So it is not essential.
After including the three essentials , every minterm of is already covered. The non-essential is redundant; drop it.
Result: — a 7-literal SOP.
Minimisation procedure
The full procedure once primes and essentials are known:
- Identify all prime implicants. (K-map by inspection; Quine-McCluskey for larger functions.)
- Identify all essential primes (each one covers at least one distinguishing minterm). Add all to the cover automatically.
- Check what’s left uncovered. If essentials together cover every , you’re done.
- Cover the remainder with non-essential primes. Choose the cheapest combination — usually pick the prime covering the most uncovered s, repeat.
Step 4 can be hard in pathological cases — it’s the set cover problem, NP-hard in general. For real circuits the input is small enough that greedy heuristics (used by Espresso) produce near-optimum results quickly.
Why “essential” is the term
The word captures the algebraic fact: omitting an essential prime would leave its distinguishing minterm uncovered, making the SOP wrong. There is no substitution. By contrast, removing a non-essential prime might or might not break the cover — depending on whether the minterms it covers are also covered by what remains.
In context
EPIs are step 2 of K-map / Quine-McCluskey minimisation — see Karnaugh Map for the diagrammatic workflow, Implicant for the basic concept, Prime implicant for the maximality refinement that EPIs further refine.