How this calculation works
Minimize a Boolean function given required one-minterms and optional don’t-care minterms. The tool finds prime implicants and searches for a minimum cover, first minimizing the number of product terms and then total literals. It returns a sum-of-products representation and verifies it on every specified truth-table row. Don’t-care assignments may be covered or omitted.
Minimize (number of product terms, then total literal count) among exact two-level SOP covers.A worked example
Minterms 1,3,5,7 all have least significant bit one. The minimized function is x0, one product term with one literal. A dash in the displayed cube means that input bit is omitted; minterm and dont-care lists must be disjoint.
Good to know
1–6 variables, disjoint distinct minterm/dont-care lists. Exact prime-implicant cover search capped at 1,000,000 states; no optimum returned after cap exhaustion. Objective prioritizes term count then literal count, not gate delay, hazards or multilevel circuit cost.
Reference: Method reference: Boolean expression minimizer from minterms and dont cares (opens in a new tab) ↗
The three kinds of truth-table rows
A listed minterm must evaluate to one. A listed don’t-care can evaluate either way, and every unlisted assignment must evaluate to zero. The two entered sets must be disjoint.
Minterm numbers use binary assignments in the stated variable order. A don’t-care is permission to choose a convenient value, not a request for an unknown output at runtime. Changing its value in a minimized expression is valid only if the application truly permits that freedom.
Constructs valid prime implicants from Boolean semantics and supplies a minimized expression, rather than accepting a prebuilt cover matrix. The Linear extension count calculator for a partially ordered set offers a complementary calculation under its own stated assumptions.
Combining cubes into prime implicants
Two binary patterns differing in one fixed bit can combine by replacing that bit with a dash. Repeated combination produces cubes representing several assignments.
A prime implicant cannot be expanded further without covering a required-zero row. The tool generates such candidates from minterms and don’t-cares, then discards candidates that cover no required one. A dash means a variable is absent from that product term; it is not a third Boolean value.
Worked example and mathematical rule
Minterms 1,3,5,7 all have least significant bit one. The minimized function is x0, one product term with one literal. A dash in the displayed cube means that input bit is omitted; minterm and dont-care lists must be disjoint.
Minimize (number of product terms, then total literal count) among exact two-level SOP covers.
Minimum terms before minimum literals
Several prime implicants may be needed to cover all required minterms. The exact search prioritizes the fewest product terms and breaks ties with total literal count.
This is a specific optimization objective, not a claim to minimize transistor count, delay or every gate-library cost. Two equally optimal expressions can exist. Search order may select one representation without changing its term and literal totals.
Constant functions and empty sets
If no minterms are required, the constant-zero function is a valid optimum even when don’t-cares are present. If every assignment can be covered without hitting a specified zero, a constant-one term may be possible.
Empty don’t-care input is legitimate. Duplicate minterm labels add no information and are rejected rather than counted several times. Be careful not to confuse an empty list with minterm zero, which names one particular assignment.
Truth-table certification
After selecting a cover, the implementation evaluates it on every assignment not marked don’t-care. Required ones must be covered and required zeros must remain uncovered.
That check certifies logical equivalence on the specified domain. The exhaustive cover search establishes the stated optimum only when it completes inside its state cap. A capped search is reported as an error, not a nearly minimal expression dressed as a proven minimum.
Hardware interpretation and hazards
A logically minimal sum of products may still have static hazards when inputs change at different times. Adding a redundant consensus term can improve hazard behavior while deliberately increasing the minimum literal count.
Factoring the expression into multiple logic levels can also change implementation cost. Use this result for two-level Boolean simplification, and evaluate timing and hardware constraints separately. ANF and Walsh analysis use XOR algebra and should not be substituted for this OR-based cover problem.
A few questions, answered
Must don’t-cares evaluate to one?
No. They may be covered or omitted to simplify the function.
What is minimized first?
Product-term count, followed by literal count among ties.
Is the result guaranteed hazard-free?
No. Logical equivalence and minimum two-level cost do not establish timing behavior.
Is an empty minterm list allowed?
Yes. Constant zero is then a valid minimum.