Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Canonical form (Boolean algebra)


 

In a Boolean algebra, a Boolean function that is composed of standard logical operators can be expressed in a canonical form using the dual concepts of a minterms and maxterms.

1 Minterms

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:

a b'c
a' b c

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.

1.1 Indexing minterms

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' is considered a binary 0 and a noncomplemented term like a is considered a binary 1. For example, one would associate the number 6 with a b c'(1102), and write the minterm expression as m6. So m0 of three variables is a'b'c'(0002) and m7 would be a b c(1112).

2 Functional equivalence

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' c, is true only when a and c both are - the input where a = 1, b = 0, c = 1 results in 1.

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 0

observing 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:

g(a,b) = m0 + m2 = (a'b')+(ab')

then the truth table for this function, by direct computation, will be the same.

3 Maxterms

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:

a+b'+c
a'+b+c

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.

3.1 Indexing maxterms

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'+b'+c, but writing M6. So M0 of three variables is now a b c and M7 would be a'b'c'.

3.2 Dualization

It can be easily verified by using de Morgan's law, that the complement of a minterm is the respective maxterm. Observe, for example

m2' = M2
(a+b')'= a'b


Read more »

Non User