Boolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010

Similar documents
Unit 3 Boolean Algebra (Continued)

CH3 Boolean Algebra (cont d)

Boolean Algebra Part 1

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

CM2202: Scientific Computing and Multimedia Applications General Maths: 2. Algebra - Factorisation

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Algebraic Properties and Proofs

Section 1. Finding Common Terms

BOOLEAN ALGEBRA & LOGIC GATES

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Click on the links below to jump directly to the relevant section

CSE140: Components and Design Techniques for Digital Systems

2.0 Chapter Overview. 2.1 Boolean Algebra

Switching Algebra and Logic Gates

1.3 Polynomials and Factoring

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

~ EQUIVALENT FORMS ~

Operations with Algebraic Expressions: Multiplication of Polynomials

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Elementary Logic Gates

A Systematic Approach to Factoring

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Unique column combinations

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

Sect Greatest Common Factor and Factoring by Grouping

Chapter 5. Rational Expressions

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

Section The given line has equations. x = 3 + t(13 3) = t, y = 2 + t(3 + 2) = 2 + 5t, z = 7 + t( 8 7) = 7 15t.

How to bet using different NairaBet Bet Combinations (Combo)

BEGINNING ALGEBRA ACKNOWLEDMENTS

Online EFFECTIVE AS OF JANUARY 2013

6 Commutators and the derived series. [x,y] = xyx 1 y 1.

FINDING THE LEAST COMMON DENOMINATOR

COMMUTATIVE RINGS. Definition: A domain is a commutative ring R that satisfies the cancellation law for multiplication:

CSE140: Midterm 1 Solution and Rubric

How To Prove The Triangle Angle Of A Triangle

THREE DIMENSIONAL GEOMETRY

1.4. Arithmetic of Algebraic Fractions. Introduction. Prerequisites. Learning Outcomes

Geo, Chap 4 Practice Test, EV Ver 1

Intermediate Math Circles October 10, 2012 Geometry I: Angles

Geometry Module 4 Unit 2 Practice Exam

SOLUTIONS MANUAL DIGITAL DESIGN FOURTH EDITION M. MORRIS MANO California State University, Los Angeles MICHAEL D.

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION GEOMETRY. Thursday, August 16, :30 to 11:30 a.m.

Data Mining: Partially from: Introduction to Data Mining by Tan, Steinbach, Kumar

Lecture Notes on Database Normalization

Data Mining Apriori Algorithm

1.4. Removing Brackets. Introduction. Prerequisites. Learning Outcomes. Learning Style

Class One: Degree Sequences

Benchmark Databases for Testing Big-Data Analytics In Cloud Environments

Geometry Regents Review

Angles in a Circle and Cyclic Quadrilateral

Solutions Manual for How to Read and Do Proofs

2 : two cube. 5 : five cube. 10 : ten cube.

How To Solve Factoring Problems

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Simplifying Logic Circuits with Karnaugh Maps

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Linear Equations in One Variable

Combinational circuits

Functional Dependencies and Normalization

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION GEOMETRY. Tuesday, January 26, :15 to 4:15 p.m., only.

HOW TO USE MINITAB: DESIGN OF EXPERIMENTS. Noelle M. Richard 08/27/14

Theory behind Normalization & DB Design. Satisfiability: Does an FD hold? Lecture 12

Factoring Polynomials

Logic in Computer Science: Logic Gates

Introduction. The Quine-McCluskey Method Handout 5 January 21, CSEE E6861y Prof. Steven Nowick

Mathematics Spring 2015 Dr. Alexandra Shlapentokh Guide #3

Understanding Logic Design

6.5 Factoring Special Forms

Factoring (pp. 1 of 4)

Two-level logic using NAND gates

Logic Reference Guide

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

To Evaluate an Algebraic Expression

CHAPTER 8 QUADRILATERALS. 8.1 Introduction

3.1 Triangles, Congruence Relations, SAS Hypothesis

Finding the Measure of Segments Examples

How To Factor By Gcf In Algebra 1.5

Warm-up Tangent circles Angles inside circles Power of a point. Geometry. Circles. Misha Lavrov. ARML Practice 12/08/2013

