Citra Noviyasari, S.Si, MT

Slides:



Advertisements
Similar presentations
Chapter 2 Revision of Mathematical Notations and Techniques
Advertisements

Equivalence Relations
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Relations.
Representing Relations Using Matrices
5/16/20151 You Never Escape Your… Relations. 5/16/20152Relations If we want to describe a relationship between elements of two sets A and B, we can use.
Applied Discrete Mathematics Week 11: Graphs
Ch. 8: Relations 8.1 Relations and their Properties.
Relations & Their Properties. Copyright © Peter Cappello2 Introduction Let A & B be sets. A binary relation from A to B is a subset of A x B. Let R be.
CSE115/ENGR160 Discrete Mathematics 05/03/11 Ming-Hsuan Yang UC Merced 1.
Sets, Relation and Functions A set is a collection of objects (elements) or a container of objects. Defining sets –Empty set (Ø): no elements –Universal.
Discrete Mathematics Lecture#11.
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.
Relations Chapter 9.
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
Properties of Relations In many applications to computer science and applied mathematics, we deal with relations on a set A rather than relations from.
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.
Lecture 14 Relations CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 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.
Discrete Structures1 You Never Escape Your… Relations.
Relations and their Properties
Fall 2002CMSC Discrete Structures1 You Never Escape Your… Relations.
Lecture on Relations 1Developed by CSE Dept., CIST Bhopal.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
RelationsCSCE 235, Spring Introduction A relation between elements of two sets is a subset of their Cartesian products (set of all ordered pairs.
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.
1 Equivalence relations Binary relations: –Let S1 and S2 be two sets, and R be a (binary relation) from S1 to S2 –Not every x in S1 and y in S2 have such.
MAT 2720 Discrete Mathematics Section 3.3 Relations
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.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Chapter8 Relations 8.1: Relations and their properties.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Representing Relations Using Digraphs
Discrete Mathematical
Relations and Their Properties
Chapter 5 Relations and Operations
Relations.
CSE15 Discrete Mathematics 05/03/17
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.
Lecture # 14 Types of Relations
Applied Discrete Mathematics Week 10: Relations
RELATION KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS )
Dr. Ameria Eldosoky Discrete mathematics
Lecture 4.3: Closures and Equivalence Relations
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 9 Relations Slides are adopted from.
Applied Discrete Mathematics Week 9: Equivalence Relations
CMSC Discrete Structures
8.5 Equivalence Relations
Relations and Their Properties
8.1 Relations and Their Properties
Applied Discrete Mathematics Week 5: Boolean Algebra
Applied Discrete Mathematics Week 6: Relations/Digraphs
Relations and their Properties
MCS680: Foundations Of Computer Science
Discrete Math (2) Haiming Chen Associate Professor, PhD
9.5 Equivalence Relations
Equivalence relations
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Basics of Relations.
Chapter 8 (Part 2): Relations
Presentation transcript:

Citra Noviyasari, S.Si, MT Relations Citra Noviyasari, S.Si, MT Discrete - Citra N., S.Si, MT

Product Sets An ordered pair (a,b) is a listing of the object a and b in a prescribed order. Product set or Cartesian product A X B is the set of all ordered pairs (a,b) with aA and b B A X B = {(a, b)|aA and bB} Example : Let A = {1, 2, 3} and B = {r, s} A X B = {(1, r), (1, s), (2 ,r), (2, s), (3,r), (3, s)} A \ B r s 1 (1, r) (1, s) 2 (2, r) (2, s) 3 (3, r) (3, s) Discrete - Citra N., S.Si, MT

Definition Let A and B be sets A binary relations (R) from A to B is a subset of A X B In other words, a binary relation from A to B is a set R of ordered pairs where the first element of each ardered pair comes from A and the second element comes from B. We use notation a R b to denote that (a, b)  R and a b to denote that (a,b)  R. Moreover, when (a, b) belongs to R, a is said to be related to b by R Discrete - Citra N., S.Si, MT

