Relations: representation and closures

Slides:



Advertisements
Similar presentations
Representing Relations
Advertisements

Reflexive example: AB = AB Symmetric example: AB = BA
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),
Proving Segment Relationships Postulate The Ruler Postulate The points on any line or line segment can be paired with real numbers so that, given.
1 Representing Relations Part 2: directed graphs.
18 Properties MathScience Innovation Center Mrs. B. Davis.
3-4 Algebra Properties Used in Geometry The properties of operations of real numbers that you used in arithmetic and algebra can be applied in geometry.
2.5 Reasoning in Algebra and Geometry
Chapter 2 Working with Real Numbers. 2-1 Basic Assumptions.
Properties of Real Numbers
1 2.5:Reason Using Properties from Algebra Goal:Use algebraic properties in logical arguments.
1–2: Properties of Real Numbers. Counting (Natural) Numbers {1, 2, 3, 4, 5, …}
Module #21 - Relations Representing Relations Rosen 6 th ed., Ch. 8.
CSC-2259 Discrete Structures
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.
Reasoning with Properties from Algebra. Properties of Equality Addition (Subtraction) Property of Equality If a = b, then: a + c = b + c a – c = b – c.
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?
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Relations.
Relations and their Properties
Properties of Real Numbers
Reflexivity, Symmetry, and Transitivity Lecture 44 Section 10.2 Thu, Apr 7, 2005.
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
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
1–1: Number Sets. Counting (Natural) Numbers: {1, 2, 3, 4, 5, …}
1-4: Properties of Equality and Algebraic Proofs Unit 1: Functions English Casbarro.
Geometry 2.5 Big Idea: Reason Using Properties from Algebra.
Section 1.3 Properties. Properties of Equality Reflexive Property: a=a Symmetric Property: If 3=x, then x=3 Transitive Property: If x=y and y=4 then x=4.
1.2 Field Axioms (Properties) Notes on a Handout.
2.3 Diagrams and 2.4 Algebraic Reasoning. You will hand this in P. 88, 23.
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.
CSE 311 Foundations of Computing I Lecture 20 Relations, Graphs, Finite State Machines Autumn 2011 CSE 3111 TexPoint fonts used in EMF. Read the TexPoint.
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,
Chapter Relations and Their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Linear Equations and Inequalities in One Variable What is an equation? =
Objective: To prove and apply theorems about angles Proving Angles Congruent (2-6)
Reasoning with Properties from Algebra. Properties of Equality For all properties, a, b, & c are real #s. Addition property of equality- if a=b, then.
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.
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 41 May 7, 2008.
2.5 Reasoning and Algebra. Addition Property If A = B then A + C = B + C.
Ch 2-5 Reasoning in Geometry and Algebra
Commutative Property of Addition Commutative Property of Multiplication For all real numbers a and b a + b = b + a For all real numbers a and b a b = b.
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.
Section 2.2 Day 1. A) Algebraic Properties of Equality Let a, b, and c be real numbers: 1) Addition Property – If a = b, then a + c = b + c Use them 2)
2-1 Basic Assumptions Objective: To use number properties to simplify expressions.
11/22/2016 Geometry 1 Section 2.4: Reasoning with Properties from Algebra.
Lesson 2 – 7 Proving Segment Relationships
2.4 Objective: The student will be able to:
2-5 Reason Using Properties from Algebra
Real Numbers, Algebra, and Problem Solving
Reasoning With Properties of Algebra
2. Definition of congruent segments AB = CD 2.
Distributing, Sets of Numbers, Properties of Real Numbers
The Distributive Property
CSE 321 Discrete Structures
2.5 Reason Using Properties from Algebra
PROPERTIES OF ALGEBRA.
Relations and their Properties
CSE 321 Discrete Structures
321 Section, Week 9 Natalie Linnell.
Properties of Equality
9.5 Equivalence Relations
Verifying Segment Relationships
2-5 Algebraic Proof Geometry.
Agenda Lecture Content: Relations (Relasi)
Ø Let the universe set U={1,2,3,...,10}.
4.4 Properties of Relations
Presentation transcript:

Relations: representation and closures

We can represent a (binary) relation as a 0/1 matrix

Example of a relation as a 0/1 matrix

The digraph of a relation b c d g f e

Properties of relations as a 0/1 matrix

Reflexive Symmetric Antisymmetric

Reflexive 2 1 4 3

1 2 3 4 Symmetric

Antisymmetric 1 2 3 4

Join and Meets

1 2 3 4 2 1 4 3

join 1 2 3 4 2 1 4 3 1 2 3 4

meets 1 2 3 4 2 1 4 3 2 1 4 3

Compose

compose 1 2 3 4 2 1 4 3

But what does compose mean here? What is the intuition behind all of these matrix operations? Get real?

Closures If we have a relation R then the closure of R with respect to some property P is the relation S where S is R plus the minimum number of tuples that ensures property P P could be reflexive, symmetric, transitive

Reflexive Closure R = {(1,1),(1,2),(2,1),(3,2)} on the set A = {1,2,3} The reflexive closure of R is S = {(1,2),(2,2),(3,3),(1,2),(2,1),(3,2)} we add {(2,2),(3,3)} to R to get S

Example of Reflexive Closure

Example of Symmetric Closure

Transitive Closure We need to add the minimum number of tuples to R, giving us S, such that if (a,b) is in S and (b,c) is in S, then (a,c) is in S.

Example of Transitive Closure R = {(1,3),(1,4),(2,1),(3,2)} on the set A = {1,2,3,4} What is the transitive closure? we have (1,3) and (3,2) so add (1,2) we have (3,2) and (2,1) so add (3,1) we have (2,1) and (1,3) so add (2,3) we have (2,1) and (1,4) so add (2,4) S = {(1,2),(1,3),(1,4),(2,1),(2,3),(2,4),(3,1) ,(3,2)} Are we done?

Example of Transitive Closure 1 2 4 3 1 2 4 3 Are we done?

Example of Transitive Closure We have (3,1) and (1,4) but not (1,4) We have (1,2) and (2,1) but not (1,1) We have ... 1 2 4 3 Are we done?

Transitive Closure

Transitive Closure

Example of Transitive Closure 1 2 3

Example of Transitive Closure

1 2 3

So?