Section 5.3 Canonical (Standard) Forms
Some terminology and definitions at this point will help our discussion. Consider two dictionary definitions of βliteralβ from Merriam-Websters's Online Dictionary[18]:- literal
-
(1) Adhering to fact or to the ordinary construction of primary meaning of a term or expression : ACTUAL
(2) Of, relating to, or expressed in letters.
int xyz = 123; char a = 'b'; char *greeting = "Hello";
123
, the character 'b'
, and the string "Hello"
are all literals. They are interpreted by the compiler exactly as written (without the quotation marks). On the other hand, xyz
, a
, and greeting
are all names of variables. By the way, *greeting
is a pointer variable that contains the address of the first characters in the text string, "Hello"
.
In mathematics we use the second definition of literal. That is, in the algebraic expression
- literal
The presence of a variable or its complement in an expression.
- Product Term
A term in which all the literals are connected with AND operators. AND is multiplicative, hence the use of βproduct.β
- Sum of Products (SoP)
One or more product terms connected with OR operators. OR is additive, hence the use of βsum.β
- Minterm or Standard Product Term
A product term that contains all the variables in the problem, either in its uncomplemented or complemented form. For example, if a problem involves three variables,
and then and are all minterms, but is not.- Canonical Sum or Sum of Minterms (SoM)
a sum of products in which each product term is a minterm. Since all the variables are present in each minterm, the canonical sum is unique for a given problem.
minterm | |||
- Sum Term
A term in which all the literals are connected with OR operators. OR is additive, hence the use of βsum.β
- Product of Sums (PoS)
One or more sum terms connected with AND operators. AND is multiplicative, hence the use of βproduct.β
- Maxterm or Standard Sum Term
A sum term that contains all the variables in the problem, either in its uncomplemented or complemented form. For example, if a problem involves three variables,
and then and are all maxterms, but is not.- Canonical Product or Product of Maxterms (PoM)
A product of sums in which each sum term is a maxterm. Since all the variables are present in each maxterm, the canonical product is unique for a given problem.
maxterm | |||
minterm | maxterm | |||