Discrete Mathematics CS 2610

Slides:



Advertisements
Similar presentations
BOOLEAN ALGEBRA. A Mathematical notation used to represent the function of the Digital circuit. A notation that allows variables & constants to have only.
Advertisements

Chapter 2 Logic Circuits.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Chapter 9: Boolean Algebra
Logic Functions and their Representation. Slide 2 Combinational Networks x1x1 x2x2 xnxn f.
Lecture 3. Boolean Algebra, Logic Gates
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
Chapter 2: Boolean Algebra and Logic Functions
Module #23 – Boolean Algebra 1 Chapter 11 Boolean Algebra Rosen 6 th ed., ch. 11.
Boolean Algebra أ. زينب آل كاظم 1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
11.1 Boolean Functions. Boolean Algebra An algebra is a set with one or more operations defined on it. A boolean algebra has three main operations, and,
Section Section Summary Introduction to Boolean Algebra Boolean Expressions and Boolean Functions Identities of Boolean Algebra Duality The Abstract.
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
Chapter 10.1 and 10.2: Boolean Algebra Based on Slides from Discrete Mathematical Structures: Theory and Applications.
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
Applied Discrete Mathematics Week 13: Boolean Algebra
CS1502 Formal Methods in Computer Science
Combinational Logic 1.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Boolean Logic and Circuits ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Discrete Mathematics CS 2610 February 12, Agenda Previously Finished functions Began Boolean algebras And now Continue with Boolean algebras.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra M. AL- Towaileb1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
BOOLEAN ALGEBRA Kamrul Ahsan Teacher of
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =
Boolean Algebra.
CHAPTER 2 Boolean algebra and Logic gates
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Chapter 11 (Part 1): Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
Discussion #10 Logical Equivalences
… and now for the Final Topic:
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Boolean Algebra A Boolean algebra is a set B of values together with:
Boolean Algebra A Boolean algebra is a set B of values together with:
September 7 Notes Boolean Algebra.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
EEL 3705 / 3705L Digital Logic Design
EEL 3705 / 3705L Digital Logic Design
CSE 311 Foundations of Computing I
Propositional Calculus: Boolean Algebra and Simplification
Boolean Algebra.
EEL 3705 / 3705L Digital Logic Design
Boolean Algebra.
Propositional Equivalences
CMSC Discrete Structures
Boolean Algebra & Logic Circuits
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
Boolean Algebra L Al-zaid Math1101.
Representing Boolean functions
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Chapter 10.1 and 10.2: Boolean Algebra
Chapter 10.1 and 10.2: Boolean Algebra
Chapter 10.1 and 10.2: Boolean Algebra
Applied Discrete Mathematics Week 4: Functions
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
CMSC Discrete Structures
Boolean Algebra.
Presentation transcript:

Discrete Mathematics CS 2610 February 17

Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x1,..xn)  Bn, F (x1,..xn) = G (x1,..xn) Example: F(x,y,z) = x(y+z), G(x,y,z) = xy + xz, and F=G (recall the “truth” table from an earlier slide) Also, note the distributive property: x(y+z) = xy + xz via the distributive law

Boolean Functions Two Boolean expressions e1 and e2 that represent the exact same function F are called equivalent F(x1,x2,x3) 1 x3 x2 x1 F(x1,x2,x3) = x1(x2+x3)+x1x2x3 F(x1,x2,x3) = x1x2+x1x3+x1x2x3

Boolean Functions More equivalent Boolean expressions: (x + y)z = xyz + xyz + xyz (x + y)z = xz + yz distributive = x1z + 1yz identity = x(y + y)z + (x + x)yz unit = xyz + xyz + xyz + xyz distributive = xyz + xyz + xyz idempotent We’ve expanded the initial expression into its sum of products form.

Boolean Functions More equivalent Boolean expressions: xy + z = ?? = xy1 + 11z identity = xy(z + z) + (x + x)1z unit = xyz + xyz + x1z + x1z distributive = xyz + xyz + x(y + y)z + x(y + y)z unit = xyz + xyz + xyz + xyz + xyz + xyz distributive = xyz + xyz + xyz + xyz + xyz idempotent

Representing Boolean Functions How to construct a Boolean expression that represents a Boolean Function ? 1 z y x F F(x, y, z) = 1 if and only if: (-x)(y)(-z) + (-x)yz + x(-y)z + xyz

