7.1 RELATIONS AND THEIR PROPERTIES



Similar documents
Lecture 17 : Equivalence and Order Relations DRAFT

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Lecture 16 : Relations and Functions DRAFT

Solutions to In-Class Problems Week 4, Mon.

Discrete Mathematics. Hans Cuypers. October 11, 2007

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

INTRODUCTORY SET THEORY

Basic Set Theory. 1. Motivation. Fido Sue. Fred Aristotle Bob. LX Semantics I September 11, 2008

7 Relations and Functions

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson


Application for adoption information: Relative or guardian of adopted person who is deceased or does not have capacity

Discrete Maths. Philippa Gardner. These lecture notes are based on previous notes by Iain Phillips.

Basic Concepts of Set Theory, Functions and Relations

INDIANA DEPARTMENT OF CHILD SERVICES CHILD WELFARE MANUAL. Chapter 5: General Case Management Effective Date: March 1, 2007

3. Mathematical Induction

Midterm Practice Problems

3. SETS, FUNCTIONS & RELATIONS

Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

Math 223 Abstract Algebra Lecture Notes

Application for a Parental Order Section 54 Human Fertilisation and Embryology Act 2008

MATH10040 Chapter 2: Prime and relatively prime numbers

Follow your family using census records

Training Handout: New Individual Life Insurance Application

Semantics of UML class diagrams

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Cartesian Products and Relations

Computability Theory

So let us begin our quest to find the holy grail of real analysis.

GRAPH THEORY LECTURE 4: TREES

6.3 Conditional Probability and Independence

KAN_ This declaration form is for you if you are a former Finnish citizen and have lost Finnish citizenship.

Jacob Marries Rachel

Paid and Unpaid Labor in Developing Countries: an inequalities in time use approach

THE BENEFITS OF LIVING DONOR KIDNEY TRANSPLANTATION. feel better knowing

INCIDENCE-BETWEENNESS GEOMETRY

5.3 The Cross Product in R 3

8 Divisibility and prime numbers

HERCULES OFFSHORE, INC. APPLICATION FOR EMPLOYMENT. Personal Information

Cross product and determinants (Sect. 12.4) Two main ways to introduce the cross product

PROVINCIAL/TERRITORIAL COMPASSIONATE LEAVE LEGISLATION Provinces/Territories with Compassionate Care Leave Legislation

Linear Models in STATA and ANOVA

Inheritance according to Islamic Sharia Law

Lemma 5.2. Let S be a set. (1) Let f and g be two permutations of S. Then the composition of f and g is a permutation of S.

