Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

CSCI 115 Chapter 6 Order Relations and Structures.
Relations Relations on a Set. Properties of Relations.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Relations - review A binary relation on A is a subset of A×A (set of ordered pairs of elements from A) Example: A = {a,b,c,d,e} R = { (a,a),(a,b),(b,b),(b,c),
Basic Properties of Relations
Chapter 7 Relations : the second time around
Denoting the beginning
Orderings and Bounds Parallel FSM Decomposition Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 10 Update and modified by Marek.
1 Set Theory. 2 Set Properties Commutative Laws: Associative Laws: Distributive Laws:
1 Section 7.1 Relations and their properties. 2 Binary relation A binary relation is a set of ordered pairs that expresses a relationship between elements.
Partially Ordered Sets (POSets)
Relations Chapter 9.
Sets, POSets, and Lattice © Marcelo d’Amorim 2010.
Chapter 6. Order Relations and Structure
CSE 460: Switching Theory David M. Zar
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Discrete Math for CS Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation.
R. Johnsonbaugh, Discrete Mathematics 5 th edition, 2001 Chapter 2 The Language of Mathematics.
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Discrete Mathematics Relation.
Sets, Relations, and Lattices
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Mathematical Preliminaries
Sets and Subsets Set A set is a collection of well-defined objects (elements/members). The elements of the set are said to belong to (or be contained in)
Problem Statement How do we represent relationship between two related elements ?
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
Chapter Relations and Their Properties
Discrete Mathematics Set.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Chap. 7 Relations: The Second Time Around
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
1 CMSC 250 Discrete Structures CMSC 250 Lecture 41 May 7, 2008.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation is a relation on.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Relations and Their Properties
Citra Noviyasari, S.Si, MT
Chapter 5 Relations and Operations
CSE 2813 Discrete Structures
Unit-III Algebraic Structures
Partial Orderings CSE 2813 Discrete Structures.
Introduction to Relations
Relations Binary relations represent relationships between the elements of two sets. A binary relation R from set A to set B is defined by: R  A 
Equivalence Relations
Relations Chapter 9.
Partial Orderings.
Sets Section 2.1.
Relations and Digraphs
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Introductory Material
Sungho Kang Yonsei University
Discrete Math (2) Haiming Chen Associate Professor, PhD
Sungho Kang Yonsei University
Relations and their Properties
Lecture 20: Dataflow Analysis Frameworks 11 Mar 02
Discrete Math (2) Haiming Chen Associate Professor, PhD
Background material.
교환 학생 프로그램 내년 1월 중순부터 6월 초 현재 학부 2,3 학년?
Background material.
Foundations of Discrete Mathematics
Introductory Material
Presentation transcript:

Advanced Digital Designs Jung H. Kim

Chapter 1. Sets, Relations, and Lattices

Set : a collection of elements from some universe Subset : B  A if any element in B is also in A Proper subset : B  A if B is a subset of A and there is some element in A which is not in B. Operation on sets A  B A  B : all elements in a universe which are not in A. |A| : cardinality - number of distinct elements in A partition  of a set S is a collection of disjoint subset of S whose union is S. ex) A = {a,b,c,d,e,f}  = { }   { } ∵ not disjoint  (  ) : # of elements in the largest block n – tuple (a 1,a 2, …,a n ) : ordered collection on n elements  (a 2, a 1, …,a n ) {a,b,c} = {b,a,c} but (a,b,c)  (b,a,c) Cartesian product of sets A and B is denoted A  B, and contains all ordered pairs A  B = {(a,b) such that a  A and b  B}

Example) A = {a,b,c}, B = {a,e} A  B = {(a,a),(a,e),(b,a),(b,e),(c,a),(c,e)} A set of ordered pairs is a binary relation R. Binary relation R from set A to set B is any subset of A  B. R 1 = {(a,e), (c,e)} R 2  {(a,e), (b,c)} We specify the relation R by the property that relates members of ordered pairs. Properties of R in a set A (a relation from a set A to a set A) 1. R is reflexive iff for all a  A implies (a,a)  R For a set of integer, the relation “  ” is reflexive. 2  I, (2,2)  “  ” ← 2  2For a set of integer, the relation “<” is not reflexive. 2. R is symmetric iff for a,b  A, the existence of the ordered pair (a,b)  R implies that of (b,a)  R. For a set of integer, the relation “  ” is symmetric the relation “=” is not symmetric. 3. R is transitive iff for any three elements a,b,c  A (a,b)  R and (b,c)  R implies (a,c)  R.

