Boolean Algebra. Boolean Algebra

Similar documents
Boolean Algebra. Boolean Algebras

Boolean algebra.

M A T H F A L L CORRECTION. Algebra I 2 1 / 0 9 / U N I V E R S I T Y O F T O R O N T O

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

Control with binary code. William Sandqvist

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples

Overview of Today s Lecture:

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Fall Notes - Unit 1

Fast Boolean Algebra

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: Computer Hardware Design Winter Notes - Unit 1

Boolean Algebra cont. The digital abstraction

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

CS 330 Formal Methods and Models

September 13 Homework Solutions

Digital Control of Electric Drives

Chapter 1: Logarithmic functions and indices

Chapter 6 Techniques of Integration

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Introduction to Electrical & Electronic Engineering ENGG1203

Coalgebra, Lecture 15: Equations for Deterministic Automata

INF1383 -Bancos de Dados

Math 4310 Solutions to homework 1 Due 9/1/16

INTRODUCTION TO LINEAR ALGEBRA

set is not closed under matrix [ multiplication, ] and does not form a group.

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT

2.4 Linear Inequalities and Interval Notation

Introduction to Group Theory

Fachgebiet Rechnersysteme1. 1. Boolean Algebra. 1. Boolean Algebra. Verification Technology. Content. 1.1 Boolean algebra basics (recap)

CS 330 Formal Methods and Models

Lecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences.

The Fundamental Theorem of Algebra

Bob Brown Math 251 Calculus 1 Chapter 5, Section 4 1 CCBC Dundalk

Chapter 9 Definite Integrals

The Algebra (al-jabr) of Matrices

Section 6.1 INTRO to LAPLACE TRANSFORMS

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

5.2 Exponent Properties Involving Quotients

DATABASE DESIGN I - 1DL300

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer

Chapters Five Notes SN AA U1C5

Name of the Student:

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

p-adic Egyptian Fractions

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Things to Memorize: A Partial List. January 27, 2017

In Section 5.3 we considered initial value problems for the linear second order equation. y.a/ C ˇy 0.a/ D k 1 (13.1.4)

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics

Bases for Vector Spaces

Linear Inequalities. Work Sheet 1

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.

20 MATHEMATICS POLYNOMIALS

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

Learning Goals. Relational Query Languages. Formal Relational Query Languages. Formal Query Languages: Relational Algebra and Relational Calculus

Review of Gaussian Quadrature method

The Regulated and Riemann Integrals

1B40 Practical Skills

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:

3 x x x 1 3 x a a a 2 7 a Ba 1 NOW TRY EXERCISES 89 AND a 2/ Evaluate each expression.

IST 4 Information and Logic

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

Parse trees, ambiguity, and Chomsky normal form

Lecture Solution of a System of Linear Equation

Chapter 3 Single Random Variables and Probability Distributions (Part 2)

Improper Integrals, and Differential Equations

Read section 3.3, 3.4 Announcements:

Unit 4. Combinational Circuits

Math 61CM - Solutions to homework 9

Quadratic reciprocity

Exercises with (Some) Solutions

Introduction To Matrices MCV 4UI Assignment #1

4 7x =250; 5 3x =500; Read section 3.3, 3.4 Announcements: Bell Ringer: Use your calculator to solve

expression simply by forming an OR of the ANDs of all input variables for which the output is

Quadratic Forms. Quadratic Forms

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q.

Fundamental Theorem of Calculus

Chapter 6 Continuous Random Variables and Distributions

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

DATABASTEKNIK - 1DL116

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

dx dt dy = G(t, x, y), dt where the functions are defined on I Ω, and are locally Lipschitz w.r.t. variable (x, y) Ω.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

ECON 331 Lecture Notes: Ch 4 and Ch 5

Good Review book ( ) ( ) ( )

Lecture 08: Feb. 08, 2019

Logarithms. Logarithm is another word for an index or power. POWER. 2 is the power to which the base 10 must be raised to give 100.

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 +

Lesson 1: Quadratic Equations

Prerequisites CHAPTER P

Math 017. Materials With Exercises

Dually quasi-de Morgan Stone semi-heyting algebras II. Regularity

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

Chapter 3. Vector Spaces

Transcription:

Boolen Alger Boolen Alger A Boolen lger is set B of vlues together with: - two inry opertions, commonly denoted y + nd, - unry opertion, usully denoted y ˉ or ~ or, - two elements usully clled zero nd one, such tht for every element of B: nd In ddition, certin ioms must e stisfied: - closure properties for oth inry opertions nd the unry opertion - ssocitivity of ech inry opertion over the other, - commuttivity of ech ech inry opertion, - distriutivity of ech inry opertion over the other, - sorption rules, - eistence of complements with respect to ech inry opertion We will ssume tht hs higher precedence thn +; however, this is not generl rule for ll Boolen lgers. Computer Orgniztion 25-25 McQuin

