Relations and their Properties

Slides:



Advertisements
Similar presentations
Reflexive example: AB = AB Symmetric example: AB = BA
Advertisements

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
Discrete Mathematics Lecture # 16 Inverse of Relations.
Ch. 8: Relations 8.1 Relations and their Properties.
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
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.
Relation. Relations Recall the definition of the Cartesian (Cross) Product: The Cartesian Product of sets A and B, A x B, is the set A x B = { : x  A.
1 Relations and Their Properties Epp, section ??? CS 202 Aaron Bloomfield.
Relations (1) Rosen 6 th ed., ch. 8. Binary Relations Let A, B be any two sets. A binary relation R from A to B, written (with signature) R:A↔B, is a.
Module #18: Relations, part I
1 Relations Rosen 6 th ed., § Relations Re lationships between elements of sets occur in many contextsRe lationships between elements of sets occur.
Digraphs and Relations Warm Up. The Divisibility Relation Let “|” be the binary relation on N×N such that a|b (“a divides b”) iff there is an n ∈ N such.
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.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
1 Relations and Their Properties Rosen, section 7.1 CS/APMA 202 Aaron Bloomfield.
Properties and Mental Computation p. 80. Math talk What are some math properties that we use? Why do you think we have them? Do you ever use them?
Language: Set of Strings
A Quick Math Overview (not the last one!) Section 1.4, you should it read carefully! Reading the corresponding material from the book is strongly encouraged.
Mathematical Preliminaries
CS 103 Discrete Structures Lecture 19 Relations. Chapter 9.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Problem Statement How do we represent relationship between two related elements ?
Chapter 8 Equivalence Relations Let A and B be two sets. A relation R from A to B is a subset of AXB. That is, R is a set of ordered pairs, where the first.
Chapter Relations and Their Properties
RelationsCSCE 235, Spring Introduction A relation between elements of two sets is a subset of their Cartesian products (set of all ordered pairs.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
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.
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.
1 You Never Escape Your… Relations EQUIVALENCE RELATION Presented by K.Senguttuvan, PGT Kendriya Vidyalaya, Gachibowli, Hyderabad. 2.
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.
Relations and Their Properties
Citra Noviyasari, S.Si, MT
Relations and Their Properties
Applied Discrete Mathematics Week 10: Relations
RELATION KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS )
Dr. Ameria Eldosoky Discrete mathematics
Cartesian product Given two sets A, B we define their Cartesian product is the set of all the pairs whose first element is in A and second in B. Note that.
Aaron Bloomfield CS 202 Epp, section ???
Relations and Their Properties
Chapter 3 Relation and Function Homework 4 For each of the following relations on set A = { 1,2,3,4 }, check each of them whether they are reflexive, irreflexive,
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
CS2210 Discrete Structures Relations
Relations and Their Properties
8.1 Relations and Their Properties
8.1 Relations and Their Properties
CSE15 Discrete Mathematics 04/26/17
Relations: representation and closures
Discrete Math (2) Haiming Chen Associate Professor, PhD
Applied Discrete Mathematics Week 5: Boolean Algebra
Sets. EXAMPLE 1 The set O of odd positive integers less than 10 can be expressed by O = { l, 3, 5, 7, 9}. * This way of describing a set is known as.
Introduction to Relations and Functions
Formal Definition and Examples
Lecture 4.1: Relations Basics
Properties of Equality
Mathematical Background
Discrete Math (2) Haiming Chen Associate Professor, PhD
9.5 Equivalence Relations
Equivalence Relations
Equivalence Relations
Basics of Relations.
Clements MAΘ October 30th, 2014
Agenda Lecture Content: Relations (Relasi)
Lecture # 16 Inverse of Relations
Ø Let the universe set U={1,2,3,...,10}.
Presentation transcript:

Relations and their Properties Refresh

Binary Relations A binary relation from A to B is a subset of A x B The Cartesian product of two sets, say A and B We might represent this as a set of ordered pairs in a pair, first is from A, second is from B The relation is a set of pairs where first element is from A and second is from B We say “a is related to b by R” where R is a relation

n-ary Relations A step further We have said “a relation R”, meaning “a binary relation R” We can have a relation between n sets “an n-ary relation R” n = 2, binary pairs n = 3, ternary triples n = 4, quarternary (?) 4-tuples n = …, n-ary n-tuples n = 1, unary (!) singletons A set of ordered n-tuples

Functions as Relations We can represent a function extensionally/explicitly by listing for each value in the domain (pre-image) its value in the co-domain (its image). That is we can represent the function as a set of pairs, i.e. as a binary relation

Functions as Relations Example F: A  B where f(x) = x2 A = {-2,-1,0,1,2,3} and B = {0,1,2,3,4,5,6,7,8,9} R = {(-2,4),(-1,1),(0,0),(1,1),(2,4),(3,9)} 1 2 3 4 5 6 7 8 9 -2 -1 1 2 3

Properties of Relations Definitions Reflexive if a is in A then (a,a) is in R Symmetric if (a,b) is in R and a  b then (b,a) is in R Antisymmetric if (a,b) is in R and a  b then (b,a) is not in R Transitive if (a,b) is in R and (b,c) is in R then (a,c) is in R

Properties of Relations Reflexive (a,a) Reflexive if a is in A then (a,a) is in R Example: a divides b i.e. a|b R = {(a,b)| a  A, b  B, a|b}

Properties of Relations Symmetric if (a,b) is in R and a  b then (b,a) is in R Example: a is married to b

Properties of Relations Antisymmetric if (a,b) is in R and a  b then (b,a) is not in R Example: a divides b i.e. a|b R = {(a,b)| a in A, b in B, a|b}

Properties of Relations Transitive b c Transitive if (a,b) is in R and (b,c) is in R then (a,c) is in R Example: a is less than b i.e. a < b a and b are positive integers R = {(a,b)| a < b}

Composite Relations Definition Let R be a relation from set A to set B Let S be a relation from set B to set C The composite of R and S is a relation from set A to set C and is a set of ordered pairs (a,c) such that there exists an (a,b) in R and an (b,c) in S The composite of R and S is denoted as SoR The composite of R with S

Composite Relations Example

Composite of a Relation with itself Let R be a relation on the set A. The powers Rn are defined inductively as follows