Basics of Relations.

Slides:



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

Chapter 2 Revision of Mathematical Notations and Techniques
Basic Properties of Relations
Relations.
Discrete Mathematics Lecture # 16 Inverse of Relations.
8.4 Closures of Relations. Intro Consider the following example (telephone line, bus route,…) abc d Is R, defined above on the set A={a, b, c, d}, transitive?
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 04/24/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 05/03/11 Ming-Hsuan Yang UC Merced 1.
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.
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.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
1 Relations Rosen 6 th ed., § Relations Re lationships between elements of sets occur in many contextsRe lationships between elements of sets occur.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
CHAPTER (6) RELATIONS. RELATIONS : - Let A and B be sets. A binary relation from A to B is subset of A* B …
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.
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?
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.
Section 4.4 Properties of Relations. Order Relations Draw an arrow diagram for the relation R defined on the set {1,2,3,4} such that
CS 103 Discrete Structures Lecture 19 Relations. Chapter 9.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
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 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.
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.
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), (
§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations.
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.
2.5 Algebra Reasoning. Addition Property: if a=b, then a+c = b+c Addition Property: if a=b, then a+c = b+c Subtraction Property: if a=b, then a-c = b-c.
Chapter8 Relations 8.1: Relations and their properties.
Equivalence Relations and Classes
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
Relations.
CSE 2813 Discrete Structures
Partial Orderings CSE 2813 Discrete Structures.
CSE15 Discrete Mathematics 05/03/17
Equivalence Relations
Relations Chapter 9.
Lecture # 14 Types of Relations
Dr. Ameria Eldosoky Discrete mathematics
Applied Discrete Mathematics Week 9: Equivalence Relations
8.5 Equivalence Relations
Relations and Their Properties
8.1 Relations and Their Properties
8.1 Relations and Their Properties
CSE15 Discrete Mathematics 04/26/17
Applied Discrete Mathematics Week 5: Boolean Algebra
8.5 Equivalence Relations and 8.6 Partial Ordering
Introduction to Sets.
Relations and their Properties
Introduction to Relations and Functions
MCS680: Foundations Of Computer Science
9.5 Equivalence Relations
Sets & Set Operations.
Equivalence relations
Equivalence Relations
Agenda Lecture Content: Relations (Relasi)
Lecture # 16 Inverse of Relations
Presentation transcript:

Basics of Relations

Introduction Human Language has many words and phrases to describe the relationship between or among objects. It may be that for two people A and B, that A is parent of B, A is an ancestor of B, A is taller than B. In algebra it may be that value of variable x is less than the value of variable y. In set theory, it may be that a set X is subset of set Y or x is disjoint from Y. All above notions are special instances of relation.

Definition Let A and B are two sets. Then, a subset of AXB is called a Relation or Binary relation from A to B. Thus, if R is a relation from A to B, then R is set of ordered pairs (a,b) where a∈A and b∈B. If (a,b) ∈ R, we say that “ a is related to b by R”. This is denoted as aRb.

Example Consider two sets A={0,1,2}, B={3,4,5}. Let R={(1,3),(2,4),(2,5)}. Evidently R is a subset of AXB. So R is a relation from A to B. 1R3, 2R4,2R5. This can be depicted in a diagram called Arrow diagram.

3 1 4 2 5 B A

Example2: Consider sets A={0,1,-1} and B={2,-2}. Let R1={(0,2),(1,2),(-1,2)} and R2={(0,-2),(1,-2),(-1,-2)} Clearly both R1 and R2 are subsets of AXB and therefore relations from A to B. We observe that R1 consists of elements(a,b) ∈ AXB for which the relationship a<b holds. Hence, here aR1b is read as “ a is less than b” The symbol R1 is stands for the phrase “is less than”. Similarly R2 consists of elements(a,b) ∈ AXB for which the relationship a>b holds. The symbol R1 is stands for the phrase “is greater than”.

Inverse of a Relation Let R be a relation from A to B. Then the inverse of the relation R from B to A is denoted as R-1 and defined as R-1={(b,a)|(a,b) ∈ R} Ex: if R={(2,4),(2,6),(3,6)} then R-1={(4,2),(6,2),(3,6)}

Properties of Relations Reflexive Relation Symmetric Relation Transitive Relation

A relation R on set A is said to be reflexive on A if (a,a) ∈ R i.e aRa ∀a ∈ A. Symmetric on A if (a,b) ∈ R then(b,a) ∈ R for a,b ∈ A Tranasitive on A if (a,b) ∈ R, (b,c) ∈ R the (a,c) ∈ R for a,b,c ∈ A

Compatibility Relation A Relation R on set A which is both reflexive and symmetric is called Compatibility relation on A.

Antisymmetric Relation A relation R on a set A is said to be antisymmetric if whenever (a,b) ∈ R and (b,a)∈ R then a=b.

Equivalence Relations A Relation R on set A is said to be an equivalence relation if R is reflexive R is symmetric R is Transitive on A. Every equivalence relation is a compatibility relation as well.