Lecture 5 Topics 7b, 7c, 2 Valued Boolean Algebra Function Presentation
Lecture 5 Topics 7b, 7c, 2 Valued Boolean Algebra Function Presentation
Def: 2-element Boolean algebra is two sets: {0,1} and {,, ˉ}.
(It is a set of two values and tree operations to manipulate these values)
Ex: f 27(x,y,z):
x y z f 27(x,y,z)
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
Note: the same Boolean function can be presented by many equivalent formulas
Laws of 2-element Boolean algebra.
1. Commutative law:
a˅b=b ˅ a ;a ˄b = b˄a
2. Associative law:
(a˅ b) ˅ c = a ˅ (b ˅ c); (a˄b) ˄c = a˄(b˄c)
3. Distributive law:
a ˅ b ˄c=(a ˅ b) ˄ (a ˅c); a˄ (b ˅c)=a˄b˅a˄c
4. Law for constants:
a ˅ 0 =a; a ˅ 1=1;
a˄0 = 0; a˄ 1 = a
5. Elimination (absorption) laws:
a˅ a˄ b = a; a ˄ (a ˅ b) = a;
6. Idempotent laws:
a ˅ a = a; a ˄ a = a:
7. Negation laws:
a ˅ ā =1;(excluded middle) a ˄ ā = 0; (contradiction)
8. De Morgan’s laws:
a b = a ˄ b; a˄b = a b;
9. a = a; (Double negation law)
H/a: prove laws3 and 8 by building truth tables.
Topic7c. Equivalent transformations of formulas of 2-valued
Boolean algebra.
F(x, y, z)= ( x ˄ y ˄ z ) ˄( x ˅ y ˅ z ) =
= ( x́ ˅ ý ˅ ź) ˄( x ˄ ý ˄ ź ) = (De Morgan’s)
=( x˅ y ˅ z) ˄ ( x ˄ y ˄ z) = (double negation)
=(x ˄ x ˄y˄z) ˅ (y˄ x ˄y˄z) ˅ ( z ˄ x ˄ y ˄ z) = (distributive, idempotent, contradiction)
0
= ( x ˄ y˄z)˅ ( x ˄ y ˄ z ) = ( x ˄ y ˄ z );
Building the truth table for a given formula of a 2-element Boolean function:
Given:f(x, y, z)=(x ˅ y )˄ ( x ˅ y ˄ z )
Set# x y z f(x, y, z)= (x ˅ y )˄ ( x ˅ y ˄ z )
0 0 0 0 ¿¿ = 0
1 0 0 1 ¿¿
2 0 1 0 ¿¿ = 0 = 1
3 0 1 1 ¿¿ = 0 = 1
4 1 0 0 ¿¿ = 0 = 1
5 1 0 1 ¿ ¿= 1
6 1 1 0 ¿¿ = 1 = 0
7 1 1 1 ¿¿ = 1
Building a formula by a truth table. A method based on 1-values of a Boolean
function.Given: a 2-values Boolean function:
x y z f(x, y, z)
0 0 0 0 0
1 0 0 1 1 x ˄ y ˄ z=1only for x=0, y=0, z=1
2 0 1 0 0
3 0 1 1 1 x ˄ y ˄ z=1 only for x=0, y=1, z=1
4 1 0 0 1 x ˄ y ˄ z=1 only for x=1, y=0, z=0
5 1 0 1 0
6 1 1 0 0 Minterm is a product of all variables taken
7 1 1 1 0 with proper negations.
We can pass from a table to a formula based on 0- values of the Boolean function.
1 0 1
1 1 1