You must have: Ruler graduated in centimetres and millimetres, protractor, compasses, pen, HB pencil, eraser, calculator. Tracing paper may be used.

Relational Database Design

Solutions to Homework 10

Chapter 3. Inversion and Applications to Ptolemy and Euler

#6 Opener Solutions. Move one more spot to your right. Introduce yourself if needed.

How To Find Out What A Key Is In A Database Engine

Die Welt Multimedia-Reichweite

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

5.1 Midsegment Theorem and Coordinate Proof

Visa Smart Debit/Credit Certificate Authority Public Keys

Algebraic expressions are a combination of numbers and variables. Here are examples of some basic algebraic expressions.

Blue Pelican Geometry Theorem Proofs

Name Intro to Algebra 2. Unit 1: Polynomials and Factoring

CIRCLE THEOREMS. Edexcel GCSE Mathematics (Linear) 1MA0

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION GEOMETRY. Thursday, January 24, :15 a.m. to 12:15 p.m.

Negative Integer Exponents

Algebra I Vocabulary Cards

Scilab Textbook Companion for Digital Electronics: An Introduction To Theory And Practice by W. H. Gothmann 1

Transcription:

Boolean Algebra (cont d) 2 Contents Multiplying out and factoring expressions Exclusive-OR and Exclusive-NOR operations The consensus theorem Summary of algebraic simplification Proving validity of an equation Reading Unit 3 UNIT 3 BOOLEAN ALGEBRA (CONT D) Iris Hui-Ru Jiang Spring 2010 Objectives Guidelines for Multiplying Out and Factoring 3 4 In this unit, you will Continue to learn Boolean algebra Simplify, complement, multiply out and factor an expression Prove any theorem in an algebraic way or using a truth table Learn XOR Use 1. X(Y + Z) = XY + XZ 2. (X + Y)(X + Z) = X + YZ 3. (X + Y)(X' + Z) = XZ + X'Y For multiplying out, apply 2. and 3. before 1. to avoid unnecessary terms For factoring, apply 1., 2., 3. from right terms to left terms

Proof? Multiplying Out 1. X(Y + Z) = XY + XZ 2. (X + Y)(X + Z) = X + YZ 3. (X + Y)(X' + Z) = XZ + X'Y 5 1. (X + Y)(X + Z) = X + YZ (X + Y)(X + Z) = XX + XZ + YX + YZ = X + XZ + XY + YZ = X + XY + YZ = X + YZ Or, X = 0, (0 + Y)(0 + Z) = YZ 0 + YZ = YZ X = 1, (1 + Y)(1 + Z) = 11 = 1 1 + YZ = 1 2. (X + Y)(X' + Z) = XZ + X'Y (X + Y)(X' + Z) = XX' + XZ + YX' + YZ = 0 + XZ + X'Y + YZ =XZ+X'Y+(X' + X)YZ =XZ+X'Y+ X'YZ + XYZ expand & simplify =XZ(1 + Y) + X'Y(1 + Z) = XZ + X'Y 6 Multiplying out: POS SOP Example: (A + B + C')(A + B + D)(A + B + E)(A + D' + E)(A' + C) 2. 3. = (A + B + C'D)(A + B + E)[AC + A'(D' + E)] 2. = (A + B + C'DE)(AC + A'D' + A'E) = AC + ABC + A'BD' + A'BE + A'C'DE = AC + A'BD' + A'BE + A'C'DE By brute force 162 terms! Factoring 1. X(Y + Z) = XY + XZ 2. (X + Y)(X + Z) = X + YZ 3. (X + Y)(X' + Z) = XZ + X'Y 7 Factoring: SOP POS Example: AC + A'BD' + A'BE + A'C'DE = A C + A'(BD' + BE + C'DE) 3. = X Z + X' Y = (X + Y)(X' + Z) = (A + BD' + BE + C'DE)(A' + C) = [A + C'DE + B(D' + E)](A' + C) 2. = [ X + YZ ](A' + C) = (X + Y)(X + Z)(A' + C) = (A + C'DE + B)(A + C'DE + D' + E)(A' + C) 2. = (A + B + C')(A + B + D)(A + B + E)(A + D' + E)(A' + C) 8 XOR and XNOR Difference and equivalence

Operation Exclusive-OR Exclusive-OR Operations 9 Exclusive-OR (XOR) ( ) 0 0 = 0, 0 1 = 1, 1 0 = 1, 1 1 = 0 Symbol X Y X Y Boolean expression: X Y = X'Y + XY' Truth table X Y X Y 0 0 0 1 1 0 1 1 0 1 1 0 check difference of inputs show the condition to make output ==1 10 X Y = X'Y + XY' Useful theorems: X 0 = X X Y = Y X (commutative) X 1 = X' (X Y) Z = X (Y Z) =X Y Z(associative) X X = 0 X(Y Z) =XY XZ (distributive) X X' = 1 (X Y)' = X Y' = X' Y = X'Y' + XY Prove distributive law? XY XZ = XY(XZ)' + (XY)'XZ (by definition) = XY(X' + Z') + (X' + Y')XZ (DeMorgan) = XYZ' + XY'Z = X(YZ' + Y'Z) = X(Y Z) (difference)' == equivalence Operation Exclusive-NOR Simplification of XOR and XNOR 11 Boolean expression: X Y = X'Y' + XY Exclusive-NOR (XNOR) () check 0 0 = 1, 0 1 = 0, 1 0 = 0, 1 1 = 1 equivalence Symbol Truth table of inputs X X Y X Y (XY) X Y 0 0 1 1 Y 0 1 0 0 1 0 0 0 X 1 1 1 1 (X Y)' = (X Y) (difference)' == Y equivalence show the condition to make output ==1 12 X Y = X'Y + XY' X Y = X'Y' + XY (X'Y + XY')' = X'Y' + XY F = (A'B C) + (B AC') = [A'BC + (A'B)'C'] +[B'AC' + B(AC')'] = A'BC + (A + B')C' + B'AC' + B(A' + C) = B(A'C + A' + C) + C'(A + B' + AB') = B(A' + C) + C'(A + B') (can be further simplified!) F = A' B C = (A'B' + AB) C =(A'B' + AB)C' +(A'B' + AB)'C = A'B'C' + ABC' + A'BC + AB'C

The Consensus Theorem 13 The Consensus Theorem Redundancy removal 14 XY + X'Z + YZ = XY + X'Z (YZ is redundant) Proof: XY + X'Z + YZ = XY + X'Z + (X + X')YZ = (XY + XYZ) + (X'Z + X'YZ) = XY(1 + Z) + X'Z(1 + Y) = XY + X'Z How to find consensus terms? 1. Find a pair of terms, one of which contains a variable and the other its complement A'C'D + A'BD + BCD + ABC + ACD' (A A') 2. Ignore the variable and its complement; the left variables composite the consensus term (A'BD ) + (ABC) BDBC = BCD (redundant term) a'b'+ ac + bc' + b'c + ab = a'b'+ ac + bc' Ordering Does Matter! Dual Form of the Consensus Theorem 15 16 A'C'D + A'BD + BCD + ABC + ACD' A'C'D + A'BD + BCD + ABC + ACD' = A'C'D + A'BD + ABC + ACD' 4 terms A'C'D + A'BD + BCD + ABC + ACD' XY + X'Z + YZ = XY + X'Z YZ is redundant dual (X + Y)(X' + Z)(Y + Z) = (X + Y)(X' + Z) (Y + Z) is redundant (a + b + c')(a + b + d')(b + c + d') = (a + b + c')(b + c + d') = A'C'D + BCD + ACD' Only 3 terms! (a + b + c') + (b + c + d') a + b + b + d' = a + b + d'

Redundancy Injection 17 ABCD + B'CDE + A'B' + BCE' Find consensus terms ABCD + B'CDE ACDE ABCD + A'B' BCD(B') + (ACD)A' B'CDE + BCE' CDE(CE') + B'CD(BC) A'B' + BCE' A'CE' Add consensus term ACDE 18 Summary of Algebraic Simplification Simplification can reduce cost ABCD + B'CDE + A'B' + BCE' + ACDE = A'B' + BCE' + ACDE Rule A -- Combining Terms Rule B -- Eliminating Terms 19 20 XY + XY' = X(Y + Y') = X abc'd' + abcd' = abd' (X = abd', Y = c) ab'c + abc + a'bc = ab'c + abc + abc + a'bc (repeat term) = ac + bc (a + bc)(d + e') + a'(b' + c')(d + e') = d + e' (why?? DeMorgan) 1. X + XY = X (keep the boss) 2. XY + X'Z + YZ = XY + X'Z (consensus) a'b+ a'bc = a'b (X = a'b) a'bc' + bcd + a'bd = a'bc'+ bcd (X = c, Y = bd, Z = a'b)

Rule C -- Eliminating Literals Rule D -- Adding Redundant Terms 21 22 X + X'Y = (X + X')(X + Y) = X + Y A'B + A'B'C'D' + ABCD' = A'(B + B'C'D') + ABCD' (common term: A') = A'(B + C'D') + ABCD' (Rule C) = B(A' + ACD') + A'C'D' (common term: B) = B(A' + CD') + A'C'D' (Rule C) = A'B + BCD' + A'C'D' (final terms) 1. Y = Y + XX' 2. Y = Y(X + X') 3. XY + X'Z = XY + X'Z + YZ 4. X = X + XY Add redundancy to eliminate other terms WX + XY + X'Z' + WY'Z' = WX + XY + X'Z' + WY'Z' + WZ' (add WZ' by consensus thm) = WX + XY + X'Z' + WZ' (eliminate WY'Z' by WZ') = WX + XY + X'Z' (consensus again) Another Example 23 A'B'C'D' + A'BC'D' + A'BD + A'BC'D + ABCD + ACD' + B'CD' = (Apply rules A, B, C, D) = A'C'D' + A'BD + B'CD' + ABC 24 Proving Validity of an Equation No easy way to determine when a Boolean expression has a minimum # of terms or literals Systematic way will be discussed in Unit 5 & Unit 6

How to Determine if an Equation Valid? Example 25 26 1. Construct a truth table (proof by cases) 2. Manipulate one side until it is identical to the other side 3. Reduce both sides independently to the same expression 4. Perform the same operation on both sides if the operation is reversible (Boolean algebra ordinary algebra) Complement is reversible Multiplication/division and addition/subtraction are not reversible x+y = x+z does not imply y=z ( x=1, y=0, z=1) xy = xz does not imply y=z ( x=0, y=0, z=1) Using 2. and 3., usually 1. Reduce both sides to (minimum) SOP or POS 2. Compare both sides 3. Try to add or delete terms by using theorems Show that A'BD' + BCD + ABC' + AB'D = BC'D' + AD + A'BC By the consensus theorem, A'BD' + BCD + ABC' + AB'D = A'BD' + BCD + ABC' + AB'D + A'BC + BC'D' + ABD = AD + A'BD' + BCD + ABC' + A'BC + BC'D' = AD + A'BC + BC'D' One More Example Homework for Unit 3 27 28 Show that A'BC'D + (A' + BC)(A + C'D') + BC'D + A'BC' = ABCD + A'C'D' + ABD + ABCD' + BC'D 1. Reduce the left side: A'BC'D + (A' + BC)(A + C'D') + BC'D + A'BC' = (A' + BC)(A + C'D') + BC'D + A'BC' = A'C'D' + ABC + BC'D + A'BC' (multiplying out) = A'C'D' + ABC + BC'D (consensus) 2. Reduce the right side: ABCD + A'C'D' + ABD + ABCD' + BC'D = ABC + A'C'D' + ABD + BC'D = ABC + A'C'D' + BC'D (consensus) 3. Because both sides were independently reduced to the same expression, the original equation is valid. Problems 3.12 (a) 3.13 (a) 3.23 (a) 3.28 3.36 Homework #1 covers Units 1--3 Due 10am March 16, 2010 Submit your solutions to ED518 by the deadline. Quiz #1: March 23, 2010