Functions as Relations Recall that a function f from a set A to a set B assigns a unique element of B to each element of A. Graph of f is the set of ordered pairs (a,b) such that b = f(a). Example : Let A = {0,1,2} and B={a,b} Then R is a relation from A to B. R={(0,a), (0,b), (1,a), (2,b)} A \ B a b v 1 2 Discrete - Citra N., S.Si, MT

Relations on a Set In many of the applications to computer sciences and applied mathematics, we deal with relations on a set A rather than relations from A to B A relation on the set A is a relation from A to A. In other words, a relation on a set A is a subset A X A Discrete - Citra N., S.Si, MT

Properties of Relations There are several properties that are used to classify relations on a set. In some relations an element is always related to itself. Discrete - Citra N., S.Si, MT

Reflexive A relation R on a set A is reflexive if (a, a) R or aRa for every a  A A relation R on a set A is irreflexive if a a for every aA Example : Let A = {1, 2, 3} R1 = {(1, 1), (1, 2), (2, 2), (3,1)} R2 = {(1, 1), (1, 3), (2, 1), (2, 2), (3, 2), (3, 3)} Discrete - Citra N., S.Si, MT

Symmetric, Antisymmetric A relation R on a set A is symmetric if (a,b) R whenever (b,a)  R, for a,b  A. Or whenever aRb, then bRa. A relation R on a set A is not symmetric or asymmetric if whenever a R b then b a A relation R on a set A is antisymmetric if(a,b)R and (b,a)R whenever a=b for a,bA whenever a R b then b R a then a = b, or if whenever a b, we have a ≠ b or b ≠ a. A relation R on a set A is not antisymmetric if we have a and b in A, a ≠ b and both a R b and bRa Discrete - Citra N., S.Si, MT

Example : Let A = {1, 2, 3} R1 = {(1, 2), (2, 2), (3, 1), (3, 2)} Then R1 is not symmetric since (1, 2)  R1 but (2, 1) R1. R1 is antisymmetric since if a ≠ b either (a, b)  R1 or (b, a) R1 Then R2 is symmetric since (1, 2)  R2 but (2, 1)  R2. R1 is not antisymmetric since if a ≠ b either (a, b)  R2 or (b, a)  R2 Discrete - Citra N., S.Si, MT

Transitive A relation R on a set A is transitive if whenever (a,b)R and (b,c)R then (a,c)R for a,b,c  A. Or whenever aRb and bRc then aRc A relation R on a set A is transitive if whenever aRb and bRc then a c Discrete - Citra N., S.Si, MT

Equivalence Relations A relation R on a set A is called an equivalence relation if it is reflexive, symmetric and transitive Discrete - Citra N., S.Si, MT

Equivalence classes Let R be an equivalence relatin on a set A. The set of all elements that are related to an element a of A is called the equivalence class of a. The equivalence class of a with respect to R is denoted by [a]/R Example : Let A = {(1, 2, 3, 4}, P = {{1, 2, 3}, {4}} of A. R = {(1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3), (4,4)}. Prove that R is equivalence class? Discrete - Citra N., S.Si, MT

Equivalence classes and Partition Let R be an equivalence relation on a set A. The following statements are equivalent : (i) aRb (ii) [a] = [b] (iii) [a]  [b] = Ø If R is an equivalence relation on A and it has partition, then the sets R called equivalence classes of R, denoted by [a]/R Discrete - Citra N., S.Si, MT

Partitions A partition of a set A is a collection of disjoint nonempty subsets of A that have A as their union. A1  A2  ..  An = Ø A1  A2  ..  An = A Let P be a partition of a set A. Recall that the sets in P are called the “blocks” of P. Define the relation R on A as follows : aRb if and only if a and b are members of the same block. Discrete - Citra N., S.Si, MT

Equivalence classes and Partition Example : Let A = {1, 2, 3, 4} R1 = {(1,1), (1,4), (2,2), (2,3), (3,2), (3,3), (4,1), (4,4)}. Find [a]/R Discrete - Citra N., S.Si, MT