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

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

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

Relationships between elements of sets occur in many contexts. Every day we deal with

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.

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

Deviations from the Mean

(4.2) Equivalence Relations. 151 Math Exercises. Malek Zein AL-Abidin. King Saud University College of Science Department of Mathematics

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

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

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

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

Sect Least Common Denominator

CSC Discrete Math I, Spring Relations

What is a Linear Space/Vector Space?

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Axioms of Kleene Algebra

Chapter 9: Relations Relations

Math.3336: Discrete Mathematics. Chapter 9 Relations

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

Packet #5: Binary Relations. Applied Discrete Mathematics

Name: Class: IM8 Block:

Chapter 2 Combinational Logic Circuits

Outline. We will now investigate the structure of this important set.

Harvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries

MAD 3105 PRACTICE TEST 2 SOLUTIONS

Theory of Computation

We define the multi-step transition function T : S Σ S as follows. 1. For any s S, T (s,λ) = s. 2. For any s S, x Σ and a Σ,

review To find the coefficient of all the terms in 15ab + 60bc 17ca: Coefficient of ab = 15 Coefficient of bc = 60 Coefficient of ca = -17

Identity. "At least one dog has fleas" is translated by an existential quantifier"

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

n CS 160 or CS122 n Sets and Functions n Propositions and Predicates n Inference Rules n Proof Techniques n Program Verification n CS 161

0 Sets and Induction. Sets

Introduction to data-flow analysis. Data-flow analysis. Control-flow graphs. Data-flow analysis. Example: liveness. Requirements

Chapter 2 : Boolean Algebra and Logic Gates

Section 1.1 Notes. Real Numbers

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

The integers. Chapter 3

ECARES Université Libre de Bruxelles MATH CAMP Basic Topology

Real Numbers. Real numbers are divided into two types, rational numbers and irrational numbers

Axioms for the Real Number System

What are relations? f: A B

CHAPTER 1 POLYNOMIALS

THE REAL NUMBERS Chapter #4

Chapter 1. Sets and Mappings

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Topics in Logic, Set Theory and Computability

CLASSICAL EXTENSIONAL MEREOLOGY. Mereology

1 Alphabets and Languages

Fair Divsion in Theory and Practice

Section 4.1 Switching Algebra Symmetric Functions

Chapter 7: Exponents

DERIVATIONS. Introduction to non-associative algebra. Playing havoc with the product rule? BERNARD RUSSO University of California, Irvine

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. College Algebra for STEM

2 Equivalence Relations

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

LESSON RELATIONS & FUNCTION THEORY

Homework 1/Solutions. Graded Exercises

ECE 238L Boolean Algebra - Part I

Real Numbers. Real numbers are divided into two types, rational numbers and irrational numbers

LOWELL JOURNAL. MUST APOLOGIZE. such communication with the shore as Is m i Boimhle, noewwary and proper for the comfort

Automata and Languages

Mathematical Preliminaries. Sipser pages 1-28

Homework Solution #1. Chapter 2 2.6, 2.17, 2.24, 2.30, 2.39, 2.42, Grading policy is as follows: - Total 100

CH 612 Advanced Inorganic Chemistry Structure and Reactivity. Exam # 2 10/25/2010. Print name:

Handout #6 INTRODUCTION TO ALGEBRAIC STRUCTURES: Prof. Moseley AN ALGEBRAIC FIELD

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

Mathematics 222a Quiz 2 CODE 111 November 21, 2002

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

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler

Digital Logic Design: a rigorous approach c

Unit 3 Factors & Products

Some Basic Logic. Henry Liu, 25 October 2010

Computer Science Foundation Exam

1 The distributive law

COMP232 - Mathematics for Computer Science

A Universal Turing Machine

X-MA2C01-1: Partial Worked Solutions

The Pumping Lemma for Context Free Grammars

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

6c Lecture 14: May 14, 2014

Chapter-2 Relations and Functions. Miscellaneous

CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

In English, there are at least three different types of entities: letters, words, sentences.

MATH 3300 Test 1. Name: Student Id:

spaghetti fish pie cake Ann X X Tom X X X Paul X X X

