Boolean Algebra. Boolean Algebra

Similar documents
Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

SPECIAL PRODUCTS AND FACTORIZATION

and thus, they are similar. If k = 3 then the Jordan form of both matrices is

Learning Outcomes. Computer Systems - Architecture Lecture 4 - Boolean Logic. What is Logic? Boolean Logic 10/28/2010

Operations with Polynomials

Section 7-4 Translation of Axes

MATH 150 HOMEWORK 4 SOLUTIONS

Algebra Review. How well do you remember your algebra?

Factoring Polynomials

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

CS99S Laboratory 2 Preparation Copyright W. J. Dally 2001 October 1, 2001

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation

4.11 Inner Product Spaces

AREA OF A SURFACE OF REVOLUTION

Binary Representation of Numbers Autar Kaw

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

Vectors Recap of vectors

Graphs on Logarithmic and Semilogarithmic Paper

Or more simply put, when adding or subtracting quantities, their uncertainties add.

Scalar and Vector Quantities. A scalar is a quantity having only magnitude (and possibly phase). LECTURE 2a: VECTOR ANALYSIS Vector Algebra

RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS

LECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes.

Integration. 148 Chapter 7 Integration

9 CONTINUOUS DISTRIBUTIONS

Lecture 3 Gaussian Probability Distribution

CS 316: Gates and Logic

Reasoning to Solve Equations and Inequalities

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

Words Symbols Diagram. abcde. a + b + c + d + e

19. The Fermat-Euler Prime Number Theorem

Math 135 Circles and Completing the Square Examples

Second Term MAT2060B 1. Supplementary Notes 3 Interchange of Differentiation and Integration

Physics 43 Homework Set 9 Chapter 40 Key

Section 1: Crystal Structure

Module Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials

MA Lesson 16 Notes Summer 2016 Properties of Logarithms. Remember: A logarithm is an exponent! It behaves like an exponent!

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

Exponential and Logarithmic Functions

Lec 2: Gates and Logic

Lectures 8 and 9 1 Rectangular waveguides

Appendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered:

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

Treatment Spring Late Summer Fall Mean = 1.33 Mean = 4.88 Mean = 3.

DIFFERENTIATING UNDER THE INTEGRAL SIGN

Regular Sets and Expressions

Integration by Substitution

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes

Review guide for the final exam in Math 233

EQUATIONS OF LINES AND PLANES

AP STATISTICS SUMMER MATH PACKET

Unit 6: Exponents and Radicals

e.g. f(x) = x domain x 0 (cannot find the square root of negative values)

Physics 6010, Fall 2010 Symmetries and Conservation Laws: Energy, Momentum and Angular Momentum Relevant Sections in Text: 2.6, 2.

Vectors. The magnitude of a vector is its length, which can be determined by Pythagoras Theorem. The magnitude of a is written as a.

Basic Analysis of Autarky and Free Trade Models

Brillouin Zones. Physics 3P41 Chris Wiebe

AA1H Calculus Notes Math1115, Honours John Hutchinson

10.6 Applications of Quadratic Equations

6.2 Volumes of Revolution: The Disk Method

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Experiment 6: Friction

Econ 4721 Money and Banking Problem Set 2 Answer Key

STATUS OF LAND-BASED WIND ENERGY DEVELOPMENT IN GERMANY

. At first sight a! b seems an unwieldy formula but use of the following mnemonic will possibly help. a 1 a 2 a 3 a 1 a 2

Multiplication and Division - Left to Right. Addition and Subtraction - Left to Right.

MODULE 3. 0, y = 0 for all y

PHY 140A: Solid State Physics. Solution to Homework #2

Radius of the Earth - Radii Used in Geodesy James R. Clynch February 2006

Lecture 5. Inner Product

FAULT TREES AND RELIABILITY BLOCK DIAGRAMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University

Module 2. Analysis of Statically Indeterminate Structures by the Matrix Force Method. Version 2 CE IIT, Kharagpur

