Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic Laws, theorems, and postulates of Boolean Algebra

Similar presentations


Presentation on theme: "Basic Laws, theorems, and postulates of Boolean Algebra"— Presentation transcript:

1 Basic Laws, theorems, and postulates of Boolean Algebra
EEE301 – Digital Electronics Rachaen M. Huq Dept. of EEE, BRACU Rachaen M. Huq

2 Logistics New website for scheduling an appointment with me.
meetme.setmore.com Rachaen M. Huq

3 Associative Law In traditional algebra : (xy)z= x(yz)
How would you prove this? Think of something simple. Rachaen M. Huq

4 Associative Law we would show that for any value of x,y and z, the identity would be true. In Boolean Algebra, (x.y).z = x.(y.z) How can we be sure? What would be true? ? Rachaen M. Huq

5 Associative Law The truth table x y z xy (xy)z 1 x y z yz X(yz) 1
1 x y z yz X(yz) 1 Rachaen M. Huq

6 Other laws x + x' = 1 x . x' = 0 x + y = y + x x . y = y . x
Rachaen M. Huq

7 Other laws (x + y) + z = x + (y + z) = x + y + z
0 + x = x + 0 = x 1 . x = x . 1 = x Rachaen M. Huq

8 Other Laws x . (y + z) = (x . y) + (x . z)
You can prove all these using .... ? Rachaen M. Huq

9 Duality – an interesting property of Boolean algebra
every valid Boolean expression (equality) remains valid if the operators and identity elements are interchanged, as follows: +  . 1  0 Example: Given the expression a + (b.c) = (a+b).(a+c) The following would be true as well. a . (b+c) = (a.b) + (a.c)

10 Duality (x.y.z)' = x'+y'+z’ Duality gives free theorems
If (x+y+z)' = x'.y.'z' is valid, then its dual is also valid: (x.y.z)' = x'+y'+z’ If x + 1 = 1 is valid, then its dual is also valid: x . 0 = 0

11 Important! Understand the difference between identities and equations
(a+b)^2 = a^2 + 2ab + b^2 is an identity (can be compared with laws, theorems, postulates) X^2 -2x+1 = 0 ….. Is an equation, i.e for only a (limited) number of real values of x would satisfy both sides of the equal sign. Rachaen M. Huq

12 Basic Theorems/postulates of Boolean Algebra
x+0=x x.1=x x+x’= x.x’=0 x+x=x x.x=x x+1= x.0=0 (x’)’=x x+y=y+x xy=yx x(yz)=(xy)z x+(y+z)=(x+y)+z x(y+z)=xy+xz x+yz=(x+y)(x+z) (x+y)’=x’y’ (xy)’=x’+y’ x+xy=x x(x+y)=x Table 2.1 Morris Mano Super important !

13 Why Boolean Algebra is interesting?
Two different expressions carry the same meaning. If a Boolean Function is expressed by an expression, which has a shorter version (e.g. x+xy=x) then it is certainly interesting for us. Why? Because length of the expression is related to the size of chips (number of gates), in other words MONEY! Rachaen M. Huq

14 How Boolean Algebra reduce cost!
Lets take an example of two Booleans functions: F1 = x+ xy (express in words what they mean) F2 = x (express in words what they mean) Draw the logic diagrams See the difference. Boolean algebra says that there was NO gate necessary at all, maybe just one buffer. Rachaen M. Huq

15 Basic Theorems of Boolean Algebra
Theorems can be proved using the truth table method. (Exercise: Prove De-Morgan’s theorem using the truth table.) They can also be proved by algebraic manipulation using axioms/postulates or other basic theorems.

16 Basic Theorems of Boolean Algebra
Theorem 6a (absorption) can be proved by: x + x.y = x.1 + x.y (identity) = x.(1 + y) (distributivity) = x.(y + 1) (commutativity) = x (Theorem 2a) = x (identity) By duality, theorem 6b: x.(x+y) = x Try prove this by algebraic manipulation.

17 Boolean Functions (Solve ?)
Examples: F1= xyz' F2= x + y'z F3=(x'y'z)+(x'yz)+(xy') F4=xy'+x'z From the truth table, F3=F4. Can you also prove by algebraic manipulation that F3=F4?

18 Switch to blackboard for more examples.

19 Drawing Logic Circuit – Trivial- See at home
When a Boolean expression is provided, we can easily draw the logic circuit. Examples: (i) F1 = xz' (note the use of a 2-input AND gate) x z F1 z'

20 Drawing Logic Circuit (ii) F2 = x + y'z (can assume that variables and their complements are available) x y' z F2 y'z (iii) F3 = xy' + x'z x' z F3 x'z xy' x y'

21 Solve it yourself Q1. Draw a logic circuit for BD + BE + D’F
A’BC + B’CD + BC’D + ABD’

22 Analysing Logic Circuit
When a logic circuit is provided, we can analyse the circuit to obtain the logic expression. Example: What is the Boolean expression of F4? A'B' A' B' C F4 A'B'+C (A'B'+C)' F4 = (A'B'+C)' = (A+B).C'

23 Solve it yourself What is Boolean expression of F5? z F5 x y

24 There are always shortcuts (Format approaches)
Shortcuts to derive Boolean expressions from the truth table directly and vice versa No intermediate columns (e.g. columns for x’ ,or xy’, or z’) are necessary. Using minterms (mostly used) / maxterms Can be derived by looking closely at the truth tables. Rachaen M. Huq

25 Canonical Forms Shortest way to express a Boolean Function.
Gives the idea about what the function logically does to inputs. But no idea about how many gates required to implement it. Rachaen M. Huq


Download ppt "Basic Laws, theorems, and postulates of Boolean Algebra"

Similar presentations


Ads by Google