Boolean Algebra cont’ The digital abstraction Graphs and Topological Sort מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#

Slides:



Advertisements
Similar presentations
Types of Logic Circuits
Advertisements

CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Instructor: Hayk Melikya
(CSC 102) Discrete Structures Lecture 14.
1.  We have studied groups, which is an algebraic structure equipped with one binary operation. Now we shall study rings which is an algebraic structure.
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.
Topics: 1. Finding a cycle in a graph 2. Propagation delay - example 3. Trees - properties מבנה המחשב - אביב 2004 תרגול 3#
Discrete Mathematics Lecture 4 Harper Langston New York University.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 -Part 2.
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)
מבנה המחשב – מבוא למחשבים ספרתיים Foundations of Combinational Circuits תרגול מספר 3.
Boolean Algebra cont’ The digital abstraction מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
Lattice and Boolean Algebra
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Partially Ordered Sets (POSets)
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra أ. زينب آل كاظم 1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
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,
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
Boolean Algebra and Digital Circuits
Chapter 3 – Set Theory  .
Homework Review notes Complete Worksheet #1. Homework Let A = {a,b,c,d}, B = {a,b,c,d,e}, C = {a,d}, D = {b, c} Describe any subset relationships. 1.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Snick  snack Supplement: Worked Set Proofs Based on work by Meghan Allen.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra M. AL- Towaileb1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Great Theoretical Ideas in Computer Science for Some.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Boolean Algebra.
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
CHAPTER 2 Boolean algebra and Logic gates
Math 3121 Abstract Algebra I Lecture 6 Midterm back over+Section 7.
Boolean Algebra How gates get picked. Boolean Arithmetic Boolean ≠ Binary – Boolean – 1/0 only, no places Boolean addition:
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Hoda Roodaki Boolean Algebra Hoda Roodaki
Chapter 11 (Part 1): Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
… and now for the Final Topic:
LATTICES AND BOOLEAN ALGEBRA
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:
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra.
CMSC Discrete Structures
CSE 370 – Winter Combinational Logic - 1
CSE 20 Lecture 9 Boolean Algebra: Theorems and Transformations
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Boolean Algebra Introduction CSCI 240
Applied Discrete Mathematics Week 4: Functions
Sungho Kang Yonsei University
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
CMSC Discrete Structures
Presentation transcript:

Boolean Algebra cont’ The digital abstraction Graphs and Topological Sort מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#

Theorem 11: DeMorgan’s Law For every pair of elements a, b  B, 1. ( a + b )’ = a’ · b’ 2. ( a · b )’ = a’ + b’ Proof: (1) We first prove that (a+b) is the complement of a’·b’. Thus, (a+b)’ = a’·b’ By the definition of the complement and its uniqueness, it suffices to show: (i) (a+b)+(a’b’) = 1 and (ii) (a+b)(a’b’) = 0. (2) Duality(a·b)’ = a’+b’

Distributivity Commutativity Associativity a’ and b’ are the complements of a and b respectively Theorem: For any a  B, a + 1 = 1 Idempotent Law

Commutativity Distributivity Commutativity Associativity Commutativity a’ and b’ are the complements of a and b respectively Theorem: For any a  B, a · 0 = 0 Idempotent Law

Transfer function for an inverter Given an electronic device whose transfer function is: f(x) = 1-x Is it a valid device for an inverter? In the two threshold model: Yes, chose for example V low = 0.25, V high = 0.75 In the (more realistic) four threshold model?

Transfer function for an inverter (cont.) Assume it is a valid device  There exists four numbers v il, v ih, v ol, v oh such that: f(v il )  v oh,namely if in signal is  v il the out signal is  v oh. (the device is an inverter). f(v ih )  v ol (same as above) v ol < v il < v ih < v oh (4-thresholds model). However, according to the transfer function: f(v ih ) = 1- v ih f(v il ) = 1- v il

Transfer function for an inverter (con. 2)  1- v il  v oh and 1- v ih  v ol  v oh + v il  1 and v ol + v ih  1  A contradiction, since v oh > v ol and v il > v ih Conclusion: not any monotonically decreasing function is adequate to be a transfer function in the 4-thresholds model.

Graph Representation by List of Neighbors

Graph Representation by Matrix v v v

Topological Sort Works only on Directed Acyclic Graphs (DAG). Notations: –In degree: The number of edges entering a vertex. –Sources: vertices with in-degree 0. The Algorithm: –Initialize: V  The set of all vertices. –While V is not empty Extract a source s (if non-exists, then not a dag). Decrease the incoming degree of all its neighbors. Set s to be the next vertex in the topological order.

