Introduction to Boolean Algebra
03/06/2024
What is Boolean Algebra?
OR = [A + B]
A = 1
B = 1
1
1
You can take either Bridge
OR
A = 1
B = 0
1
0
You can take Bridge A
OR
A = 0
B = 1
1
0
You can take Bridge B
OR
A = 0
B = 0
0
0
You cannot take A OR B since both are not available [0]
OR - [+]
IF at least A =1 or B = 1 THEN A OR B = 1
IF both A = 0 and B = 0 THEN A OR B = 0
Let’s try an example :
1 + 0 = 1
0 + 1 = 1 �
1 + 1 = 1
0 + 0 = 0
AND = [A * B]
A = 1
1
1
B = 1
You have to take both bridges
AND = [A * B]
A = 1
1
0
B = 0
You cannot get to the other side B is not available
AND = [A * B]
A = 0
0
1
B = 1
You cannot get to the other side A is not available
AND = [A * B]
A = 0
0
0
B = 0
You cannot get to the other side A and B both are not available
AND - [A * B]
IF at least A = 0 or B = 0 THEN (A AND B) = 0
IF both A = 1, B = 1 ONLY THEN (A AND B) = 1
Let’s try an example :
1 * 0 = 0
0 * 1 = 0
1 * 1 = 1
0 * 0 = 0
Boolean Operations
Boolean Expressions
There is a 50% chance to get the right answer, make sure you are using proper logic and reasoning though!
FALSE
TRUE
TRUE
A+~B
Truth Tables
A | B | A*B | ~(A*B) | ~B | A+~B |
1 | 1 | 1 | 0 | 0 | 1 |
1 | 0 | 0 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 0 | 0 |
0 | 0 | 0 | 1 | 1 | 1 |
Reminders