Representing Boolean Functions How to construct a Boolean expression that represents a Boolean Function ? 1 z y x F F(x, y, z) = x·y·z + x·y·z

the Unit Property: x + x = 1 and Zero Property: x ·x = 0 Boolean Identities Double complement: x = x Idempotent laws: x + x = x, x · x = x Identity laws: x + 0 = x, x · 1 = x Domination laws: x + 1 = 1, x · 0 = 0 Commutative laws: x + y = y + x, x · y = y · x Associative laws: x + (y + z) = (x + y) + z x · (y · z) = (x · y) · z Distributive laws: x + y ·z = (x + y)·(x + z) x · (y + z) = x ·y + x ·z De Morgan’s laws: (x · y) = x + y, (x + y) = x · y Absorption laws: x + x ·y = x, x · (x + y) = x the Unit Property: x + x = 1 and Zero Property: x ·x = 0

Boolean Identities Absorption law: Show that x ·(x + y) = x x ·(x + y) = (x + 0) ·(x + y) identity = x + 0 ·y distributive = x + y · 0 commutative = x + 0 domination = x identity

Dual Expression (related to identity pairs) The dual ed of a Boolean expression e is obtained by exchanging + with , and 0 with 1 in e. Example: e = xy + zw e = x + y + 0 ed =(x + y)(z + w) ed = x · y · 1 Duality principle: e1e2 iff e1de2d x (x + y) = x iff x + xy = x (absorption)

Dual Function The dual of a Boolean function F represented by a Boolean expression is the function represented by the dual of this expression. The dual function of F is denoted by Fd The dual function, denoted by Fd, does not depend on the particular Boolean expression used to represent F.

Recall: Boolean Identities Double complement: x = x Idempotent laws: x + x = x, x · x = x Identity laws: x + 0 = x, x · 1 = x Domination laws: x + 1 = 1, x · 0 = 0 Commutative laws: x + y = y + x, x · y = y · x Associative laws: x + (y + z) = (x + y) + z x · (y · z) = (x · y) · z Distributive laws: x + y ·z = (x + y)·(x + z) x · (y + z) = x ·y + x ·z De Morgan’s laws: (x · y) = x + y, (x + y) = x · y Absorption laws: x + x ·y = x, x · (x + y) = x the Unit Property: x + x = 1 and Zero Property: x ·x = 0

Boolean Expressions  Sets  Propositions Identity Laws x  0 = x, x  1 = x +, Complement Laws x  x = 1, x  x = 0 ¬ Associative Laws (x  y)  z = x  (y  z) (x  y)  z = x  (y  z) Commutative Laws x  y = y  x, x  y = y  x Distributive Laws x  ( y  z) = (x  y)  (x  z) x  ( y  z) = (x  y)  (x  z) Propositional logic has operations , , and elements T and F such that the above properties hold for all x, y, and z.

DNF: Disjunctive Normal Form A literal is a Boolean variable or its complement. A minterm of Boolean variables x1,…,xn is a Boolean product of n literals y1…yn, where yi is either the literal xi or its complement xi. Example: minterms x y z + x y z Disjunctive Normal Form: sum of products We have seen how to develop a DNF expression for a function if we’re given the function’s “truth” table.

CNF: Conjunctive Normal Form A literal is a Boolean variable or its complement. A maxterm of Boolean variables x1,…,xn is a Boolean sum of n literals y1…yn, where yi is either the literal xi or its complement xi. Example: maxterms (x +y + z)  (x + y + z)  (x + y +z) Conjuctive Normal Form: product of sums

Conjunctive Normal Form To find the CNF representation of a Boolean function F Find the DNF representation of its complement F Then complement both sides and apply DeMorgan’s laws to get F: 1 z y x F F = x·y·z + x·y·z + x·y·z + x·y·z F = (x·y·z) · (x·y·z) · (x·y·z) · (x·y·z) = (x+y+z) · (x+y+z) · (x+y+z) · (x+y+z) How do you build the CNF directly from the table ?

Functional Completeness Since every Boolean function can be expressed in terms of ,+,¯, we say that the set of operators {,+,¯} is functionally complete. {+, ¯} is functionally complete (no way!) xy = (x+y) {, ¯} is functionally complete (note: x + y = xy) NAND | and NOR ↓ are also functionally complete, each by itself (as a singleton set). Recall x NAND y is true iff x or y (or both) are false and x NOR y is true iff both x and y are false.