chapter 10.1 and 10.2: boolean algebra

25
Chapter 10.1 and 10.2: Boolean Algebra Based on Slides from Discrete Mathematical Structures: Theory and Applications

Upload: whitby

Post on 06-Feb-2016

101 views

Category:

Documents


1 download

DESCRIPTION

Chapter 10.1 and 10.2: Boolean Algebra. Based on Slides from Discrete Mathematical Structures: Theory and Applications. Learning Objectives. Learn about Boolean expressions Become aware of the basic properties of Boolean algebra. Two-Element Boolean Algebra. Let B = {0, 1}. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 10.1 and 10.2: Boolean Algebra

Chapter 10.1 and 10.2: Boolean Algebra

Based on Slides fromDiscrete Mathematical Structures: Theory and Applications

Page 2: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 2

Learning Objectives

Learn about Boolean expressions

Become aware of the basic properties of Boolean algebra

Page 3: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 3

Two-Element Boolean AlgebraLet B = {0, 1}.

Page 4: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 4

Two-Element Boolean Algebra

Page 5: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 5

Page 6: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 6

Page 7: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 7

Page 8: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 8

Two-Element Boolean Algebra

Page 9: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 9

Two-Element Boolean Algebra

Page 10: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 10

Page 11: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 11

Page 12: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 12

Page 13: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 13

Page 14: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 14

Boolean Algebra

Page 15: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 15

Boolean Algebra

Page 16: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 16

Page 17: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 17

Find a minterm that equals 1 ifx1 = x3 = 0 and x2 = x4 = x5 =1,and equals 0 otherwise.

x’1x2x’3x4x5

Page 18: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 18

Therefore, the set of operators {. , +, ‘} is functionally complete.

Page 19: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 19

Sum of products expression

Example 3, p. 710

Find the sum of products expansion of

F(x,y,z) = (x + y) z’

Two approaches:

1) Use Boolean identifies

2) Use table of F values for all possible 1/0 assignments of variables x,y,z

Page 20: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 20

F(x,y,z) = (x + y) z’

Page 21: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 21

F(x,y,z) = (x + y) z’

F(x,y,z) = (x + y) z’= xyz’ + xy’z’ + x’yz’

Page 22: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 22

Page 23: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 23

Page 24: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 24

Functional Completeness

This means that the set of operators {. , +, '} is functionally complete.

Summery:A function f: Bn B, where B={0,1}, is a Boolean function.

For every Boolean function, there exists a Boolean expression with the same truth values, which can be expressed as Boolean sum of minterms.Each minterm is a product of Boolean variables or their complements.

Thus, every Boolean function can be represented with Boolean operators ·,+,'

Page 25: Chapter 10.1 and 10.2: Boolean Algebra

Discrete Mathematical Structures: Theory and Applications 25

Functional Completeness

0100111

The question is:Can we find a smaller functionally complete set?Yes, {. , '}, since x + y = (x' . y')'Can we find a set with just one operator?Yes, {NAND}, {NOR} are functionally complete:

NAND: 1|1 = 0 and 1|0 = 0|1 = 0|0 = 1

100

{NAND} is functionally complete, since {. , '} is so andx' = x|xxy = (x|y)|(x|y)

NOR: