Explore Related Concepts


boolean algebra practice problems
Best Results From Wikipedia Yahoo Answers Youtube
From Wikipedia
Boolean algebra (or Boolean logic) is a logical calculus of truth value s, developed by George Boole in the 1840s. It resembles the algebra of real numbers, but with the numeric operations of multiplication xy, addition xnbsp;+nbsp; y, and negation minus; x replaced by the respective logical
In Boolean algebra, any Boolean function can be expressed in a canonical formusing the dual concepts of minterms and maxterms. Minterms are called products because they are thelogical AND of a set of variables, and maxterms are called sums because they are the logical OR of a set of variables (further definition appears in the sections headed Minterms and Maxterms below). These concepts are called duals because of their complementarysymmetry relationship as expressed by De Morgan's laws, which state that AND(x,y,z,...) = NOR(x',y',z',...) and OR(x,y,z,...) = NAND(x',y',z',...) (the apostrophe ' is an abbreviation for logical NOT, thus " x' " represents " NOT x ", the Boolean usage " x'y + xy' " represents the logical equation " (NOT(x) AND y) OR (x AND NOT(y)) ").
The dual canonical forms of any Boolean function are a "sum of minterms" and a "product of maxterms." The term "Sum of Products" or "SoP" is widely used for the canonical form that is a disjunction (OR) of minterms. Its De Morgan dual is a "Product of Sums" or "PoS" for the canonical form that is a conjunction (AND) of maxterms. These forms allow for greater analysis into the simplification of these functions, which is of great importance in the minimization or other optimization of digital circuits.
Summary
The usual purpose of doing Boolean algebra is to simplify the design of a digital circuit that performs a function, either to minimize the number of gates, or to minimize the time for the value of the function to settle down after a change in its input(s), or some other practical criterion.
There are sixteen possible functions of two variables, but in digital logic hardware, the simplest gate circuits implement only four of them: conjunction(AND),disjunction(inclusive OR), and the complements of those (NAND and NOR).
Most gate circuits accept more than 2 input variables; for example, the spaceborne Apollo Guidance Computer, which pioneered the application of integrated circuits in the 1960s, was built with only one type of gate, a 3input NOR, whose output is true only when all 3 inputs are false.
Minterms
For a boolean function of n variables {x_1,\dots,x_n}, a product term in which each of the n variables appears once (in either its complemented or uncomplemented form) is called a minterm. Thus, a minterm is a logical expression of n variables that employs only the complement operator and the conjunction operator.
For example, abc, ab'c and abc' are 3 examples of the 8 minterms for a Boolean function of the three variables a, b and c. The customary reading of the last of those is a AND b AND NOTc.
There are 2^{n} minterms of n variables, since a variable in the minterm expression can be in either its direct or its complemented formtwo choices per n variables.
Indexing minterms
In general, one assigns each minterm an index based on a conventional binary encoding of the complementation pattern of the variables (where the variables in all the minterms are written in the same order, usually alphabetical). This convention assigns the value 1 to the direct form (x_i) and 0 to the complemented form (x'_i). For example, we assign the index 6 to the minterm a b c' (110) and denote that minterm as m_6. Similarly, m_0 of the same three variables is a' b' c' (000), and m_7 is a b c (111).
Functional equivalence
It is apparent that minterm n gives a true value (i.e., 1) for just one combination of the input variables. For example, minterm 5, ab' c, is true only when a and c both are true and b is falseâ€”the input arrangement 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". This is a special form of disjunctive normal form. For example, if given the truth table for the arithmetic sum bit u of one bit position's logic of an adder circuit, as a function of x and y from the addends and the carry in, ci:
Observing that the rows that have an output of 1 are the 2nd, 3rd, 5th, and 8th, we can write u as a sum of minterms m_1, m_2, m_4, and m_7. If we wish to verify this: u(ci, x, y) = m_1 + m_2 + m_4 + m_7 = (ci' x' y) + (ci' x y') + (ci x' y') + (ci x y) evaluated for all 8 combinations of the three variables will match the table.
Maxterms
For a boolean function of n variables {x_1,\dots,x_n}, a sum term in which each of the n variables appears once (in either its complemented or uncomplemented form) is called a maxterm. Thus, a maxterm is a logical expression of n variables that employs only the complement operator and the disjunction operator. Maxterms are a dual of the minterm idea (i.e., exhibiting a complementary symmetry in all respects). Instead of using ANDs and complements, we use ORs and complements and proceed similarly.
For example, the following are two of the eight maxterms of three variables:
 a+b'+c
 a'+b+c
There are again 2^{n} maxterms of n variables, since a variable in the maxterm expression can also be in either its direct or its complemented formtwo choices per n variables.
Indexing maxterms
Each maxterm is assigned an index based on the opposite conventional binary encoding used for minterms. The maxterm convention assigns the value 0 to the direct form (x_i) and 1 to the complemented form (x'_i). For example, we assign the index 6 to the maxterm a' + b' + c (110) and denote that maxterm as M_{6}. Similarly M_{0} of these three variables is a + b + c (000) and M_{7} is a' + b' + c' (111).
Functional equivalence
It is apparent that maxterm n gives a false value (i.e., 0) for just one combination of the input variables. For example, maxterm 5, a' + b + c', is false only when a and c both are true and b is falseâ€”the input arrangement where a = 1, b = 0, c = 1 results in 0.
If one is given a truth table of a logical function, it is possible to write the function as a "product of sums". This is a special form of conjunctive norm
From Yahoo Answers
Answers:See the examples in the site below. They're in Matlab, but they are easy to understand, so that you can repeat the reasoning in any other language. Good luck!
Answers:Your derivation is not correct. On the very first step, you applied the conversion: A'B'C ==> A'B'(C+C') which is illegal. I suspect you were thinking of the similar expansion: A'B' ==> A'B'(C+C') This is OK because "C" is a "don't care"; however, in the original case, the C *is* specified. However, to prove that your derivation is incorrect, consider the input of 011. A=0 B=1 C=1 Then evaluate the original expression: F = A'B'C + AB'C' + A'B'C' + A'BC' + AB'C F = 101 + 000 + 100 + 110 + 001 F = 0 + 0 + 0 + 0 + 0 F = 0 However, evaluating your expression: F = A'B + AB' F = 11 + 00 F = 1 + 0 F = 1 The generated outputs are not the same, therefore, the expressions are not equal. Instead, the reduction should be as follows. Given: F = A'B'C+AB'C'+A'B'C'+A'BC'+AB'C Rearrange: F = A'B'C'+A'B'C+AB'C'+AB'C + A'BC' Replicate A'B'C': F = A'B'C'+A'B'C+AB'C'+AB'C + A'BC'+A'B'C' Group and reduce: F = (A'B'C'+A'B'C) + (AB'C'+AB'C) + (A'BC'+A'B'C') F = (A'B')+(AB')+(A'C') F = A'B'+AB'+A'C' Group again, and reduce F = (A'B'+AB')+A'C' F = (B')+A'C' F = B'+A'C' This is the minimal sum of products expression.
Answers:Given: (A+BC')' XOR (A'B + C) To simplify this, try converting it to AND's and OR's using the transformation a XOR b = (ab') + (a'b) [ (A+BC')' & (A'B + C)' ] + [ (A+BC') & (A'B + C) ] Apply DeMorgan's theorem: [ (A'&(B'+C)) & ((A+B')&C') ] + [ (A+BC') & (A'B + C) ] Distribute terms and multiply: (A'B' + A'C) & (AC' + B'C') + (A+BC') & (A'B + C) A'B'AC' + A'CAC' + A'B'B'C' + A'CB'C' + AA'B + A'BBC' + AC + BC'C Simplify: 0 + 0 + A'B'C' + 0' + 0 + A'BC' + AC + 0 A'B'C' + A'BC' + AC Factor and reduce: A'C' (B' + B) + AC A'C' (1) + AC A'C' + AC However, now recognize that this can be rewritten with XOR: A' XOR C ANSWER: Reduced expression is: A' XOR C As a quick verification, the following program evaluates the three expressions: f1 = original expression f2 = minimized sumofproducts f3 = XOR version for all possible values of a, b, and c. #include
Answers:The answer is C because Jimbo Ruqus said so.
From Youtube