Topological Sort Example OR AND NOT XOROUT IN = Independent Vertex

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN OR

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN ORAND

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN ORANDNOT

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN ORANDNOTXOR

Topological Sort Example OR AND NOT XOROUT IN The Topological Sort: IN ORANDNOTXOROUT

The next slides are for the interested students (home reading)

Theorem: Associative Law In a Boolean algebra, each of the binary operations ( + ) and ( · ) is associative. That is, for every a, b, c  B, 1. a + ( b + c ) = ( a + b ) + c 2. a · ( b · c ) = ( a · b ) · c

Distributivity Commutativity Distributivity Absorption Law Idempotent Law Proof: (1) Let

Commutativity Distributivity Idempotent Law Absorption Law Commutativity Absorption Law

Putting it all together: Same transitions · before +

(2) Duality Also,

Dual transformation - Recursive definition: Dual: expressions → expressions base: 0 → 1 1 → 0 a → a, a  B\{0,1} recursion step: Let E 1 and E 2 be Boolean expressions. Then, E 1 ’ → [dual(E 1 )]’ ( E 1 + E 2 ) → [ dual(E 1 ) · dual(E 2 ) ] ( E 1 · E 2 ) → [ dual(E 1 ) + dual(E 2 ) ] Boolean expression - Recursive definition: base: 0, 1, a  B – expressions. recursion step: Let E 1 and E 2 be Boolean expressions. Then, E 1 ’ ( E 1 + E 2 ) ( E 1 · E 2 )

Proof: Let f ( x 1, x 2, …, x n ) be a Boolean expression. We show that applying the complement on the whole expression together with replacing each variable by it’s complement, yields the dual transformation definition. Let f d be the dual of a function f ( x 1, x 2, …, x n ) Lemma: In switching algebra, f d = f’ ( x 1 ’, x 2 ’, …, x n ’ ) Induction basis: 0, 1 – expressions.

Induction hypothesis: Lemma holds for Boolean expressions: E 1 and E 2. That is: Induction step: show that it is true for E 1 ’ ( E 1 + E 2 ) ( E 1 · E 2 ) If then,

If then, If then,

Definition: A function f is called self-dual if f = f d Lemma: For any function f and any two-valued variable A, the function g = Af + A’f d is a self-dual. Proof: (holds for any Boolean algebra) Dual definition Distributivity Commutativity

Notice that the above expression has the form: ab + a’c +bc where “a” =A, “b”=f, “c” = f d. Distributivity Commutativity A’ is the complement of A Identity Commutativity

We now prove a stronger claim: Identity a’ is the complement of a Distributivity Commutativity Distributivity Theorem: For any a  B, a + 1 = 1 Identity

For example: self-dual

Easier proof (1) for switching algebra only: (using dual properties) Switching algebraOR Identity

A = 0 0’ = 1 Identity Commutativity Absorption Law Theorem: For any a  B, a · 0 = 0 Identity Easier proof (2) for switching algebra only: (case analysis)

A = 1

Algebra of Sets Consider a set S. B = all the subsets of S (denoted by P(S)). “plus”  set-union ∪ “times”  set-intersection ∩ Additive identity element – empty set Ø Multiplicative identity element – the set S. Complement of X  B:

Theorem: The algebra of sets is a Boolean algebra. Proof: By satisfying the axioms of Boolean algebra: B is a set of at least two elements For every non empty set S: →|B| ≥ 2. Closure of ( ∪ ) and (∩) over B (functions ).

A1. Cummutativity of ( ∪ ) and ( ∩ ). An element lies in the union precisely when it lies in one of the two sets X and Y. Equally an element lies in the union precisely when it lies in one of the two sets X and Y. Hence,

A2. Distributivity of ( ∪ ) and ( ∩ ). Let and or If,We haveand. Hence, If,We haveand. Hence, or

Taking (*) and (**) we get, Distributivity of union over intersection can be conducted in the same manner.

This can be conducted in the same manner as ⊆. We present an alternative way: Definition of intersection and Also, definition of intersection definition of union Similarly, * **

A3. Existence of additive and multiplicative identity element. A4. Existence of the complement. Algebra of sets is Boolean algebra.All axioms are satisfied

Example 2 of a transfer function for an inverter

slope = -1

true only if:

BUT, this is not always the case. For example: slope = -1 Moreover, in this example it can be proved that no threshold values exist, which are consistent with definition 3 from lecture notes.

Using the assumption: slope < -1 f (x) = x

slope < -1

true if: f (x) = x slope < -1 slope = -1