Boolean Algebra Part 1



Similar documents
CH3 Boolean Algebra (cont d)

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

Unit 3 Boolean Algebra (Continued)

BOOLEAN ALGEBRA & LOGIC GATES

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

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

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

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

Switching Algebra and Logic Gates

CSE140: Midterm 1 Solution and Rubric

Logic Reference Guide

Logic in Computer Science: Logic Gates

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

Understanding Logic Design

CSE140: Components and Design Techniques for Digital Systems

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

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

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

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

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

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

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

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

Simplifying Logic Circuits with Karnaugh Maps

Operations with Algebraic Expressions: Multiplication of Polynomials

Properties of Real Numbers

2.0 Chapter Overview. 2.1 Boolean Algebra

Factoring Quadratic Expressions

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

How To Factor By Gcf In Algebra 1.5

1.3 Polynomials and Factoring

How To Solve Factoring Problems

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

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

Negative Integer Exponents

Indiana State Core Curriculum Standards updated 2009 Algebra I

Factoring Trinomials: The ac Method

~ EQUIVALENT FORMS ~

Two-level logic using NAND gates

Combinational circuits

Chapter 5. Rational Expressions

BEGINNING ALGEBRA ACKNOWLEDMENTS

Factoring a Difference of Two Squares. Factoring a Difference of Two Squares

NSM100 Introduction to Algebra Chapter 5 Notes Factoring

Section 1. Finding Common Terms

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

In algebra, factor by rewriting a polynomial as a product of lower-degree polynomials

Applications of Fermat s Little Theorem and Congruences

Lecture 2 Matrix Operations

The Greatest Common Factor; Factoring by Grouping

Factoring. Factoring Monomials Monomials can often be factored in more than one way.

Algebra I. In this technological age, mathematics is more important than ever. When students

26 Integers: Multiplication, Division, and Order

Binary Adders: Half Adders and Full Adders

To Evaluate an Algebraic Expression

a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)

Mathematics Review for MS Finance Students

Factoring Polynomials

Algebraic Properties and Proofs

RULE 1: Additive Identity Property

Algebra Cheat Sheets

Factoring (pp. 1 of 4)

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

SIMPLIFYING SQUARE ROOTS

Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

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

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

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

Section IV.21. The Field of Quotients of an Integral Domain

So let us begin our quest to find the holy grail of real analysis.

Elementary Logic Gates

Factoring and Applications

Topic: Special Products and Factors Subtopic: Rules on finding factors of polynomials

You know from calculus that functions play a fundamental role in mathematics.

Gates, Circuits, and Boolean Algebra

COLLEGE ALGEBRA. Paul Dawkins

Inversion. Chapter Constructing The Inverse of a Point: If P is inside the circle of inversion: (See Figure 7.1)

CONTENTS 1. Peter Kahn. Spring 2007

FINDING THE LEAST COMMON DENOMINATOR

FACTORING OUT COMMON FACTORS

Online EFFECTIVE AS OF JANUARY 2013

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Algebra I Vocabulary Cards

Chapter 3. Inversion and Applications to Ptolemy and Euler

4. Binomial Expansions

6.1 The Greatest Common Factor; Factoring by Grouping

C H A P T E R. Logic Circuits

Sum-of-Products and Product-of-Sums expressions

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

5.1 FACTORING OUT COMMON FACTORS

ALGEBRA REVIEW LEARNING SKILLS CENTER. Exponents & Radicals

SECTION P.5 Factoring Polynomials

PRIMARY CONTENT MODULE Algebra I -Linear Equations & Inequalities T-71. Applications. F = mc + b.

4. FIRST STEPS IN THE THEORY 4.1. A

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

MATH Fundamental Mathematics IV

