CS February 17

Similar documents
Standard Forms of Expression. Minterms and Maxterms

Permutation Matrices. Permutation Matrices. Permutation Matrices. Permutation Matrices. Isomorphisms of Graphs. 19 Nov 2015

Unit-IV Boolean Algebra

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Chapter 2. Boolean Expressions:

Boolean algebra. June 17, Howard Huang 1

Circuit analysis summary

Binary logic. Dr.Abu-Arqoub

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

3. According to universal addressing, what is the address of vertex d? 4. According to universal addressing, what is the address of vertex f?

Boolean Algebra. P1. The OR operation is closed for all x, y B x + y B

Introduction to Boolean logic and Logical Gates

Definitions. 03 Logic networks Boolean algebra. Boolean set: B 0,

DSAS Laboratory no 4. Laboratory 4. Logic forms

Chapter 2 Boolean algebra and Logic Gates

24 Nov Boolean Operations. Boolean Algebra. Boolean Functions and Expressions. Boolean Functions and Expressions

Variable, Complement, and Literal are terms used in Boolean Algebra.

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Normal Forms Boolean Satisfiability Sectoins 5.3 and 5.5. Prof. Sandy Irani

Introduction to Computer Architecture

UNIT 2 BOOLEAN ALGEBRA

Boolean Algebra. BME208 Logic Circuits Yalçın İŞLER

2.1 Binary Logic and Gates

CSC Discrete Math I, Spring Sets

TA: Jade Cheng ICS 241 Recitation Lecture Notes #12 November 13, 2009

boolean.py Documentation

CS8803: Advanced Digital Design for Embedded Hardware

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

Computer Science. Unit-4: Introduction to Boolean Algebra

Logic Design: Part 2

Combinational Logic & Circuits

X Y Z F=X+Y+Z

Lecture 5. Chapter 2: Sections 4-7

Gate Level Minimization Map Method

Computer Organization

Introduction to Boolean Algebra

Introduction to Boolean Algebra

Gate Level Minimization

2008 The McGraw-Hill Companies, Inc. All rights reserved.

Experiment 3: Logic Simplification

Boolean Algebra and Logic Gates

1. Mark the correct statement(s)

ELCT201: DIGITAL LOGIC DESIGN

Digital Logic Lecture 7 Gate Level Minimization

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

Lecture 4: Implementation AND, OR, NOT Gates and Complement

Code No: R Set No. 1

01 Introduction to Digital Logic. ENGR 3410 Computer Architecture Mark L. Chang Fall 2008

Gate-Level Minimization

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Chapter 2: Combinational Systems

Code No: 07A3EC03 Set No. 1

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Chapter 3. Boolean Algebra and Digital Logic

Digital Design. Chapter 4. Principles Of. Simplification of Boolean Functions

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Experiment 4 Boolean Functions Implementation

Boolean Functions (10.1) Representing Boolean Functions (10.2) Logic Gates (10.3)

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

QUESTION BANK FOR TEST

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

IT 201 Digital System Design Module II Notes

BOOLEAN ALGEBRA AND CIRCUITS

Simplification of Boolean Functions

01 Introduction to Digital Logic. ENGR 3410 Computer Architecture Mark L. Chang Fall 2006

Gate-Level Minimization

Review: Standard forms of expressions

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 9 Normal Forms

Mixed Integer Linear Programming

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

Combinatorial Algorithms. Unate Covering Binate Covering Graph Coloring Maximum Clique

Chapter 3. Gate-Level Minimization. Outlines

Lecture (05) Boolean Algebra and Logic Gates

ELCT201: DIGITAL LOGIC DESIGN

2.6 BOOLEAN FUNCTIONS

Announcements. Chapter 2 - Part 1 1

Combinational Logic Circuits

CS470: Computer Architecture. AMD Quad Core

Computer Engineering Chapter 3 Boolean Algebra

Computer Organization and Levels of Abstraction

LECTURE 4. Logic Design

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

Code No: R Set No. 1

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture

(a) (4 pts) Prove that if a and b are rational, then ab is rational. Since a and b are rational they can be written as the ratio of integers a 1

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

Information Science 1

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

Chapter 2. Boolean Algebra and Logic Gates

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

Identity. p ^ T p p _ F p. Idempotency. p _ p p p ^ p p. Associativity. (p _ q) _ r p _ (q _ r) (p ^ q) ^ r p ^ (q ^ r) Absorption

Transcription:

Discrete Mathematics CS 26 February 7

Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x n,..x n ) B, F (x,..x n ) = G (x,..x n ) 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 2

Boolean Functions Two Boolean expressions e and e 2 that represent the exact same function F are called equivalent x x 2 x 3 F(x,x 2,x 3 ) F(x,x 2,x 3 ) = x (x 2 +x 3 )+x x 2 x 3 F(x,x 2,x 3 ) = x x 2 +x x 3 +x x 2 x 3 3

Boolean Functions More equivalent Boolean expressions: (x + y)z = xyz + xyz + xyz (x + y)z = xz + yz distributive = xz + yz 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. 4

Boolean Functions More equivalent Boolean expressions: xy + z =?? = xy + z identity = xy(z + z) + (x + x)z unit = xyz + xyz + xz + xz 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 5

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

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

Boolean Identities Double complement: x = x Idempotent laws: x + x = x, x x = x Identity laws: x + = x, x = x Domination laws: x + =, x = 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, y (x + y) = x y Absorption laws: x + x y = x, x (x + y) = x the Unit Property: x + x = and Zero Property: x x = 8

Boolean Identities Absorption law: Show that x (x + y) = x ) x (x + y) = (x + ) (x + y) identity 2) = x + y distributive 3) = x + y commutative 4) = x + domination 5) = x identity 9

Dual Expression (related to identity pairs) The dual e d of a Boolean expression e is obtained by exchanging + with, and with in e. e Example: e = xy + zw e = x + y + e d =(x + y)(z + w) e d = x y Duality principle: e e 2 iff e d e 2 d 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 F d The dual function, denoted by F d, 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 + = x, x = x Domination laws: x + =, x = 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, y (x + y) = x y Absorption laws: x + x y = x, x (x + y) = x the Unit Property: x + x = and Zero Property: x x = 2

Boolean Expressions Sets Propositions Identity Laws x = x, x = x +, Complement Laws x x =, x x = 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. 3

DNF: Disjunctive Normal Form A literal is a Boolean variable or its complement. A minterm of Boolean variables x,,xx n is a Boolean product of n literals y y n, where y i is either the literal x i or its complement x. i minterms Example: x y z + 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. 4

CNF: Conjunctive Normal Form A literal is a Boolean variable or its complement. A maxterm of Boolean variables x,,xx n is a Boolean sum of n literals y y n, where y i is either the literal x i or its complement x. i maxterms Example: (x +y + z) (x + y + z) (x + y +z) Conjuctive Normal Form: product of sums 5

Conjunctive Normal Form To find the CNF representation of a Boolean function F. Find the DNF representation of its complement F 2. Then complement both sides and apply DeMorgan s laws to get F: x y z F 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 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? 6

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. 7