CSE 321 Discrete Structures

Slides:



Advertisements
Similar presentations
Representing Relations
Advertisements

Partial Orderings Section 8.6.
CSE 211- Discrete Structures
Relations Relations on a Set. Properties of Relations.
Representing Relations Rosen 7.3. Using Matrices For finite sets we can use zero-one matrices. Elements of each set A and B must be listed in some particular.
CSE115/ENGR160 Discrete Mathematics 04/26/12 Ming-Hsuan Yang UC Merced 1.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Discrete Mathematics Lecture # 16 Inverse of Relations.
Applied Discrete Mathematics Week 11: Graphs
CS2210(22C:19) Discrete Structures Relations Spring 2015 Sukumar Ghosh.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
Relations. Binary Relations a relation between elements of two sets is a subset of their Cartesian product (of ordered pairs). Note the di ff erence between.
Relations binary relations xRy on sets x  X y  Y R  X  Y Example: “less than” relation from A={0,1,2} to B={1,2,3} use traditional notation 0 < 1,
Discrete Mathematics Lecture#11.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Applied Discrete Mathematics Week 10: Equivalence Relations
Exam 2 Review 8.2, 8.5, 8.6, Thm. 1 for 2 roots, Thm. 2 for 1 root Theorem 1: Let c 1, c 2 be elements of the real numbers. Suppose r 2 -c 1.
Exam 2 Review 7.5, 7.6, |A1  A2  A3| =∑|Ai| - ∑|Ai ∩ Aj| + |A1∩ A2 ∩ A3| |A1  A2  A3  A4| =∑|Ai| - ∑|Ai ∩ Aj| + ∑ |Ai∩ Aj ∩ Ak| - |A1∩
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a Fall 2002KSU - Discrete Structures1.
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.
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.
CSC-2259 Discrete Structures
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Relations.
Relations and their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Relations. Important Definitions We covered all of these definitions on the board on Monday, November 7 th. Definition 1 Definition 2 Definition 3 Definition.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
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.)
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
Chapter Relations and Their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
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.
Chap. 7 Relations: The Second Time Around
Section 7.3: Representing Relations In this section, we will cover two ways to represent a relation over a finite set other than simply listing the relation.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 41 May 7, 2008.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Representing Relations Using Digraphs
Relations and Their Properties
CSE 2813 Discrete Structures
Partial Orderings CSE 2813 Discrete Structures.
CSE15 Discrete Mathematics 05/03/17
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 
Learn about relations and their basic properties
Equivalence Relations
Atmiya Institute of Technology & Science
Relations Chapter 9.
Partial Orderings.
Representing Relations
Aaron Bloomfield CS 202 Epp, section ???
CSE115/ENGR160 Discrete Mathematics 04/28/11
Applied Discrete Mathematics Week 10: Equivalence Relations
CS2210 Discrete Structures Relations
Equivalence Relations
CSE 321 Discrete Structures
Relations: representation and closures
CSE 321 Discrete Structures
Background material.
Discrete Math (2) Haiming Chen Associate Professor, PhD
CSE 321 Discrete Structures
Background material.
Chapter 8 (Part 2): Relations
Agenda Lecture Content: Relations (Relasi)
Lecture # 16 Inverse of Relations
Presentation transcript:

CSE 321 Discrete Structures Winter 2008 Lecture 24 Relations

Announcements Readings Today Next week 8.3 Representing Relations 8.4 Closures (Key idea – transitive closure) 8.5 Equivalence Relations (Skim) 8.6 Partial Orders Next week Graph theory

Highlights from Lecture 23 Digraph representation of relations Matrix representation of relations

Matrix multiplication Standard (, +) matrix multiplication. A is a m  n matrix, B is a n  p matrix C = A  B is a m  p matrix defined:

And-OR Matrix multiplication A is a m  n boolean matrix, B is a n  p boolean matrix C = A  B is a m  p matrix defined:

Matrices and Composition MS R = MR  MS R = {(a, a), (a, c), (b, a), (b, b)} S = {(b, a), (b, c), (c, a), (c, c)}

Closures Reflexive Closure Symmetric Closure

Transitive Closure R = {(1, 2), (2, 3), (3, 4)}

Transitive closure

Equivalence Relations Definition: A relation on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive. Are these equivalence relations? Congruence Mod m on Z+. R = {(a,b) | a  b mod m} The ‘divides’ relation on Z+. R = {(a,b) | a|b}

Equivalence classes R = {(a,b) | a  b mod 3}, Domain: Z+

Partial Orderings Definition: A relation R on a set S is called a partial ordering if it is reflexive, antisymmetric, and transitive. A set S together with a partial ordering R is called a partially ordered set, or poset. Are these posets? (Z, ≥) (Z+, |)

Total Orderings Definition: If (S, R) is a poset and every two elements of S are comparable, S is called a totally (linearly) ordered set, and R is called a total (linear) order. Are these posets totally ordered? (Z, ≥) (Z+, |)