Chap. 7 Relations: The Second Time Around

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

Relations Relations on a Set. Properties of Relations.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Basic Properties of Relations
Chapter 7 Relations : the second time around
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.
1 Representing Relations Part 2: directed graphs.
Regular Expression (EXTRA)
1 Relations: The Second Time Around Chapter 7 Equivalence Classes.
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,
Partial Orderings: Selected Exercises
Reflexive -- First sentence of proof is: (1) Let x  Z (2) Let (x,x)  R. (3) Let (x,x)  I (4) Let x  R.
Partially Ordered Sets Basic Concepts
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Partially Ordered Sets (POSets)
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
1 Partial Orderings Aaron Bloomfield CS 202 Rosen, section 7.6.
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.
2.6 Equivalence Relation §1.Equivalence relation §Definition 2.18: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric,
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.
Discrete Mathematics Relation.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Relations and their Properties
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Equivalence Relations. Partial Ordering Relations 1.
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.
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.
1 Lecture 2 (part 1) Partial Orders Reading: Epp Chp 10.5.
ORDERED SETS. RELATIONS COSC-1321 Discrete Structures 1.
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
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), (
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
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.
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.
1 Partial Orderings Epp, section Introduction An equivalence relation is a relation that is reflexive, symmetric, and transitive A partial ordering.
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.
Partial Orderings: Selected Exercises
CSE 2813 Discrete Structures
Unit-III Algebraic Structures
Partial Orders.
Partial Orderings CSE 2813 Discrete Structures.
Introduction to Relations
Equivalence Relations
Atmiya Institute of Technology & Science
Relations Chapter 9.
Partial Orderings.
Relations and Digraphs
Representing Relations
Aaron Bloomfield CS 202 Epp, section ???
Discrete Math (2) Haiming Chen Associate Professor, PhD
Formal Definition and Examples
Relations.
교환 학생 프로그램 내년 1월 중순부터 6월 초 현재 학부 2,3 학년?
Relations: The Second Time Around
Chapter 8 (Part 2): Relations
Presentation transcript:

Chap. 7 Relations: The Second Time Around

Binary Relation For sets A, B, any subset of A╳B is called a (binary) relation from A to B. Any subset of A╳A is called a (binary) relation on A.

Reflexive Relation e.g. Given a finite set A with |A|=n. Then, The number of relations on A is . 2. The number of reflexive relations on A is .

Symmetric Relation e.g. Given a finite set A with |A|=n. Then, 1. The number of symmetic relations on A is . 2. The number of reflexive and symmetic relations on A is .

Transitive Relation Let A={1, 2, 3, 4}. Which of the following relation is transitive? a) R1={(1,1), (2,3), (3,4), (2,4)}. b) R2={(1,3), (3,2)}. O X because (1,3), (3,2)∈R2 but (1,3)∉R2 .

Antisymmetric Relation Let A={1, 2, 3}. Which of the following relation is antisymmetric? a) R1={={(1,1), (2,2)}. b) R2={(1,2), (2,1), (2,3)}. O X because (1,2), (2,1)∈R2 but 1≠2.

Partial Ordering Relation Which of the following relation is a partial order? a) The relation R on the set Z is defined by aRb, or (a, b)∈R, if a≤b. b) Let n∈Z+, For x,y ∈Z, the modulo relation R is defined by xRy if x-y is a multiple of n. c) The relation R on the set A={1,2,3,4} is defined by aRb if a|b. O Total Order X because it is not antisymmetric. O

Example 7.15 Let A={1, 2, 4, 8, 16}, the set of positive integer divisors of 16. Define the relation R on the set A by xRy if x divides y. Then, the order pairs from A╳A that comprise R: R= {(1,1), (1,2), (1,4), (1,8), (1,16), (2,2), (2,4), (2,8), (2,16), (4,4), (4,8), (4,16), (8,8), (8,16), (16,16)}.

Example 7.15 (2) 1. (c,d)∈R ⇔ and , Where m, p∊N with 0≤m≤p≤4. 2. Each possibility for m, p is simply a selection of size 2 from a set of size 5, the set {0,1,2,3,4}, where the repetitions are allowed. 3. Thus, the number of ways to choose m, p is 5. Therefore, the number of order pairs in R is 15.

Example 7.15 (3) Let A={1, 2, 3, 4, 6, 12}, the set of positive integer divisors of 12. Define the relation R on the set A by xRy if x divides y. Then, the order pairs from A╳A that comprise R:

Example 7.15 (4) 1. (c,d)∈R ⇔ where 3. Thus, the number of ways to choose m, p is 4. Similarly, the number of ways to choose n, q is 5. Therefore, the number of order pairs in R is

Equivalence Relation Let A={1, 2, 3}. Which of the following is a equivalence relation? O O O O O

Equivalence Relation 2. Equivalence Class

Directed Graph V: vertex set E: edge set V: set of vertices E: subset of V ╳ V

Relation and Directed Graph

Poset Let

Hasse Diagram

Hasse Diagram (2) e.g.

Total Order Which of the following relation is a total order? O X O . . .

Maximal and Minimal Elements

Theorem 7.3 1. 2. 3. 4.

Least and Greatest Elements Which of the following partial orders has a least element and a greatest element ? O O X X

Theorem 7.4 1. 2. It suffices to show 3. 4. 5. 6. x=y

Partition Let . Which of the following determines a partition of A ? O O O

Equivalence Class

Theorem 7.6 1. It suffices to show . 2. This is clearly true because . b) (⇒) 1. It suffices to show 2. To show , we need to show for all , . 3. Clearly, . 4. Thus, .

Theorem 7.6 (2) 5. To show , we need to show for all . 6. 7. b) (⇐) 1. 2.

Theorem 7.6 (3) c) 1. 2. 3. 4. 5. 6. 7.

Theorem 7.7 1. 2. 3. (x,x)∊R ⇒ 4. (x,y)∊R ⇒ 5. (x,y)∊R and (y,z)∊R ⇒ R is reflexive. x and y are in the cell of the partition ⇒ (y,x)∊R ⇒ R is symmetric. x, y, and z are in the cell of the partition ⇒ (x,z)∊R ⇒ R is transitive.

Example 7.59 1. 2. 3. 4.

Example 7.59 (2) 1. 2.