Boolean Algebra 1
Boolean Algebra 1
BIT102-Computer Mathematics
1
1 BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
1.1 Boolean Operations and Expressions
2
1.1.8 Boolean Algebra operations
Here we sail through the basic operations of Boolean algebra, we relate with some concept from
set theory.
(i) Conjunction or AND operation ∧
Figure 1: A conjunction B
Figure 2: A disconjunction B
3
Figure 3: Negation of A
The above dened operations are the basic and most important operations performed in Boolean
algebra. Hence, we will see that this algebra is far away from elementary algebra algebra where
the values of variables are numerical and arithmetic operations.
We now present a table dening the symbols for all three basic operations discussed earlier.
4
It is very much possible to convert the boolean equation into a truth table.
Corollary 1.1.13. Let R be the number of rows in the truth table. Then R = 2n , where n is
the number of variables in the equation.
Example 1.1.14. If a boolean equation consists of 4 variables, How many number of rows will
its truth table have?
Solution
By the Corollary 1.1.13, we have that the number of rows, R is given by 2n , where n is the
number of variables. Now since n = 4, the number of rows is
R = 2n
= 24
= 16
A+B+C
5
(iv) Logical AND-ing of the two or more variables is represented by writing a dot · between
then such as A · B · C . In other literature's, they omit the dot and write ABC .
We now discuss the six types of Boolean algebra laws.
(i) Commutativity
The law states that changing the sequence of the variables does not have any eect on
the output of a logic circuit.
(ii) Associativity
(A + B) + C = A + (B + C)
(iii) Distributivity
A + (B · C) = (A + B) · (A + C)
The following laws use the AND operation and they are therefore said to be AND laws.
If A is a variable, then
(1) A·0=0
(2) A·1=A
(3) A·A=A
(4) A · Ā = 0
(v) OR Law
OR laws are laws that uses the OR operation. Suppose that A is a variable, then
(1) A + 0 = A
(2) A + 1 = 1
(3) A + A = A
6
(4) A + Ā = 1
(6) Inversion Law
The inversion law uses the NOT operation. This law states that double inversion of
a variable results in the original variables itself. That is
 = A
The complement of two or more ORed variables is equivalent to AND of the complements
of the individual variables.
Example 1.1.18. Prove De Morgans First law using the truth table.
Proof
By De Morgans First Law, we have that if A and B are variables then
A · B = Ā + B̄