Boolen Alger Computer Orgniztion 2 25-25 McQuin Aioms of Boolen Alger Associtive Lws: for ll, nd c in B, ( ( c c ( ( c c ( ( ( c c ( ( ( c c ( ( Commuttive Lws: for ll nd in B, Distriutive Lws: for ll, nd c in B, Asorption Lws: for ll, nd c in B, Eistence of Complements: for ll in B, there eists n element ā in B such tht

Emples of Boolen Algers Boolen Alger 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 y: + * ~ Given set S, the power set of S, P(S is Boolen lger under the opertions union, intersection nd reltive complement. Other, interesting emples eist Computer Orgniztion 25-25 McQuin

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

DeMorgn's Lws & More Boolen Alger 5 DeMorgn's Lws re useful theorems tht cn e derived from the fundmentl properties of Boolen lger. For ll nd in B, Of course, there s lso doule-negtion lw: And there re idempotency lws: Boundedness properties: Computer Orgniztion 25-25 McQuin

Logic Epressions nd Equtions Boolen Alger 6 A logic epression is defined in terms of the three sic Boolen opertors nd vriles which my tke on the vlues nd. For emple: z : y y y : ( 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 possile ssignments of vlues to their vriles. For emple: y y y y Of course, equtions my e true or flse. Wht out the one ove? Computer Orgniztion 25-25 McQuin

Boolen Alger Computer Orgniztion 7 25-25 McQuin Why do they cll it "lger"? A Boolen epression cn often e usefully trnsformed y using the theorems nd properties stted erlier: y y y y y y y y Tht is reltively simple emple of reduction. Try showing the following epressions re equl: z y z y

Why do they cll it "lger"? Here's nother tht hppens to e relted to inry ddition: Boolen Alger 8 Z A B C A B C A B C A B C Given A B C A B C A B C A B C A B C A B C Idempotence A B C A B C A B C A B C A B C A B C Commuttivity, Associtivity A AB C AC B B AB C C Commuttivity, Distriutivity B C AC A B Complements AC B C AB Boundedness Computer Orgniztion 25-25 McQuin

Tutologies, Contrdictions & Stisfiles Boolen Alger 9 A tutology is Boolen epression tht evlutes to true ( for ll possile vlues of its vriles. A contrdiction is Boolen epression tht evlutes to flse ( for ll possile vlues of its vriles. A Boolen epression is stisfile if there is t lest one ssignment of vlues to its vriles for which the epression evlutes to true (. Computer Orgniztion 25-25 McQuin

Truth Tles Boolen Alger A Boolen epression my e nlyzed y creting tle tht shows the vlue of the epression for ll possile ssignments of vlues to its vriles: Computer Orgniztion 25-25 McQuin

Proving Equtions with Truth Tles Boolen Alger Boolen equtions my e proved using truth tles (dull nd mechnicl: c c + c ~(**c ~*~*~c Computer Orgniztion 25-25 McQuin

Proving Equtions Algericlly Boolen Alger 2 Boolen equtions my e proved using truth tles, which is dull nd oring, or using the lgeric properties: B, sorption, with lw of complements B, sorption, with lw of complements Note the dulity Computer Orgniztion 25-25 McQuin

Proving Equtions Algericlly Boolen Alger 3 B, sorption, with ( lw of complements sorption, with = Computer Orgniztion 25-25 McQuin

Sum-of-Products Form Boolen Alger 4 A Boolen epression is sid to e in sum-of-products form if it is epressed s sum of terms, ech of which is product of vriles nd/or their complements: It's reltively esy to see tht every Boolen epression cn e written in this form. Why? The summnds in the sum-of-products form re clled minterms. - ech minterm contins ech of the vriles, or its complement, ectly once - ech minterm is unique, nd therefore so is the representtion (side from order Computer Orgniztion 25-25 McQuin

Emple Boolen Alger 5 Given truth tle 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 vriles, tking the vrile if its vlue is nd the complement if the vrile's vlue is - tke the sum of ll such product terms y z F y z y z y z yz F y z y z y z y z Computer Orgniztion 25-25 McQuin

Product-of-Sums Form Boolen Alger 6 A Boolen epression is sid to e in product-of-sums form if it is epressed s product of terms, ech of which is sum of vriles: Every Boolen epression cn lso e written in this form, s product of mterms. Fcts similr to the sum-of-products form cn lso e sserted here. The product-of-sums form cn e derived y epressing the complement of the epression in sum-of-products form, nd then complementing. Computer Orgniztion 25-25 McQuin

Emple Boolen Alger 7 Given truth tle 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 vriles, tking the vrile if its vlue is nd the complement if the vrile's vlue is - tke the sum of ll such product terms; then complement the result y z F y z y z y z y z F y z y z y z y z F y z y z y z y z ( y z ( y z ( y z ( y z Computer Orgniztion 25-25 McQuin

Boolen Functions Boolen Alger 8 A Boolen function tkes n inputs from the elements of Boolen lger nd produces single vlue lso n element of tht Boolen lger. For emple, here re ll possile 2-input Boolen functions on the set {, }: A B zero nd A B or or A B nor eq B' A' nnd one Computer Orgniztion 25-25 McQuin

Universlity Any Boolen function cn e epressed using: - only AND, OR nd NOT - only AND nd NOT - only OR nd NOT - only AND nd XOR - only NAND - only NOR Boolen Alger 9 The first ssertion should e entirely ovious. The remining ones re ovious if you consider how to represent ech of the functions in the first set using only the relevnt functions in the relevnt set. Computer Orgniztion 25-25 McQuin