| • Science | • People | • Locations | • Timeline |
We firstly begin with defining a minterm as a logical expression of n variables consisting of only the logical and operator and complements.
For example, the following are examples of minterms:
There are 2n minterms of n variables - this is true since a variable in the minterm expression can either be in the form of itself or its complement - two choices per n variables.
In general, one assigns each minterm (ensuring the variables are written in the same order, usually alphabetic), an index based on the binary value of the minterm. A complemented term, like a
It is apparent that minterm n gives a true value for the n+1 th unique function input for that logical function. For example, minterm 5, a b
If one is given a truth table of a logical function, it is possible to write the function as a "sum of products" (minterms AND'd in series). This is a special form of conjunctive normal form, qv. For example, if given the truth table
A B f(A, B) 0 0 1 0 1 0 1 0 1 1 1 0observing that the rows that have an output of 1 are the first and third, so we can write f as a sum of minterms m0 and m2.
If we wish to verify this:
then the truth table for this function, by direct computation, will be the same.
Maxterms are a dual of the minterm idea. Instead of using ANDs and complements, we use ORs and complements, and proceed similarly.
For example, the following are examples of minterms:
There are again 2n minterms of n variables - this is true since a variable in the maxterm expression also, can either be in the form of itself or its complement - two choices per n variables.
Indexing maxterms however is done in the opposite way as with minterms. One assigns each maxterm (again, ensuring the variables are written in the same order, usually alphabetic), an index based on the order of its complements, for example, associating the number 6 with a
It can be easily verified by using de Morgan's law, that the complement of a minterm is the respective maxterm. Observe, for example