Outline Inverse of a Relation Properties of Relations. Relations. Alice E. Fischer. April, 2018

Similar documents
Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B.

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Relations Graphical View

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.

Reading 11 : Relations and Functions

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

Chapter 9: Relations Relations

COMP 182 Algorithmic Thinking. Relations. Luay Nakhleh Computer Science Rice University

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

1.4 Equivalence Relations and Partitions

Sets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary

Outline Goals and Assumptions Real Numbers Rational and Irrational. L11: Numbers. Alice E. Fischer

CMPSCI 250: Introduction to Computation. Lecture #11: Equivalence Relations David Mix Barrington 27 September 2013

CSC Discrete Math I, Spring Relations

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

MITOCW Lec 11 MIT 6.042J Mathematics for Computer Science, Fall 2010

Today. Binary relations establish a relationship between elements of two sets

Rela%ons and Their Proper%es. Slides by A. Bloomfield

Math.3336: Discrete Mathematics. Chapter 9 Relations

Problem 2: (Section 2.1 Exercise 10) (a.) How many elements are in the power set of the power set of the empty set?

Practice Final Solutions. 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) { 2 j = 0 3 if (n = 0) { 4 return j

Binary Relation Review Questions

Relations. Relations. Definition. Let A and B be sets.

Automata and Languages

Discrete Mathematics. 2. Relations

Relations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related.

Week 4-5: Binary Relations

Questions From Old Exams

What are relations? f: A B

MAT335H1F Lec0101 Burbulla

Chapter 1 Review of Equations and Inequalities

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Week 4-5: Binary Relations

Supplement. Algebraic Closure of a Field

On alternating products of graph relations

CSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Properties of the Integers

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

Sets and Motivation for Boolean algebra

Introductory Analysis I Fall 2014 Homework #5 Solutions

LOGIC AND SET THEORY - HOMEWORK Question 1. n + 1 Unknown - either n or n 1, depending on whether { } A

Planar Graphs (1) Planar Graphs (3) Planar Graphs (2) Planar Graphs (4)

LECTURE 15: RELATIONS. Software Engineering Mike Wooldridge

Functions and Relations II. CS2100 Ross Whitaker University of Utah

8.2 Graphs of Polar Equations

Lesson 5: The Graph of the Equation y = f(x)

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

Relations, Functions, and Sequences

Chapter 3.5: Rational Functions

CS 455/555: Mathematical preliminaries

Relations. Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B.

Each element of the domain is paired with exactly one element of the range. So, the relation is a function.

1-1. Expressions and Formulas. Lesson 1-1. What You ll Learn. Active Vocabulary

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

CLEP Precalculus - Problem Drill 15: Systems of Equations and Inequalities

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Relations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples.

Relations, Functions, Binary Relations (Chapter 1, Sections 1.2, 1.3)

Notes for Science and Engineering Foundation Discrete Mathematics

FINITE IRREFLEXIVE HOMOMORPHISM-HOMOGENEOUS BINARY RELATIONAL SYSTEMS 1

Answers for Calculus Review (Extrema and Concavity)

PreCalculus: Semester 1 Final Exam Review

RELATIONS AND FUNCTIONS

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Chapter 6. Relations. 6.1 Relations

The main limitation of the concept of a. function

bc7f2306 Page 1 Name:

1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A.

3.4 Using the First Derivative to Test Critical Numbers (4.3)

or 0101 Machine

1 Partitions and Equivalence Relations

On the sum of tangle diagrams with certain symmetry

The Hurewicz Theorem

5. Partitions and Relations Ch.22 of PJE.

CLASS XII CBSE MATHEMATICS RELATIONS AND FUNCTIONS 1 Mark/2 Marks Questions

Part I Directions: MULTIPLE CHOICE Place your answer to each question on the space provided. 1. Which is equivalent to the equation y? 4.

Objectives: Review open, closed, and mixed intervals, and begin discussion of graphing points in the xyplane. Interval notation

Math 1051, Robertson, Exam 3 on Chapters 3 & 4 on Friday 12 November 2010 KEY page 1

Math 2534 Solution to Test 3A Spring 2010

3-1 Graphing and Writing Inequalities. Warm Up Lesson Presentation Lesson Quiz

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

ASSIGNMENT 1 SOLUTIONS

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

Reductions. Example 1

Relations. Binary Relation. Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation. Let R A B be a relation from A to B.

General Technical Remarks on PDE s and Boundary Conditions Kurt Bryan MA 436

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Theorems. Theorem 1.11: Greatest-Lower-Bound Property. Theorem 1.20: The Archimedean property of. Theorem 1.21: -th Root of Real Numbers

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Multiple Choice Questions for Review

MEP Pupil Text 13-19, Additional Material. Gradients of Perpendicular Lines

arb where a A, b B and we say a is related to b. Howdowewritea is not related to b? 2Rw 1Ro A B = {(a, b) a A, b B}

Patterns and minimal dynamics for graph maps

Math6100 Day 8 Notes 6.1, 6.2 & 6.3, Area

Sum and Product Rules

Introduction to Turing Machines. Reading: Chapters 8 & 9

Packet #5: Binary Relations. Applied Discrete Mathematics

Transcription:

Relations Alice E. Fischer April, 2018

1 Inverse of a Relation 2 Properties of Relations

The Inverse of a Relation Let R be a relation from A to B. Define the inverse relation, R 1 from B to A as follows. R 1 = {(y, x) B A (x, y) R} All of the arrows in the mapping diagram of the inverse relation are reversed from those in the original relation.

Example: Inverse of a Finite Relation For example, let A = {2, 3, 4}, B = {2, 6, 8} and let D be the divides relation. Then D = {(2, 2), (2, 6), (2, 8), (3, 6), (4, 8)} D 1 = {(2, 2), (6, 2), (8, 2), (6, 3), (8, 4)} D D -1 2 2 2 2 3 6 3 6 4 8 4 8

Example: Inverse of an Infinite Relation Define a relation S from R to R for all (y, z) R R as: S is the set of all pairs, (y, z) such that z = 2 y S = {(y, z) z = 2 y } The inverse would then be: S 1 = {(z, y) z = 2 y } The diagram on the next page shows graphs of S and S 1.

Graph: Inverse of an Infinite Relation S = {(y, z) z = 2 y } S S 1 = {(z, y) z = 2 y } S -1 x x y y Is S a function? Is S 1 a function?

From Arrow Diagram to Directed Graph In many cases we choose the domain and co-domain of a relation to be the same set. This means that we map elements of a set onto itself in some way. When drawing the mapping, rather than having our arrows go between two distinct sets, these sets now overlap, and all the arrows for the arcs of a directed graph that relates elements of the same set. The three basic properties that a relation on a set can exhibit are that it be reflexive, symmetric and transitive. Looking at such a directed graph, it is easy to see whether certain properties of a relation exist.

A Pretty Directed Graph Consider the set A = {3, 4, 5, 6, 7, 8}. Define relation R = the set of pairs (x, y) where 2 (x y). That is, a pair is in the relation if the difference of the two values is even. The directed graph representing this relationship looks like:

Relation Properties - Reflexive A relation has the property of being reflexive if every element of the set is related to itself. That is, for all x A, (x, x) R. The relation on the previous page is reflexive. This can be easily seen by the fact that every element in the set has an arc directed back at itself. The relation S defined by (x, y) S when x y = 2 is not reflexive, because the difference between an element and itself is always 0.

Relation Properties - Symmetric A relation has the property of being symmetric if when any element of the set is related to another, then the second element is also related to the first. That is, for all x and y A, if (x, y) R then (y, x) R. A symmetric relationship in our graphs looks like a flower petal or a self-loop. The relation from the previous graph is symmetric. This can be easily seen by the fact that for every arc that is going from one element to another, there is a second arc coming back from the second element to the first. The relation S defined by (x, y) S when x y = 2 is not symmetric, because the difference between one element and another is the negative of the difference of the second element and the first. However, if S used x y, it would be symmetric.

Relation Properties - Transitive A relation has the property of being transitive if when any one element of the set is related to another, and that second element is related to a third, then the first element is also related to the third. That is, for all x, y and z A, if (x, y) R and (y, z) R then (x, z) R. The relation from the previous graph is transitive. This can be easily seen by the fact that for every arc that is going from one element to another, followed by a second arc from that element to a third element, there is a third arc going directly between the first and third elements. The relation S defined by (x, y) S when x y = 2 is also not transitive, because the difference between the first element and the third element will always be 4 rather than 2.

Relation Properties - Some Practice Consider the set A = {2, 3, 4, 6, 7, 9}. Define relation R as the set of (x, y) such that 3 (x y). That is, a pair is in the relation if the difference of the two values is divisible by 3. Draw the directed graph representing this relationship and determine if it is reflexive, symmetric or transitive.

Relation Properties - Some Practice Consider the set A = {2, 3, 4, 6, 7, 9}. Define relation R as the set of (x, y) such that 3 (x y). That is, a pair is in the relation if the difference of the two values is divisible by 3. Draw the directed graph representing this relationship and determine if it is reflexive, symmetric or transitive. The directed graph is given by:

Relation Properties - Some Practice Is the relation reflexive?

Relation Properties - Some Practice Is the relation reflexive? Yes. Every element has an arc from itself to itself. Is the relation symmetric?

Relation Properties - Some Practice Is the relation reflexive? Yes. Every element has an arc from itself to itself. Is the relation symmetric? Yes. Every time there is an arc from one element to another, another arc comes back. There does not need to be as many arcs between elements as in the previous example. Is the relation transitive?

Relation Properties - Some Practice Is the relation reflexive? Yes. Every element has an arc from itself to itself. Is the relation symmetric? Yes. Every time there is an arc from one element to another, another arc comes back. There does not need to be as many arcs between elements as in the previous example. Is the relation transitive? Yes. Every pair of linked arcs also has another arc between the two endpoints forming a triangle as between the elements 3, 6 and 9 or a petal, as between 4 and 7?

Relation Properties - More Practice Consider the set A = {0, 1, 2, 3}. Define a binary relation R = {(0, 0), (0, 1), (0, 3), (1, 0), (1, 1), (2, 2), (3, 0), (3, 3)} Draw the directed graph representing this relationship and determine if it is reflexive, symmetric or transitive.

Relation Properties - More Practice Consider the set A = {0, 1, 2, 3}. Define a binary relation R = {(0, 0), (0, 1), (0, 3), (1, 0), (1, 1), (2, 2), (3, 0), (3, 3)} Draw the directed graph representing this relationship and determine if it is reflexive, symmetric or transitive. The directed graph is given by:

Relation Properties - More Practice Is the relation reflexive?

Relation Properties - More Practice Is the relation reflexive? Yes. Every element has an arc from itself to itself. Is the relation symmetric?

Relation Properties - More Practice Is the relation reflexive? Yes. Every element has an arc from itself to itself. Is the relation symmetric? Yes. Every time there is an arc from one element to another, another arc comes back. Is the relation transitive?

Relation Properties - More Practice Is the relation reflexive? Yes. Every element has an arc from itself to itself. Is the relation symmetric? Yes. Every time there is an arc from one element to another, another arc comes back. Is the relation transitive? No. Some elements are involved in transitive groupings: 0 and 3, and 0 and 1. However, in order for this relation to be transitive, all such groupings must be transitive. There are pairs of arcs from 3 to 0 and 0 to 1, but not from 3 to 1, and also going back in the other direction.

Relation Properties - Closure It is often desirable for a relation to have the properties of reflexivity, symmetry and transitivity. If a relation does not have one of these properties, what would it take to give it that property? For a relation on a finite set, we can answer this question directly: add enough pairs to the relation so that every arc is part of a petal or a self-loop. For an infinite relation it is not always so clear what to do. This is the concept of closure. We would like to construct a new relation from the old relation by adding the minimal number of ordered pairs to the relation (or arcs to the directed graph) that produce the desired property.

Relation Properties - Closure Reflexive Closure - to make a relation reflexive, you simply need to add all of the pairs (x, x) that are not already in the relation, so that every element has an arc from itself to itself. This is equivalent to taking the union of the original set with the identity set, R closure = R I. Symmetric Closure - to make a relation symmetric, you simply need to add all of the pairs (y, x) for every pair (x, y) that is already in the set, so that a return arc now exists between two elements that had an arc between them already. This is equivalent to taking the union of the original set with its inverse, R closure = R R 1. Transitive Closure - to make a relation transitive is a little harder. If it already contains the connected pairs (x, y) and (y, z), we must add (x, z) if it does not already exist. However, we need an iterative process, since adding the pair (x, z) to the set may form another connected pairing that needs yet another pairing added.

Closure - An Example Consider a set A = {0, 1, 2, 3} on which a relation R is defined as given by the directed graph below. 0 1 R1 3 2 Determine the arcs (pairs) that you must add to this relation to make it reflexive, symmetric, or transitive.

Closure - An Example Reflexive Closure - add arcs for (1, 1) and (3, 3) 0 1 0 1 3 2 3 2 Symmetric Closure - add arcs for (1, 0), (2, 1) and (3, 2) 0 1 0 1 3 2 3 2

Closure - An Example Transitive Closure - first add arcs for (0, 2) and (1, 3) 0 1 0 1 3 2 3 2 Then on second iteration add arc for (0, 3).

Relation Properties - AntiSymmetric A relation is antisymmetric if when any element of the set is related to a different element, then the second element is not related to the first. An element can still relate to itself. x, y A, if (x, y) R then (y, x) R. The graph below defines an antisymmetric relation. 0 1 R1 3 2 Antisymmetric and also not symmetric.

Antisymmetric Not symmetric antisymmetric is not the same as not symmetric. Although R1 on the previous slide is antisymmetric and also not symmetric, R3, below is neither symmetric nor antisymmetric: 0 1 R3 3 2 This situation happens when SOME but not ALL elements have symmetric relationships.

Properties of Equality Many relations can be defined over an infinite set. One such is equality, which is defined as, (x, y) R if x = y. Equality is reflexive. Obviously, x = x. Equality is symmetric. If x = y, then obviously y = x. Equality is transitive. If x = y and y = z, then it is clear that x = z If a relation is reflexive, symmetric and transitive, it is called an equivalence relation. We will talk more about these later.

Properties of Less Than Another common relation on an infinite set is less than, which is defined as, (x, y) R if x < y. Less than is not reflexive. Obviously, since x = x, it is not true that x < x. Less than is not symmetric. If x < y, then y > x and therefore it is not true that y < x. Less than is transitive. If x < y and y < z, then it is clear that x < z