Section 5.3. Section 5.3. u m ] l jj. = l jj u j + + l mj u m. v j = [ u 1 u j. l mj

Tim Kerins. Leaving Certificate Honours Maths - Algebra. Tim Kerins. the date

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives

Transcription:

Boolean Algebra Part 1 Page 1

Boolean Algebra Objectives Understand Basic Boolean Algebra Relate Boolean Algebra to Logic Networks Prove Laws using Truth Tables Understand and Use First Basic Theorems Apply Boolean Algebra to: Simplifying Expressions Multiplying Out Expressions Factoring Expressions Page 2

A New Kind of Algebra Regular Algebra Boolean Algebra Values Integers Real Numbers Complex Numbers Operators + - / Logarithm, etc. Zero (0) One (1) AND OR Complement Page 3

Truth Tables A truth table provides a complete enumeration of the inputs and the corresponding output for a function. A B F 0 0 1 0 1 1 1 0 0 1 1 1 If there are n inputs, There will be 2 n rows In the table. Unlike with regular algebra, full enumeration is possible (and useful) in Boolean Algebra Page 4

Complement Operation Also known as invert or not. The inverse of x is written as x or x. x x' 0 1 1 0 Page 5

Logical AND Operation denotes AND Output is true iff all inputs are true A B Q=A B 0 0 0 0 1 0 1 0 0 1 1 1 Page 6

Logical OR Operation + denotes OR Output is true if any inputs are true A B Q=A+B 0 0 0 0 1 1 1 0 1 1 1 1 Page 7

Boolean Expressions Boolean expressions are made up of variables and constants combined by AND, OR and NOT Examples: 1 A A B C+D AB A(B+C) AB +C A B is the same as AB ( is omitted when obvious). Parentheses are used like in regular algebra for grouping. NOT has highest precedence, followed by AND then OR. A term is a grouping of variables ANDed together. A literal is each instance of a variable or constant. This expression has 4 variables, 3 terms, and 6 literals: a b + bcd + a Page 8

Boolean Expressions Each Boolean expression can be specified by a truth table which lists all possible combinations of the values of all variables in the expression. F = A + B C A B C A' B C F = A' + B C 0 0 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 1 0 1 1 Page 9

Boolean Expressions From Truth Tables Each 1 in the output of a truth table specifies one term in the corresponding boolean expression. The expression can be read off by inspection A B C F 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 F is true when: A is false AND B is true AND C is false OR A is true AND B is true AND C is true F = A BC + ABC Page 10

Another Example A B C F 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 F =? F = A B C + A BC + AB C + ABC Page 11

Yet Another Example A B F F =? 0 0 1 0 1 1 1 0 1 1 1 1 F = A B + A B + AB + AB = 1 (F is always true) There may be multiple expressions for any given truth table. Page 12

Converting Boolean Functions to Truth Tables F = AB + BC BC BC A B C F 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 AB Page 13

Converting Boolean Functions to Truth Tables F = AB + BC BC BC A B C F 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 AB Page 14

Some Basic Boolean Theorems A 0 A = 0 A B Q = A B 0 0 0 0 1 0 1 0 0 1 1 1 A B Q = A + B 0 0 0 0 1 1 1 0 1 1 1 1 From these We can derive these 0 0 1 0 A 1 A = A 0 0 1 1 A 0 + A = A 0 0 1 1 A 1 + A = 1 0 1 1 1 Page 15

Proof Using Truth Tables Truth Tables can be used to prove that 2 Boolean expressions are equal. If the two expressions have the same value for all possible combinations of input variables, they are equal. X Y + Y = X + Y X Y Y' X Y' X Y' + Y X + Y 0 0 1 0 0 0 0 1 0 0 1 1 1 0 1 1 1 1 1 1 0 0 1 1 These two expressions are equal. = Page 16

Basic Boolean Algebra Theorems Here are the first 5 Boolean Algebra theorems we will study and use. X + 0 = X X 1 = X X + 1 = 1 X 0 = 0 X + X = X X X = X X + X' = 1 X X' = 0 ( X' )' = X Page 17

Basic Boolean Algebra Theorems While these laws don t seem very exciting, they can be very useful in simplifying Boolean expressions: Simplify: (M N + M N) P + P + 1 X + 1 1 Page 18

Commutative Laws X Y = Y X X + Y = Y + X Associative Laws (X Y) Z = X (Y Z) = X Y Z (X + Y) + Z = X + (Y + Z ) = X + Y + Z Just like regular algebra Page 19

Distributive Law X ( Y + Z ) = X Y + X Z Prove with a truth table: X Y Z Y + Z X ( Y + Z ) X Y X Z X Y + X Z 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 Just like regular algebra = Page 20

Other Distributive Law X + Y Z = ( X + Y ) ( X + Z ) Proof: ( X + Y ) ( X + Z ) = X ( X + Z) + Y ( X + Z ) = X X + X Z + Y X + Y Z = X + X Z + X Y + Y Z = X 1 + X Z + X Y + Y Z = X ( 1 + Z + Y ) + Y Z = X 1 + Y Z = X + Y Z NOT like regular algebra! Page 21

Simplification Theorems X Y + X Y = X X + X Y = X X + Y X = X + Y ( X + Y ) (X + Y ) = X X ( X + Y ) = X X ( X + Y ) = X Y These are useful for simplifying Boolean Expressions. The trick is to find X and Y. ( A + B + CD) (B + A + CD) ( A + CD + B) (A + CD + B ) A + CD Rearrange terms (X + Y)(X + Y ) = X Page 22

Multiplying Out All terms are products only (no parentheses) A B C + D E + F G H A B + C D + E A B + C ( D + E ) Yes Yes No Multiplied out = sum-of-products form (SOP) Page 23

Multiplying Out - Example ( A + B )( A + C )( C + D ) ( A + B C )( C + D ) A C + A D + B C C + B C D Use ( X + Y )( X + Z ) = X + Y Z Multiply Out Use X X = X A C + A D + B C + B C D A C + A D + BC Use X + X Y = X Using the theorems may be simpler than brute force. But, brute force does work Page 24

Factoring Final form is products only All sum terms are single variables only ( A + B + C ) ( D + E ) Yes ( A + B )( C + D )E F Yes ( A + B + C ) ( D + E ) + H No ( A + BC ) ( D + E ) No Factored out = product-of-sums form (POS) Page 25

Factoring - Example A B + C D ( A B + C )( A B + D ) Sum of Products (SOP) ( A + C )( B + C )( A B + D ) Use X + Y Z = ( X + Y )( X + Z ) Use X + Y Z = ( X + Y )( X + Z ) again ( A + C )( B + C )( A + D )( B + D ) And again Product of Sums (POS) Page 26

POS vs. SOP Any expression can be written either way Can convert from one to another using theorems Sometimes SOP looks simpler AB + CD = ( A + C )( B + C )( A + D )( B + D ) Sometimes POS looks simpler (A + B)(C + D) = BD + AD + BC + AC SOP will be most commonly used in this class but we must learn both Page 27

Duality If an equality is true its dual will be true as well To form the dual: AND OR Invert constant 0 s or 1 s Do NOT invert variables Because these are true These are also true X + 0 = X X 1 = X X + 1 = 1 X 0 = 0 X + X = X X X = X X + X' = 1 X X' = 0 Page 28

Theorem Summary For each theorem on the left, the dual is listed on the right. X + 0 = X X 1 = X X + 1 = 1 X 0 = 0 X + X = X X X = X X + X = 1 X X = 0 (X ) = X XY + XY = X (X + Y) (X + Y ) = X X + XY = X X(X + Y) = X X + YX = X + Y X(Y + X ) = X Y XY + X Z + YZ = XY + X Z (X + Y)(X + Z)(Y + Z) = (X + Y)(X + Z) HINT: when forming duals, first apply parentheses around all AND terms. Page 29