For a set of integer, the relation “  ” is not transitive. the relation “<” is transitive. 4. R is antisymmetric iff for any a,b  A, (a,b)  R and a  b implies (b,a)  R that is (a,b)  R and (b,a)  R implies a=b. For a set of integer, the relation “  ” is antisymmetric. the relation “ For a set of integer, R = {(a,b) such that a  |b|} R is not antisymmetric and not symmetric Based on the properties of the binary relation, we can classify into equivalence relation compatibility relation partial ordering relation Equivalence relation is the binary relation which is reflexive, symmetric and transitive. For the integers, R “=” is reflexive, symmetric, and transitive ∴ R(“=”) is equivalence relation Equivalence relation partitions a set into blocks of equivalent elements. R = {(a,b) such that a mod 3 = b mod 3}  reflexive, symmetric and transitive  equivalence relation can be partitioned by = { } : equivalent classes

Compatibility relation is a binary relation which is reflexive, symmetric not necessary transitive, and it can classify elements into non-disjoint called compatibility classes such that all elements in such class are compatible. A = {a,b,c}, R={(a,b),(b,a),(a,c),(c,a),(a,a),(b,b),(c,c)}  reflexive, symmetric not transitive. (b,a)  R, (a,c)  R but (b,c)  R. Compatibility class { } compatibility class and a and c are compatible. Partial ordering relation is a binary relation which is reflexive, antisymmetric, and transitive relation. relation “  ”,  reflexive, antisymmetric and transitive. ∴ R (“  ”) is partial ordering relation. Hasse diagram : graphical representation of P.O. set vertices : elements of the set. Vertex X is a higher level than vertex Y iff X>Y Edge from X to Y is drawn iff X>Y and there is no other element of the P.O set say Z such that X>Z and Z>Y Binary 3-cube (a 1,a 2,a 3 ) (x 1,x 2,x 3 )  (y 1,y 2,y 3 ) iff y i is 1 whenever x i is 1. (0,0,1)  (1,0,1) (1,0,0)  (1,1,0) (1,0,0)  (0,1,1)

(0,0,0) (0,0,1) (0,1,0) (0,1,1) (1,0,0) (1,0,1) (1,1,0) (1,1,1) Binary n cube (a 1,a 2, …,a n ) (x 1,x 2, …,x n )  (y 1,y 2, …,y n ) iff y i is 1 whenever x i = 1. Least upper bound(lub) of a pair of elements a&b of a P.O. set is an element C such that c  a, c  b and there is no other element, say c´ such that c´ < c, c´  a, c´  b. lub need not be unique. lub((0,1,1),(1,1,0)) = (1,1,1) lub((0,1,0),(1,1,0)) = (1,1,0) lub((1,0,0),(0,1,0)) = (1,1,0) Great lower bound(glb) of a and b is an element c such that c  a, c  b and there is no other element c´ such that c´ < c, c´  a, c´  b. glb((0,1,1),(1,1,0))=(0,1,0) glb((0,0,1),(1,0,0))=(0,0,0) glb also need not be unique(generally) A P.O. set for which each pair of elements has a unique glb and lub is called a lattice. We can view glb and lub as binary operations on a lattice. join, +, a + b = lub(a,b)(0,0,1) + (1,0,0) = (1,0,1) meet, ·, a · b = glb(a,b) (0,1,1,) · (1,1,0) = (0,1,0)

Properties of + and · on lattice idempotency : for all elements a ⇒ a + a = a ·a = a commutativity : for a element a and b ⇒ a + b = b + a, a · b = b · a absorptivity : a + (a · b) = a, a · (a + b) = a associativity : a · (b · c) = (a · b) · c, a + (b + c) = (a + b) + c A lattice is distributive iff for any 3 elements a, b, c a · (b + c) = (a · b) + (a · c), a+(b · c) = (a + b) · (a + c) (e.g.) binary 3 – cube  distributive (0,0,1) · ((0,1,0) + (1,0,0)) = (0,0,1) · (1,1,0) = (0,0,0) ((0,0,1) · (0,1,0)) + ((0,0,1) · (1,0,0) = (0,0,0) + (0,0,0) = (0,0,0) bcd e a b · (c + d) = b · e = b ⇒ not distributive (b · c) + (b · d) = a + a = a A lattice is complemented iff for each element a, there exist an element a´ such that a · a´ = 0, a + a´ = 1 (e.g.) binary 3 – cube (0,0,1) · (1,1,0) = 0 (0,0,1) + (1,1,0) = 1 → (0,0,1)´=(1,1,0)

For any (x 1,x 2,x 3 ), the complemented element is (x 1 ´,x 2 ´,x 3 ´) For a, a · e = a, a + e = e → a = e, e´ = a. For element b, b · b´ = a b + b´ = e → b´ = c or d a bcd e Complemented lattice A distributed and complemented lattice is a Boolean algebra. Properties of Boolean algebra. For two well defined operations +, · ① idempotent : a + a = a, a · a = a ② commutative : a + b = b + a, a · b = b · a ③ associatative : a + (b + c) = (a + b) + c, a · (b · c) = (a · b) · c ④ absorptive : a + (a · b) = a, a · (a + b) = a ⑤ distributive : a · (b + c) = (a · b) + (a · c) ⑥ complemented : For any a, there is a unique element a´ such that a · a´ = 0, a + a´ = 1