(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.

DARKO AFFORDABLE HOUSING SOLUTIONS, LLC 125 E Broadway, P.O. Box 1161 Anadarko, OK Phone Fax HOME REHAB

In-year common application form (icaf)

NOTES ON LINEAR TRANSFORMATIONS

Admission to a primary school other than the normal age of entry (in-year admission)

SIGNATURE OF APPLICANT: DATE. Please read the notes and instructions in the financial aid brochure before completing the application form.

6.2 Permutations continued

Similarity and Diagonalization. Similar Matrices

RENTAL APPLICATION Caldwell Housing Authority Farmway Road Caldwell, Idaho (208)

Where Will my New Kidney Come From?

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

Class notes Program Analysis course given by Prof. Mooly Sagiv Computer Science Department, Tel Aviv University second lecture 8/3/2007

Georg Cantor and Set Theory

Elements of Abstract Group Theory

Abstract Algebra Cheat Sheet

Notes on Algebraic Structures. Peter J. Cameron

This application is to obtain a Birth Certificate for individuals who were born in Ontario. Applicant Information

Math 55: Discrete Mathematics

Sermon Promise in Unexpected Places Genesis 39:1-23, September 21, 2014

Set Theory Basic Concepts and Definitions

Full and Complete Binary Trees

Chapter 13: Basic ring theory

(a) Write each of p and q as a polynomial in x with coefficients in Z[y, z]. deg(p) = 7 deg(q) = 9

FORM 6 [See rules 13(1) and 26] Application for inclusion of name in electoral roll

GLOSSARY OF TERMS. A kinship term used when speaking to or addressing a relative. Those relatives connected by one or more marital links.

EAST RIDING OF YORKSHIRE COUNCIL

E3: PROBABILITY AND STATISTICS lecture notes

Joseph and the Coat of Many Colors

HERCULES OFFSHORE, INC. APPLICATION FOR EMPLOYMENT. Personal Information

Appendix - 2. One of the most important sources of information for the psychologist is

Running Descriptive Statistics: Sample and Population Values

Sample Induction Proofs

Matrix Representations of Linear Transformations and Changes of Coordinates

Student Scholarship Application

REVENUE ADMINISTRATIVE BULLETIN Approved: September 17, 1998

Introduction to Topology

Descriptive Inferential. The First Measured Century. Statistics. Statistics. We will focus on two types of statistical applications

DEMENTIA SEVERITY RATING SCALE (DSRS)

CHAPTER 13 Generation Skipping Transfers

Section Inner Products and Norms

Examination paper for MA0301 Elementær diskret matematikk

WILLS AND ESTATES. Arthur D. Sederbaum, Esq.

A GUIDE TO WRITING YOUR LIFE STORY. Identifying information: Name and maiden name, date and place of birth:

Outline 2.1 Graph Isomorphism 2.2 Automorphisms and Symmetry 2.3 Subgraphs, part 1


4.5 Linear Dependence and Linear Independence

Transcription:

Section 7.1 Relations and Their Properties 7.1.1 7.1 RELATIONS AND THEIR PROPERTIES def: A binary relation is a predicate on the cartesian product A B of two sets. Sometimes we say from A to B. CONCEPTUALIZATION and MODELING A binary relation is set-theoretically modeled as a subset of A B. Example 7.1.1: C(, ) capital city of domain = C S cites and states e.g., C(Albany, NY), C(Pierre, SD) Example 7.1.2: less than or equal to domain = R R, where R = real numbers. For instance, π 7.6. Conceptually, one usually regards is capital of and as yes-no oracles on ordered pairs. Their respective models as sets of ordered pairs are useful in representing these relations on a computer.

Chapter 7 RELATIONS 7.1.2 MORE EXAMPLES Example 7.1.3: E(, ) eats domain = A A, where A = animal species. For instance, E(pythons, rabbits). Example 7.1.4: H(, ) husband of domain = M F (males, females) For instance, H(Jacob, Leah), H(Jacob, Rachel) Example 7.1.5: B(, ) brother of For instance, B(Joseph, Benjamin). GENERALIZATION Relations on products of more than two sets: ternary ( 3-ary ), quarternary ( 4-ary ), etc. See Section 7.2 of Rosen text. Example 7.1.6: R(a, e, y) means that a and e are father and mother, respectively, of child y. Domain = (males, females, persons). Thus, R(Abraham, Sarah, Isaac) is true. N.B. R(Sarah, Abraham, Isaac) is meaningless and R(Isaac, Sarah, Abraham) is false.

Section 7.1 Relations and Their Properties 7.1.3 ALTERNATIVE MODELS of RELATIONS A binary relation can also be modeled as a list of lists of relatives or as a matrix. Example 7.1.7: The relation Q from the set {1, 2, 3} to the set {A, B, C}, with the orderedpairs model Q = {(1,A), (1,B), (2,C), (3,A), (3,C)} has the lists-of-relatives model 1:A, B, C 2:C 3:A, C and the matrix model 1 2 3 A B C 1 1 0 0 0 1 1 0 1

Chapter 7 RELATIONS 7.1.4 COMPOSITION OF BINARY RELATIONS def: Let Q be arelation from S to T and R a relation from T to U. Their composition Q R is the relation on S U that is true for any pair (s, u) such that ( t T )[Q(s, t) R(t, u)] Remark: Using either the ordered-pairs model or the matrix model often makes the construction of compositions seem easier. Example 7.1.8: Construct Q R, where and Q = {(1,A), (1,B), (2,C), (3,A), (3,C)} R = {(A, x), (A, y), (A, z), (B,w), (B,y)} Using the definition of composition directly, we must consider every pair in the product {1, 2, 3} {w, x, y, z} and decide whether some member of {A, B, C} relates the two coordinates. CONTINUED

Section 7.1 Relations and Their Properties 7.1.5 Q R 1:A, B, C A : x, y, z 2:C B : w, y 3:A, C C : = Q R 1:w, x, y, z 2: 3:x, y, z 1 2 3 A B C 1 1 0 0 0 1 A B 1 0 1 C = 1 2 3 w x y z 0 1 1 1 1 0 1 0 0 0 0 0 w x y z 1 1 2 1 0 0 0 0 0 1 1 1 def: Let R be arelation on set S. Then the powers of R are defined inductively: R 0 = I (identity relation) R n+1 = R n R

Chapter 7 RELATIONS 7.1.6 REFLEXIVE PROPERTY of RELATIONS A binary relation R on a set S is reflexive if and only if ( x s)[r(x, x)] Example 7.1.2, continued: domain = R R, where R = real numbers. REFLEXIVE, since ( x R)[x x]. Example 7.1.5, continued: B(, ) brother of NONREFLEXIVE, since B(Joseph, Joseph) is false. Fact. A relation is reflexive if in its lists-ofrelative model, every member of the domain is listed as one of its own relatives. Fact. A relation is reflexive if its matrix model has 1 s down the main diagonal.

Section 7.1 Relations and Their Properties 7.1.7 SYMMETRY PROPERTY of RELATIONS A binary relation R on a set S is symmetric if and only if ( x, y S)[R(x, y) R(y, x)] Example 7.1.2, continued: domain = R R, where R = real numbers. NONSYMMETRIC, since π 7, but 7 π. Example 7.1.5, continued: B(, ) brother of QUESTION: If George is Bill s brother, does that imply that Bill is George s brother? YES or NO Example 7.1.3, continued: E(, ) eats domain = A A, where A = animal species. There are some symmetric pairs, such as ants and anteaters. Nonetheless, NONSYMMETRIC, since there also exist nonsymmetric pairs.

Chapter 7 RELATIONS 7.1.8 Fact. A relation is symmetric iff x y if y occurs in the list of relatives of x, then x occurs in the list of relatives of y. Fact. A relation is symmetric iff the relational matrix is symmetric around the main diagonal. Example 7.1.9: Some familial relationships are symmetric: spouse, sibling, cousin, in-law. Notice that none of them implies either an age difference or a gender. Example 7.1.10: Some other familial relationships are non-symmetric: husband, sister, niece, parent. Each of them implies either an age difference or a gender. CLASSROOM EXERCISE Construct a 2-person domain in which step-grandfather-inlaw-hood is symmetric.

Section 7.1 Relations and Their Properties 7.1.9 ANTISYMMETRY PROPERTY OF RELATIONS A binary relation R is antisymmetric if and only if ( x, y)[r(x, y) R(y, x) x = y] Example 7.1.2, continued: domain = R R, where R = real numbers. ANTISYMMETRIC, since x y y x x = y Example 7.1.5, continued: B(, ) brother of NON-ANTISYMMETRIC Example 7.1.3, continued: M(, ) mother of ANTISYMMETRIC, vacuously. CLASSROOM EXERCISE Let R be arelation that is both symmetric and antisymmetric. Prove that no element of its domain is related to any element other than possibly itself.

Chapter 7 RELATIONS 7.1.10 TRANSITIVITY PROPERTY OF RELATIONS A binary relation R is transitive if and only if ( x, y, z)[r(x, y) R(y, z) R(x, z)] Example 7.1.1, continued: domain = R R, where R = real numbers. TRANSITIVE, since x y y z x z Example 7.1.2, continued: B(, ) brother of QUESTION: Is your brother s brother your brother? YES or NO Example 7.1.7: M(, ) mother of NONTRANSITIVE, vacuously. Example 7.1.8: ancestor of TRANSITIVE

Section 7.1 Relations and Their Properties 7.1.11 Prop 7.1.1. Let R be arelation on a set S. Then R is transitive if and only if ( n Z + )[R n R] Proof: ( ) R 2 R R is transitive. ( ) mathematical induction.