Linear Equations in Two Variables

Thinking out of the Box... Problem It s a richer problem than we ever imagined

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 16 th May Time: 14:00 16:00

Boolean Algebra. ECE 152A Winter 2012

Homework 3 Solutions

COMPONENTS: COMBINED LOADING

Summary: Vectors. This theorem is used to find any points (or position vectors) on a given line (direction vector). Two ways RT can be applied:

Introduction to Integration Part 2: The Definite Integral

Orbits and Kepler s Laws

Applications to Physics and Engineering

Pentominoes. Pentominoes. Bruce Baguley Cascade Math Systems, LLC. The pentominoes are a simple-looking set of objects through which some powerful

Rate and Activation Energy of the Iodination of Acetone

Health insurance marketplace What to expect in 2014

COMPARISON OF SOME METHODS TO FIT A MULTIPLICATIVE TARIFF STRUCTURE TO OBSERVED RISK DATA BY B. AJNE. Skandza, Stockholm ABSTRACT

Rotating DC Motors Part II

INTERCHANGING TWO LIMITS. Zoran Kadelburg and Milosav M. Marjanović

Math 314, Homework Assignment Prove that two nonvertical lines are perpendicular if and only if the product of their slopes is 1.

Basically, logarithmic transformations ask, a number, to what power equals another number?

Health insurance exchanges What to expect in 2014

Application Bundles & Data Plans

Small Business Networking

How To Network A Smll Business

Network Configuration Independence Mechanism

On decidability of LTL model checking for process rewrite systems

Transcription:

A Boolen lgebr is set B of vlues together with: - two binr opertions, commonl denoted b + nd, - unr opertion, usull denoted b or ~ or, - two elements usull clled ero nd one, such tht for ever element of B: + = nd = In ddition, certin ioms must be stisfied: - closure properties for both binr opertions nd the unr opertion - ssocitivit of ech binr opertion over the other, - commuttivit of ech ech binr opertion, - distributivit of ech binr opertion over the other, - bsorption rules, - eistence of complements with respect to ech binr opertion We will ssume tht hs higher precedence thn +; however, this is not generl rule for ll Boolen lgebrs. 25-2 McQuin

Aioms of Associtive Lws: for ll, b nd c in B, 2 ( + b) + c= + ( b+ c) ( b) c= ( b c) Commuttive Lws: for ll nd b in B, + b= b+ b= b Distributive Lws: for ll, b nd c in B, + ( b c) = ( + b) ( + c) ( b+ c) = ( b) + ( c) Absorption Lws: for ll, b nd c in B, + ( b) = ( + b) = Eistence of Complements: for ll in B, there eists n element ā in B such tht + = = 25-2 McQuin

Emples of s 3 The clssic emple is B = {true, flse} with the opertions AND, OR nd NOT. An isomorphic emple is B = {, } with the opertions +, nd ~ defined b: b + b b ~ Given set S, the power set of S, P(S) is Boolen lgebr under the opertions union, intersection nd reltive complement. Other, interesting emples eist 25-2 McQuin

More Properties It's lso possible to derive some dditionl fcts, including: - the elements nd re unique - the complement of n element is unique - nd re complements of ech other 4 25-2 McQuin

DeMorgn's Lws & More 5 DeMorgn's Lws re useful theorems tht cn be derived from the fundmentl properties of Boolen lgebr. For ll nd b in B, + b= b b= + b Of course, there s lso double-negtion lw: = And there re idempotenc lws: + = = Boundedness properties: + = = += = 25-2 McQuin

Logic Epressions nd Equtions 6 A logic epression is defined in terms of the three bsic Boolen opertors nd vribles which m tke on the vlues nd. For emple: : + : ( 2) + ( 2 3) + ( 2+ 3) A logic eqution is n ssertion tht two logic equtions re equl, where equl mens tht the vlues of the two epressions re the sme for ll possible ssignments of vlues to their vribles. For emple: ( + ) ( ) + + = Of course, equtions m be true or flse. Wht bout the one bove? 25-2 McQuin