Lecture Notes in Real Analysis Anant R. Shastri Department of Mathematics Indian Institute of Technology Bombay

Discrete Mathematics. Chapter 4. Relations and Digraphs Sanguk Noh

Sec$on Summary. Definition of sets Describing Sets

MC9211 Computer Organization

Lecture 2: A crash course in Real Analysis

CHAPTER 3 BOOLEAN ALGEBRA

Relations Graphical View

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

BADHAN ACADEMY OF MATHS CONTACT FOR HOMETUTOR, FOR 11 th 12 th B.B.A, B.C.A, DIPLOMA,SAT,CAT SSC 1.2 RELATIONS CHAPTER AT GLANCE

Relations and Equivalence Relations

Transcription:

Section 9.1

Rela%onships Relationships between elements of sets occur in many contexts. Every day we deal with relationships such as those between a business and its telephone number, an employee and his or her salary, a person and a relative, and so on. In mathematics we study relationships such as those between a positive integer and one that it divides, a real number and one that is larger than it, a real number x and the value f(x) where f is a function, and so on. In computer science we study relationships such as that between a program and a variable it uses, a computer language and a valid statement in this language

Rela%ons Relationships between elements of sets are represented using a structure called a relation, which is just a subset of the Cartesian product of the sets. Relations can be used to solve problems such as determining which pairs of cities are linked by airline flights in a network, finding a viable order for the different phases of a complicated project, producing a useful way to store information in computer databases.

Rela%ons The most direct way to express a relationship between elements of two sets is to use ordered pairs made up of two related elements. For this reason, sets of ordered pairs are called binary relations.

Binary Rela%ons 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), (0, b), (1,a), (2, b)} is a relation from A to B. We can represent relations from a set A to a set B graphically or using a table: Relations are more general than functions. A function is a relation where exactly one element of B is related to each element of A.

Binary Rela%on on a Set Definition: A binary relation R on a set A is a subset of A A or a relation from A to A. Example: Suppose that A = {a,b,c}. Then R = {(a,a),(a,b), (a,c)} is a relation on A. Let A = {1, 2, 3, 4}. The ordered pairs in the relation R = {(a,b) a divides b} are (1,1), (1, 2), (1,3), (1, 4), (2, 2), (2, 4), (3, 3), and (4, 4).

Binary Rela%on on a Set (cont.) Question: How many relations are there on a set A? Solution: Because a relation on A is the same thing as a subset of A A, we count the subsets of A A. Since A A has n 2 elements when A has n elements, and a set with m elements has 2 m 2 subsets, there are 2 A subsets of A A. Therefore, there are 2 relations on a set A. 2 A

Binary Rela%ons on a Set (cont.) Example: Consider these relations on the set of integers: R 1 = {(a,b) a b}, R 4 = {(a,b) a = b}, R 2 = {(a,b) a > b}, R 5 = {(a,b) a = b + 1}, R 3 = {(a,b) a = b or a = b}, R 6 = {(a,b) a + b 3}. Note that these relations are on an infinite set and each of these relations is an infinite set. Which of these relations contain each of the pairs (1,1), (1, 2), (2, 1), (1, 1), and (2, 2)? Solution: Checking the conditions that define each relation, we see that the pair (1,1) is in R 1, R 3, R 4, and R 6 : (1,2) is in R 1 and R 6 : (2,1) is in R 2, R 5, and R 6 : (1, 1) is in R 2, R 3, and R 6 : (2,2) is in R 1, R 3, and R 4.

Reflexive Rela%ons Definition: R is reflexive iff (a,a) R for every element a A. Written symbolically, R is reflexive if and only if x[x U (x,x) R] Example: The following relations on the integers are reflexive: If A = then the empty relation is R 1 = {(a,b) a b}, reflexive vacuously. That is the empty relation on an empty set is reflexive! R 3 = {(a,b) a = b or a = b}, R 4 = {(a,b) a = b}. The following relations are not reqlexive: R 2 = {(a,b) a > b} (note that 3 3), R 5 = {(a,b) a = b + 1} (note that 3 3 + 1), R 6 = {(a,b) a + b 3} (note that 4 + 4 3).

