Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.

Slides:



Advertisements
Similar presentations
Discrete Mathematics II
Advertisements

Presented by: Ms. Maria Estrellita D. Hechanova, ECE
Introduction The concept of transform appears often in the literature of image processing and data compression. Indeed a suitable discrete representation.
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Instructor: Hayk Melikya
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Number Theory and Cryptography
INFINITE SEQUENCES AND SERIES
Algebraic Structures DEFINITIONS: PROPERTIES OF BINARY OPERATIONS Let S be a set and let  denote a binary operation on S. (Here  does not necessarily.
1.  Detailed Study of groups is a fundamental concept in the study of abstract algebra. To define the notion of groups,we require the concept of binary.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
CSE-221 Digital Logic Design (DLD)
Boolean Algebra cont’ The digital abstraction מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#
Copyright © Cengage Learning. All rights reserved.
Lattice and Boolean Algebra
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
ALGEBRAIC PROPERTIES Image from Let’s Keep Those Equations Balanced!
Section Section Summary Introduction to Boolean Algebra Boolean Expressions and Boolean Functions Identities of Boolean Algebra Duality The Abstract.
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
1 Section 10.1 What Is an Algebra? To most people the word algebra means high school algebra. But there are many kinds of algebra. An algebra consists.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Michaelmas Term 2004 Discrete Mathematics CSC 141 Discrete Mathematics Dr. Corina Sas and Ms. Nelly Bencomo
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
SECTION 3 ISOMORPHIC BINARY STRUCTURES Definition Let  S,  and  S’,  ’  be binary algebraic structures. An isomorphism of S with S’ is a one-to-one.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFunctions.
Set A formal collection of objects, which can be anything May be finite or infinite Can be defined by: – Listing the elements – Drawing a picture – Writing.
Great Theoretical Ideas in Computer Science.
Great Theoretical Ideas in Computer Science for Some.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
Math 344 Winter 07 Group Theory Part 2: Subgroups and Isomorphism
Whole Numbers Section 3.4 Properties of Whole-Number Operations
Data Types 2 Arithmetic funtions ans laws.
Chapter 6 Abstract algebra
Great Theoretical Ideas in Computer Science.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
SECTION 8 Groups of Permutations Definition A permutation of a set A is a function  ϕ : A  A that is both one to one and onto. If  and  are both permutations.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
Boolean Algebras Lecture 24 Section 5.3 Wed, Mar 22, 2006.
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
Boolean Algebra.
The Relation Induced by a Partition
Chapter 11 (Part 1): Boolean Algebra
Relations, Functions, and Matrices
6.4 Finite Boolean Algebra
Great Theoretical Ideas in Computer Science
Set, Combinatorics, Probability & Number Theory
Chapter 3 The Real Numbers.
Chapter 2 Sets and Functions.
… and now for the Final Topic:
Chapter 3 The Real Numbers.
COMPUTING FUNDAMENTALS
Boolean Algebra A Boolean algebra is a set B of values together with:
Boolean Algebra A Boolean algebra is a set B of values together with:
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
CMSC Discrete Structures
Great Theoretical Ideas in Computer Science
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Applied Discrete Mathematics Week 4: Functions
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra Structure

Section 7.1Boolean Algebra Structure1 Models or Abstractions We frequently use models or abstractions to capture properties that may be common to different instances or applications of the models. For example, graphs and trees are abstractions of many real-world problems. When we reason about a graph structure we are able to prove theorems and develop techniques that can be applied to a variety of problems. Mathematical structures—abstract sets of objects, together with operations on or relationships among those objects that obey certain rules—are often used as models that express the similarities between different instances.

Section 7.1Boolean Algebra Structure2 Definition and Properties A Boolean algebra is a set B on which are defined two binary operations and and one unary operation and in which there are two distinct elements 0 and 1 such that the following properties hold for all x, y, z  B: x + y = y + x (commutative properties) (x + y) + z = x + (y + z) (associative properties) x + (y * z) = (x + y) * (x + z) (distributive properties) x + 0 = x (identity properties) x + x = 1 (complement properties) And x * y = y * x (commutative properties) (x* y) * z = x * (y * z) (associative properties) x * (y + z) = (x * y) + (x * z) (distributive properties) x * 1 = x (identity properties) x * x = 0 (complement properties)

Section 7.1Boolean Algebra Structure3 Definition and Properties The formalization of a Boolean algebra structure helps us focus on the essential features common to all examples of Boolean algebras, and we can use these features—these facts from the definition of a Boolean algebra—to prove other facts about Boolean algebras. We denote a Boolean algebra by [B, +, ,, 0, 1]. Using the basic definition of Boolean algebra it is possible to prove other properties. Boolean algebra: forms the basis for electronics today.

Section 7.1Boolean Algebra Structure4 Definition and Properties For example, The idempotent property x + x = x holds in any Boolean algebra because: x + x = (x + x)  1// identity property = (x + x)  (x + x)// definition of x + x = x + (x  x)// distributive property = x + 0// complement property for  = x // identity property Ordinary arithmetic is not a Boolean algebra because the property x + x = x does not hold for ordinary numbers and ordinary addition unless x is zero. The idempotent property also holds for  : x  x

Section 7.1Boolean Algebra Structure5 Definition and Properties Hints for proving Boolean algebra equalities: Usually the best approach is to start with the more complicated expression and try to show that it reduces to the simpler expression. Think of adding some form of 0 (like x  x ) or multiplying by some form of 1 (like x + x ). Remember the distributive property of addition over multiplication—easy to forget because it doesn’t look like arithmetic. Remember the idempotent properties x + x = x and x  x = x.

Section 7.1Boolean Algebra Structure6 Definition and Properties For x an element of a Boolean algebra B, the element x is called the complement of x. The complement of x satisfies: x + x = l and x  x = 0 THEOREM ON THE UNIQUENESS OF COMPLEMENTS For any x in a Boolean algebra, if an element x 1 exists such that x + x 1 = 1 and x  x 1 = 0, then x 1 = x.

Section 7.1Boolean Algebra Structure7 Isomorphic Boolean Algebras Two instances of a structure are isomorphic if there is a bijection (called an isomorphism) that maps the elements of one instance onto the elements of the other so that important properties are preserved. If two instances of a structure are isomorphic, each is a mirror image of the other, with the elements simply relabeled. The two instances are essentially the same. Therefore, we can use the idea of isomorphism to classify instances of a structure, lumping together those that are isomorphic.

Section 7.1Boolean Algebra Structure8 Isomorphic Boolean Algebras Suppose we have two Boolean algebras, [B, +, ,, 0, 1] and [b, &, *, , φ, 1]. If x is in B, x is the result of performing on x the unary operation defined in B. If z is an element of b, z  is the result of performing on z the unary operation defined in b. To prove isomorphism, we need a bijection f from B onto b. Then f must preserve in b the effects of the various operations in B. There are three operations, so we use three equations to express these preservations.

Section 7.1Boolean Algebra Structure9 Isomorphic Boolean Algebras DEFINITION: ISOMORPHISM FOR BOOLEAN ALGEBRAS Let [B, +, ,, 0, 1] and [b, &, *, ′, ϕ, 1 ] be Boolean algebras. A function B  b is an isomorphism from [B, +, ,, 0, 1] to [b, &, *, , ϕ, 1 ] if: 1. f is a bijection 2. f (x + y) = f (x) & f (y) 3. f (x. y) = f (x) * f (y) 4. f (x′) = ( f (x)) 

Section 7.1Boolean Algebra Structure10 Isomorphic Boolean Algebras THEOREM ON FINITE BOOLEAN ALGEBRAS Let B be any Boolean algebra with n elements. Then n = 2m for some m, and B is isomorphic to  ({1, 2,..., m}). The theorem above gives us two pieces of information: The number of elements in a finite Boolean algebra must be a power of 2. Finite Boolean algebras that are power sets are—in our lumping together of isomorphic things—really the only kinds of finite Boolean algebras.