A Boolean algebra is the mathematics of logic. George Boole, in 1806 developed this algebra. Boolean algebra is a set of rules, laws and theorems by which Boolean functions or logic functions can be expressed mathematically. It is a convenient tool for expressing and analyzing the behavior of Boolean functions and logic operations
The logic operations of Boolean Algebra are:
The AND operations performs logical multiplication. This operation is denoted by (.) between binary variables. The rules of AND operation are:
The ‘OR’ operation performs logical addition. This operation is denoted by (+) operator between binary variables. The rules of OR operation are:
The ‘NOT’ operation performs complement operation. This operation is denoted by bar ( ͞ ) over the binary variables. The rules of NOT operation are:
A Boolean function is a function that can be represented by binary variables. Two operators (AND and OR) 1 binary (NOT =, AND =) for example: F(A, B) = A' B + AB. At any value of its binary varibales a Boolean function always has two outputs either ‘0’ or ‘1’.
For the given example, the Boolean function gives an output ‘1’ when A=0 and B=1 or when A=1 and B=0. When A=0 and B=0 then this Boolean function gives an output ‘0’
A Boolean function or logic function can be systematically expressed or describes in terms of truth table.
A truth tables is a table that describes the behavior of Boolean function or logic function in order to describe any Boolean function or logic function in terms of we need 2n binary input combinations from binary 0 to binary 2n-1, where ‘n’ is the member of input variables. A truth tables shows all possibilities of their inputs with corresponding output
Q. A Boolean function has 3 inputs and 1 output. The output of this Boolean function is 1 whenever the inputs has more 1’s than 0’s otherwise the output of this Boolean function will be zero. Provide truth table.
Q. a Boolean function has 3 inputs and 1 output. The output of this function may be zero when the inputs have 2 adjacent 1’s otherwise the output this Boolean function will be one provide truth table
Q. A Boolean function has 3 inputs and 1 output the output of the circuit will be one ‘1’ whenever their input have odd number of zero. Otherwise the output of the circuit will be zero ‘0’
Q. A Boolean circuit has 3 inputs A, B, C and 3 outputs. X, Y, Z when the input is binary 0, 1, 2, 3 then output is greater than the input. When the input is 4, 5, 6 or 7 then binary output is 1 less than input. Provide the truth table
Prove that:
A + AB = A
A + (1 + B)
using
The commutative law of Boolean algebra for two variable in ‘OR’ operation is defined as A + B = B + A. this law states that order in which variables 0 Red. Difference similarlB the commutative law of Boolean algebra in AND operation is defined as A . B = B. A. This law states that the order in which variables prove:
A | B | A + B | B + A | A . B | B . A |
---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 |
0 | 1 | 1 | 1 | 0 | 0 |
1 | 0 | 1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | 1 | 1 |
From the above table it can seen that LHS = RHS for eq (i) as well as for equation (ii)
The associative law of Boolean algebra for these variables in OR operation is defined as A + (B + C) = (A + B) + C or this law states that the order in which variables are grouped make no difference when performing in OR operation. Then similarly “The associative law of Boolean algebra for these variable in AND operation is defined as A . (B . C) = (A . B) . C This law states that the order of variables – that are grouped together – makes no different when performing AND operation
A | B | C | B + C | A + (B + C) | (A + B) | (A + B) + C |
---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 0 | 1 |
0 | 1 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 1 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 0 | 1 | 1 | 1 |
1 | 0 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 0 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 | 1 |
As from the above table LHS = RHS proved
A | B | C | B . C | A . (B . C) | (A . B) | (A . B) . C |
---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 0 | 0 | 0 | 0 |
0 | 1 | 1 | 1 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 0 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 1 | 1 | 1 |
In the above table LHS = RHS
The distributive law of Boolean algebra for three variables are defined as A . (B + C) = (A . B) + (A . C) first law and A + B . C = (A + B) . (A + C) second law.
This law states that ANDing with a single variable is equivalent to ANDing that variable with several variable and ORing the products
A | B | C | B + C | A . (B + C) | (A . B) | (A . C) | (A . B) + (A . C) |
---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 |
1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
LHS = RHS
A | B | C | A + B | A + C | (A + B) . (A + C) | B . C | (A + B) . C |
---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |
0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 1 | 1 | 1 | 0 | 1 |
1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 |
1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | 1 | 1 | 1 |
LHS = RHS