7 25-2 McQuin Wh do the cll it "lgebr"? A Boolen epression cn often be usefull trnsformed b using the theorems nd properties stted erlier: ( ) ( ) ( ) ( ) + = + = + + + = + + This is reltivel simple emple of reduction. Tr showing the following epressions re equl: ( ) + = +

Tutologies, Contrdictions & Stisfibles 8 A tutolog is Boolen epression tht evlutes to true () for ll possible vlues of its vribles. + b+ b+ b+ b A contrdiction is Boolen epression tht evlutes to flse () for ll possible vlues of its vribles. A Boolen epression is stisfible if there is t lest one ssignment of vlues to its vribles for which the epression evlutes to true (). b+ b 25-2 McQuin

Truth Tbles 9 A Boolen epression m be nled b creting tble tht shows the vlue of the epression for ll possible ssignments of vlues to its vribles: b b b b+ b 25-2 McQuin

Proving Equtions with Truth Tbles Boolen equtions m be proved using truth tbles (dull nd mechnicl): += + b c= + b+ c b c ~(*b*c) ~*~b*~c 25-2 McQuin

Proving Equtions Algebricll Boolen equtions m be proved using truth tbles, which is dull nd boring, or using the lgebric properties: B, = ( ) bsorption, with = + b= = lw of complements B, + = ( ) bsorption, with = + b= = + lw of complements Note the dulit 25-2 McQuin

Proving Equtions Algebricll 2 B, + = = + bsorption, with b= = + ( + ) lw of complements = + bsorption, with b = 25-2 McQuin

Sum-of-Products Form 3 A Boolen epression is sid to be in sum-of-products form if it is epressed s sum of terms, ech of which is product of vribles nd/or their complements: b+ b It's reltivel es to see tht ever Boolen epression cn be written in this form. Wh? The summnds in the sum-of-products form re clled minterms. - ech minterm contins ech of the vribles, or its complement, ectl once - ech minterm is unique, nd therefore so is the representtion (side from order) 25-2 McQuin

Emple 4 Given truth tble for Boolen function, construction of the sum-of-products representtion is trivil: - for ech row in which the function vlue is, form product term involving ll the vribles, tking the vrible if its vlue is nd the complement if the vrible's vlue is - tke the sum of ll such product terms F F = + + + 25-2 McQuin

Product-of-Sums Form 5 A Boolen epression is sid to be in product-of-sums form if it is epressed s product of terms, ech of which is sum of vribles: ( + b) ( + b) Ever Boolen epression cn lso be written in this form, s product of mterms. Fcts similr to the sum-of-products form cn lso be sserted here. The product-of-sums form cn be derived b epressing the complement of the epression in sum-of-products form, nd then complementing. 25-2 McQuin

Emple 6 Given truth tble for Boolen function, construction of the product-of-sums representtion is trivil: - for ech row in which the function vlue is, form product term involving ll the vribles, tking the vrible if its vlue is nd the complement if the vrible's vlue is - tke the sum of ll such product terms; then complement the result F F = + + + F = = ( + + ) ( + + ) ( + + ) ( + + ) 25-2 McQuin

Boolen Functions 7 A Boolen function tkes n inputs from the elements of Boolen lgebr nd produces single vlue lso n element of tht Boolen lgebr. For emple, here re ll possible 2-input Boolen functions on the set {, }: A B ero nd A B or or A B nor eq B' A' nnd one 25-2 McQuin

Universlit An Boolen function cn be epressed using: - onl AND, OR nd NOT - onl AND nd NOT - onl OR nd NOT - onl AND nd XOR - onl NAND - onl NOR 8 The first ssertion should be entirel obvious. The remining ones re obvious if ou consider how to represent ech of the functions in the first set using onl the relevnt functions in the relevnt set. 25-2 McQuin