Symmetric Rela%ons Definition: R is symmetric iff (b,a) R whenever (a,b) R for all a,b A. Written symbolically, R is symmetric if and only if x y [(x,y) R (y,x) R] Example: The following relations on the integers are symmetric: R 3 = {(a,b) a = b or a = b}, R 4 = {(a,b) a = b}, R 6 = {(a,b) a + b 3}. The following are not symmetric: R 1 = {(a,b) a b} (note that 3 4, but 4 3), R 2 = {(a,b) a > b} (note that 4 > 3, but 3 4), R 5 = {(a,b) a = b + 1} (note that 4 = 3 + 1, but 3 4 + 1).

An%symmetric Rela%ons Definition:A relation R on a set A such that for all a,b A if (a,b) R and (b,a) R, then a = b is called antisymmetric. Written symbolically, R is antisymmetric if and only if x y [(x,y) R (y,x) R x = y] Example: The following relations on the integers are antisymmetric: R 1 = {(a,b) a b}, R 2 = {(a,b) a > b}, R 4 = {(a,b) a = b}, R 5 = {(a,b) a = b + 1}. The following relations are not antisymmetric: R 3 = {(a,b) a = b or a = b} (note that both (1, 1) and ( 1,1) belong to R 3 ), R 6 = {(a,b) a + b 3} (note that both (1,2) and (2,1) belong to R 6 ). For any integer, if a a b and a b, then a = b.

Transi%ve Rela%ons Definition: A relation R on a set A is called transitive if whenever (a,b) R and (b,c) R, then (a,c) R, for all a,b,c A. Written symbolically, R is transitive if and only if x y z[(x,y) R (y,z) R (x,z) R ] Example: The following relations on the integers are transitive: R 1 = {(a,b) a b}, R 2 = {(a,b) a > b}, R 3 = {(a,b) a = b or a = b}, R 4 = {(a,b) a = b}. The following are not transitive: For every integer, a b and b c, then b c. R 5 = {(a,b) a = b + 1} (note that both (3,2) and (4,3) belong to R 5, but not (3,3)), R 6 = {(a,b) a + b 3} (note that both (2,1) and (1,2) belong to R 6, but not (2,2)).

Examples Consider the following relations on the set {1,2,3,4}, R1 = {(1, 1 ), (1, 2), (2, 1 ), (2, 2), (3, 4), (4, 1 ), (4, 4)}, R2 = {(1, 1 ), (1, 2), (2, 1 )}, R3 = {(1, 1 ), (1, 2), (1, 4), (2, 1 ), (2, 2), (3, 3), (4, 1 ), (4, 4)}, R4 = {(2, 1 ), (3, 1 ), (3, 2), (4, 1 ), (4, 2), (4, 3)}, R5 = {(1, 1 ), (1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4), (3, 3), (3, 4), (4, 4)}, R6 = {(3, 4)}. ReQlexive: x[x U (x,x) R] Symmetric: x y [(x,y) R (y,x) R] Antisymmetic: x y [(x,y) R (y,x) R x = y] Transitive: x y z[(x,y) R (y,z) R (x,z) R ]

Combining Rela%ons Given two relations R 1 and R 2, we can combine them using basic set operations to form new relations such as R 1 R 2, R 1 R 2, R 1 R 2, and R 2 R 1. Example: Let A = {1,2,3} and B = {1,2,3,4}. The relations R 1 = {(1,1),(2,2),(3,3)} and R 2 = {(1,1),(1,2),(1,3),(1,4)} can be combined using basic set operations to form new relations: R 1 R 2 ={(1,1),(1,2),(1,3),(1,4),(2,2),(3,3)} R 1 R 2 ={(1,1)} R 1 R 2 ={(2,2),(3,3)} R 2 R 1 ={(1,2),(1,3),(1,4)}

Composi%on Definition: Suppose R 1 is a relation from a set A to a set B. R 2 is a relation from B to a set C. Then the composition (or composite) of R 2 with R 1, is a relation from A to C where if (x,y) is a member of R 1 and (y,z) is a member of R 2, then (x,z) is a member of R 2 R 1.

Represen%ng the Composi%on of a Rela%on a b R 1 m n o R 2 w x y c p z R 1 R 2 = {(b,d),(b,b)}