1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 -Part 2.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Lattice and Boolean Algebra
Lecture 3. Boolean Algebra, Logic Gates
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
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.
Boolean Functions.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Section Section Summary Introduction to Boolean Algebra Boolean Expressions and Boolean Functions Identities of Boolean Algebra Duality The Abstract.
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
Applied Discrete Mathematics Week 13: Boolean Algebra
Boolean Algebra and Digital Circuits
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.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Discrete Mathematics CS 2610 February 12, Agenda Previously Finished functions Began Boolean algebras And now Continue with Boolean algebras.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
--- outputs logical functions of inputs --- new outputs appear shortly after changed inputs (propagation delay) --- no feedback loops --- no clock Sequential.
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.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
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.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Boolean Algebra.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
CS2100 Computer Organisation
Chapter 11 (Part 1): Boolean Algebra
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
… and now for the Final Topic:
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Overview Part 1 – Gate Circuits and Boolean Equations
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
ECE/CS 352 Digital Systems Fundamentals
Lecture 3: Boolean Algebra
Boolean Algebra.
Discrete Mathematics CS 2610
Boolean Algebra.
CMSC Discrete Structures
Chapter 2 Boolean Algebra and Logic Gate
Boolean Algebra L Al-zaid Math1101.
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Boolean Algebra Introduction CSCI 240
Applied Discrete Mathematics Week 4: Functions
COMS 361 Computer Organization
Introductory Concepts
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
CMSC Discrete Structures
Presentation transcript:

1 Section 10.1 Boolean Functions

2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George Boole set forth basic rules of logic, which subsequently were adapted to define basic circuits; these rules form basis of Boolean algebra Operation of a circuit is defined by a Boolean function that specifies the output for each set of inputs

3 Boolean algebra Boolean algebra provides operations and rules for working with set {0,1} Most common operations are: –complement (NOT) –Boolean sum (OR) –Boolean product (AND) Rules of precedence: 1) complement, 2) product, 3) sum

4 Notation for Boolean algebra Complement is denoted by bar:0= 1 and1= 0 Boolean sum is denoted by +: = = = = 0 Boolean product is denoted by. Symbol may be omitted 1. 1 = = = = 0

5 Example 1 Find the value of (0 + 1) = = = 0

6 Boolean algebra & logical operations Boolean algebraic operations correspond to logical operations: –complement =  –sum =  –product =  –0 = F, 1 = T Results of Boolean algebra can be directly translated into results about propositions, and vice-versa

7 Boolean functions Let B = {0, 1} –a variable x is a Boolean variable if it assumes values only from B –a function from B n = {(x 1, x 2, … x n ) | x i  B, 1<=i<= n} to B is a Boolean function of degree n Values of a Boolean function are often displayed in tables resembling truth tables

8 Boolean expressions Boolean functions can be represented using expressions made up from the variables and Boolean operations Boolean expressions in the variables x 1, x 2, … x n are defined recursively as: –0, 1, x 1, x 2, ….,x n are Boolean expressions; –if E 1 and E 2 are Boolean expressions, then their complements, (E 1 E 2 ) and (E 1 +E 2 ) are Boolean expressions Each Boolean expression represents a Boolean function; values of the function are obtained by substituting 0 and 1 for variables in the expression

9 Example 2 Find the values of the Boolean function represented by F(x,y,z) = xy + z x y z xy z F(x,y,z)

10 Properties & Operations on Boolean Functions Boolean functions F and G of n variables are equal if and only if F(b 1, b 2, … b n ) = G(b 1, b 2, … b n ) whenever b 1, b 2, … b n  B Boolean expressions that represent the same function are equivalent- e.g. xy, xy+0, xy. 1 Complement of a Boolean function F is the function F where F(x 1,…,x n ) = F(x 1,…,x n )

11 Boolean sums & products of functions Let F and G be Boolean functions of degree n –Boolean sum F+G is defined by (F+G)(x 1,…,x n ) = F(x 1,…,x n ) + G(x 1,…,x n ) –Boolean product FG is defined by (FG)(x 1,…,x n ) = F(x 1,…,x n )G(x 1,…,x n )

12 Boolean functions of degree n A Boolean function of degree 2 is a function from a set of 4 elements (pairs of elements from B={0,1}) to B, a set with 2 elements There are 16 different Boolean functions of degree 2: x y f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f

13 Identities of Boolean algebra Identities of Boolean algebra are analogous to logical equivalences These identities are useful in simplifying circuit design Each identity can be proven using a table Identities can be used to prove further identities

14 Boolean identities Law of the double complement: x = x Idempotent laws: x + x = x and x. x = x Identity laws: x + 0 = x and x. 1 = x Dominance laws: x + 1 = 1 and x. 0 = 0 Commutative laws: x + y = y + x and xy = yx Associative laws: x + (y + z) = (x + y) + z and x(yz) = (xy)z Distributive laws: x + yz = (x + y)(x + z) and x(y + z) = xy + xz DeMorgan’s laws: (xy) = x + y and (x + y) = x. y

15 Example 3: Proof of DeMorgan’s first law x y x y xy xy x + y

16 Example 4 Prove the absorption law: x(x + y) = x using the identities of Boolean algebra x(x + y) = (x + 0)(x + y)identity law for Boolean sum = x + 0. ydistributive law of Boolean sum over Boolean product = x + y. 0commutative law for Boolean product = x + 0dominance law for Boolean product = x identity law for Boolean sum

17 Duality Note that most identities come in pairs The relationship between the 2 identities in a pair can be explained using the concept of a dual: the dual of a Boolean expression is obtained by interchanging Boolean sums and Boolean products, and 1s and 0s

18 Example 5 Find the dual of x(y + 0) Substitute. for + and + for. : x + (y. 0) Substitute 0 for 1: x + (y. 1)

19 Duality The dual of a Boolean function F represented by a Boolean expression is the function represented by the dual of the expression This dual function F d, does not depend of the particular Boolean expression used to represent F; an identity between functions represented by Boolean expressions remains valid when the duals of both sides of the identity are taken This duality principle is useful for obtaining new identities

20 Example 6 Construct an identity from the absorption law: x(x + y) = x Taking duals of both sides: –x + (x. y) –x–x Result is x + xy = x, also called the absorption law

21 Abstract definition of a Boolean algebra Most common way to define a Boolean algebra is to specify properties that operations must satisfy Next slide illustrates such a definition

22 Definition of a Boolean algebra A Boolean algebra is a set B with two binary operations  and , elements 0 and 1 and a unary operation _ such that the following properties hold for all x, y and z in B: Identity laws: x  0 = x and x  1 = x Domination laws: x  x = 1 and x  x = 0 Associative laws:(x  y)  z = x  (y  z) and (x  y)  z = x  (y  z) Commutative laws: x  y = y  x and x  y = y  x Distributive laws:x  (y  z) = (x  y)  (x  z) and x  (y  z) = (x  y)  (x  z)

23 Section 10.1 Boolean Functions