4.4 Properties of Relations

Slides:



Advertisements
Similar presentations
Representing Relations
Advertisements

Reflexive example: AB = AB Symmetric example: AB = BA
Chapter 2 Revision of Mathematical Notations and Techniques
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.
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),
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?
1 Representing Relations Part 2: directed graphs.
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.
1 Representing Relations 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.
Properties of Relations In many applications to computer science and applied mathematics, we deal with relations on a set A rather than relations from.
Module #21 - Relations Representing Relations Rosen 6 th ed., Ch. 8.
Chapter 4 Relations and Digraphs
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.
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.
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.
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?
Representing Relations
§ 每周五交作业,作业成绩占总成绩的 10% ; § 平时不定期的进行小测验,占总成绩的 20% ; § 期中考试成绩占总成绩的 20% ;期终考 试成绩占总成绩的 50% § 每周五下午 1 ; 00—3 : 00 ,答疑 § 地点:软件楼 301.
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
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.)
CSNB143 – Discrete Structure Topic 7 – Relations Part II.
1.2 Field Axioms (Properties) Notes on a Handout.
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.
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,
Relations Section 9.1, 9.3—9.5 of Rosen Spring 2012
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.
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), (
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.
Module Code MA1032N: Logic Lecture for Week Autumn.
Chapter8 Relations 8.1: Relations and their properties.
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.
Equivalence Relations and Classes
Discrete Mathematical
Relations and Their Properties
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 
Equivalence Relations
6.1 Partially Ordered Sets
Relations Chapter 9.
Relations and Digraphs
Representing Relations
Dr. Ameria Eldosoky Discrete mathematics
Dr. Ameria Eldosoky Discrete mathematics
CSE115/ENGR160 Discrete Mathematics 04/28/11
CSNB 143 Discrete Mathematical Structures
Chapter 2 Sets Homework 3 Given U = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } as a set universe and the sets : A = { 1, 2, 3, 4, 5 }, B = { 4, 5, 6, 7 }, C = { 5,
§7.3 Representing Relations Longin Jan Latecki
4.3 Paths in Relations and Digraphs
Relations and Their Properties
8.1 Relations and Their Properties
Relations (sections 7.1 – 7.5)
Relations: representation and closures
Relations and Digraphs
4.5 Equivalence Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Combining relations via relational composition
§7.3 Representing Relations Longin Jan Latecki
7.1 Trees.
Agenda Lecture Content: Relations (Relasi)
Relations 12/7/2019.
Presentation transcript:

4.4 Properties of Relations

Relations Reflexive Irreflexive Symmetric Asymmetric Antisymmetric Transitive

Reflexive Reflexive relation has a cycle of 1 at every vertex A = {1,2,3} B=A R = {(1,1)(1,2),(2,2),(2,3),(3,3),(3,1)} Reflexive matrix has all 1’s on the main diagonal 1 3 2 a\b 1 2 3

Irreflexive Irreflexive relation has no cycles of length 1 at any vertex. A = {1,2,3} B=A R = {(1,2),(1,3),(2,3)} Irreflexive has all 0’s on its main diagonal 1 2 3 a\b 1 2 3

Symmetric If there is an edge from vertex i to vertex j, then there is an edge from vertex j to vertex i. A = {a,b,c} B = A R = {(a,a),(a,c),(b,c),(c,a),(c,b),(c,c)} a c b a\b a b c 1

R = {(a,b),(b,a),(a,c),(c,a),(b,c),(c,b)} This is a little messy R = {(a,b),(b,a),(a,c),(c,a),(b,c),(c,b)} Another way to draw this is: This is a connected digraph This digraph is not connected. R={(a,b),(b,a),(c,d),(d,c)} a b c a c b a c b d

Asymmetric aRb bRa A = {1,2,3,4} B = A R ={(1,2),(3,4),(2,3)} There is no (1,1) or (2,2) or (3,3) or (4,4) There is no (2,1), (4,3), or (3,2) IF mij = 1 then mji = 0 (i = row and j = column) There are no back arrows. All edges are 1 way streets 1 a\b 1 2 3 4 2 4 3

Antisymmetric Contains no back arrows. Can contain one node cycles 1 a\b 1 2 3 4 2 3 4

Transitive (tricky) Every time you have (a,b) and (b,c) you must also have (a,c). A = {1,2,3,4} This relation is not transitive: a,b b,c R = {(1,1),(2,2),(3,3),(4,4),(2,3),(3,4)} In order to make this relation transitive, you would a,c need (2,4). If you have R = {(1,1),(2,2),(3,3),(4,4),(2,3)} is it transitive? Yes, because it doesn’t break the rule. You have (a,b), you don’t have (b,c), therefore you do not need (a,c). Only when you have (a,b) AND (b,c), you must have (a,c).

A cycle is a path where you start and end with the same vertex. iff is shorthand for if and only if.