The main limitation of the concept of a. function

Size: px
Start display at page:

Download "The main limitation of the concept of a. function"

Transcription

1 Relations

2 The main limitation of the concept of a A function, by definition, assigns one output to each input. This means that a function cannot model relationships between sets where some objects on each side are related to several objects on the other side. On the right is a visualization of such a situation. function

3 Relations Let s study an example of a relation to understand the concept and how it generalizes the idea of a function. There are three people: John, Jane and Jim. John is 5 6 tall; Jane 6 1 and Jim is 6 5. Then there is the is taller than relation: Jim is taller than Jane and taller than John, and Jane is taller than John. This relation is visualized on the right side in two ways. The relation is NOT a function from A to B because John in A does not have an output, and Jim has two of them. Is taller than.. John Jane Jim John Jane X Jim X X

4 The Connection with the Cartesian Product The table representation of the is taller than relation on the previous page is our clue for what kind of mathematical object a relation is. We can think of the Cartesian product A B as the set of all cells of a table where the elements of A identify the rows, and the elements of B identify the columns. A relation is defined by the X s in that table. Therefore, a relation from A to B is a subset of A B.

5 The Formal Definition A relation R: A B is a subset of A B. We may write (a, b) R to indicate that a is related to b, or arb. If A = B, then we just call R a relation on A. If A = John, Jane, Jim and R is the is taller than relation on A introduced earlier, then R can be formally defined as R = { Jane, John, Jim, Jane, Jim, John }

6 Another Example of a Relation Let A = {1,2,3,4,5} and B = {1,2,3,4}. Let R be the less than or equal relation from A to B. Represent R by a table, then write it in formal set notation. Solution: the table is on the right. The set representation is 1 X X X X 2 X X X 3 X X 4 X 5 R = { 1,1, 1,2, 1,3, 1,4, 2,2, 2,3, 2,4, 3,3, 3,4, 4,4 }

7 Composition of Relations Recall that if g: A B and f: B C are functions, then the function f g: A C defined by f g x = f(g x ) for all x A is called the composition of f with g. Informally speaking, f g is the function we obtain by concatenating arrows: x g y f z means x f g z. We use the same approach to defining composition for two relations. Given relations R: A B and S: B C, S R: A C is the relation defined by identifying all arrow paths that lead from elements of A to elements of C. Formally, a S R c precisely if arb and bsc for some b B.

8 Example of a Composition of Relations Suppose A = {1,2,3}, B = {7,8}, C = {5}, and What is S R in set notation? R = 1,7, 3,8 S = { 7,5, 8,5 } Solution: 1R7 and 7S5 means 1 S R 5. 1 is not R related to anything else in B, and 7 is not S related to anything else in C, so 1 is not S R related to anything in C except 5. Likewise, 3R8 and 8S5 means 3 R S 5, and that is the only relationship between 3 and any element in C. The number 2 in A is not R related to anything in B, so 2 can also not be S R related to anything in C. Therefore, S R = { 1,5, 3,5 }.

9 Possible Properties of Relations on a Set: Reflexivity, Symmetry and Transitivity There are three special properties that a relation R on a set S may have: 1. Reflexivity: R is called reflexive iff every element of S is R related to itself: a S ara 2. Symmetry: R is called symmetric iff elements are always related both ways or not at all: a, b S(aRb bra) 3. Transitivity: R is called transitive iff indirectly related elements are always directly related: a, b, c S(aRb brc arc) If R has all three properties, it is called an equivalence relation. A fourth property is worth mentioning: R is called anti-symmetric iff the only symmetric relationships are possibly the trivial ones: a, b S(aRb bra a = b). Equivalently, R is anti-symmetric iff no nontrivial symmetric pairs exist: a, b S a b arb bra. Anti-symmetry is NOT the negation of symmetry. A relation may be neither, or both.

10 Visualizing the Properties It is helpful to have an image of some of the properties discussed on the previous page. While relations may be defined on infinite sets, we will consider only a relation R defined on a finite set S. Such a relation can be visualized as a table in which each cell represents an element of S S. If and only if the cell contains an X, then the corresponding element is in R. The diagonal of the relation is the set of pairs a, a with a S. (If S is infinite, imagine the table as being doubly infinite.) There is no good visualization for transitivity.

11 Visualizing Reflexivity Reflexivity means that the diagonal in the table is completely filled. Reflexivity says nothing about the off-diagonal elements. In the examples on the right, yellow marks the boxes that must be checked for reflexivity. 1 X 2 X 3 X 4 X reflexive 1 X X 2 X X 3 X 4 X X X not reflexive 1 X X X not reflexive 1 X X X X 2 X X X X 3 X X X X 4 X X X X reflexive Four examples of reflexive or not reflexive relations R on the set {1,2,3,4}.

12 Visualizing Symmetry Symmetry means that the crosses must form pairs across the diagonal. Symmetry says nothing about the diagonal elements. They may or may not be checked. Unlike reflexivity, symmetry does not require any particular boxes, or any at all, to be checked. On this page, therefore, yellow is only used in nonsymmetric examples to highlight which boxes would have to be checked for symmetry symmetric 1 X X 2 X X X 3 X 4 X X not symmetric 1 X X X 2 3 X X 4 X X symmetric not symmetric Four examples of symmetric or not symmetric relations R on the set {1,2,3,4}.

13 Visualizing Anti-Symmetry Anti-symmetry means that there can t be two checked boxes that lie in exactly opposite positions relative to the diagonal. Anti-Symmetry says nothing about the diagonal elements. They may or may not be checked X X 2 X 3 X X 4 X X Again, Anti-symmetry does not require any particular boxes, or any at all, to be checked. On this page, yellow represents symmetric pairs that prevent anti-symmetry. Anti-symmetry could be created by eliminating one, or both of each yellow pair. anti-symmetric 1 X X 2 X X X 3 X 4 X not anti-symmetric 1 X 2 X X 3 anti-symmetric 4 X X not anti-symmetric Four examples of anti-symmetric or not antisymmetric relations R on the set {1,2,3,4}.

14 The Relationship Between Symmetry and Anti-Symmetry Anti-Symmetry is not the negation of Symmetry. As far as the off-diagonal elements only are concerned, the two properties are the extremes of a spectrum. With symmetry, all off-diagonal elements come in symmetric pairs. With antisymmetry, none of them do. There are lots of shades of gray in between. Some offdiagonal elements may have a symmetric partner, others may not. Relations may therefore be neither symmetric nor anti-symmetric. Neither symmetry nor anti-symmetry make any requirements on the diagonal. Thus, if there are only diagonal elements in a relation, the relation is (trivially) both symmetric and anti-symmetric. 1 X 2 3 X 4 X The relation has only diagonal elements and is therefore both symmetric and anti-symmetric. 1 X 2 X X 3 X X 4 X The relation has both off-diagonal symmetric pairs (green) and off-diagonal elements that lack a symmetric partner (yellow) and is therefore neither symmetric nor anti-symmetric.

15 Using Combinatorics to Count Relations with Given Properties (1) To further solidify our understanding of the properties of relations, let us consider the problem of counting how may relations R there are on a set S with n elements that have one or several of the properties we discussed. Let us start by considering that each such relation corresponds to a unique choice of cells in a table that has n 2 elements. Each box may be marked or unmarked by an X. Therefore, by the multiplication principle, there are 2 n2 relations on S. Observe the order of operations here power towers like 2 n2 are rightassociative, which means they are evaluated from right to left (from the top down): 2 n2 = 2 (n2 ) There is a very good reason for this convention. Since (x a ) b = x ab, a leftassociative power tower is redundant as a notation, since it can always be reasonably expressed as a single exponentiation. For example: (10 10 ) 10 = Example: S={1,2,3,4} has 4 elements. The table that represents each relation R on S has 4 2 = 16 cells (green). There are 2 42 = 2 16 = possible relations on S. The right-associative power tower cannot, at least not if you wish to avoid writing very large numbers: =

16 Using Combinatorics to Count Relations with Given Properties (2) Let us now count the number of relations on a set S with n elements that have specific properties. Reflexivity requires the diagonal to be checked. There are n diagonal cells. Thus, we only have complete freedom of choice over n 2 n cells. Thus, the number of reflexive relations on a set S with n elements is 2 n2 n. Symmetry requires the cells below the diagonal to be a mirror image of those above. The diagonal itself is subject to free choice. There are therefore only σn k=1 k = n(n+1) cells whose contents we can 2 freely choose. Thus, the number of symmetric relations on a set S with n elements is 2 n(n+1) 2. In the visualization on the right, green marks cells whose content can be freely chosen. 1 X 2 X 3 X 4 X choosing a reflexive relation choosing a symmetric relation

17 Using Combinatorics to Count Relations with Given Properties (3) Reflexivity and symmetry combined leave us free to choose above the diagonal only. There are σ n 1 n 1 n k=1 k = many such cells. 2 Thus, the number of reflexive and symmetric relations on a set S with n elements is 2 n(n 1) 2. In the case of anti-symmetry, the diagonal is unconstrained, but for non-trivial symmetric pairs, we have 3 possibilities: just one of them may be checked, or none. Therefore, the number of anti-symmetric relations on a set S with n elements is 2 n 3 n(n 1) 2. Transitive relations are hard to count. We will not address this problem here. In the visualization on the right, green marks cells whose content can be freely chosen. Pink marks cells with a possible restriction. 1 X 2 X 3 X 4 X choosing a reflexive and symmetric relation choosing an anti-symmetric relation. Pink cells must be empty if the corresponding symmetric cell is checked, and is unconstrained otherwise.

18 Standard Relations on the Real Numbers and their Properties < (the less than relation on real numbers) is not reflexive, not symmetric, anti-symmetric and transitive. (the less than or equal relation on real numbers) is reflexive, not symmetric, antisymmetric and transitive. = (the equality relation on real numbers) is reflexive, symmetric, anti-symmetric and transitive. It is an equivalence relation. Notice that this relation is both symmetric and anti-symmetric because it only contains the diagonal. Relations on R: < = Reflexive Symmetric Anti-Symmetric Transitive Equivalence (the nonequality relation on real numbers) is not reflexive, symmetric, not antisymmetric and not transitive.

19 Explanation of the concept of Equivalence Relation The common-sense meaning of equivalence is as good as, at least as far as a certain purpose is concerned. Here are two examples of equivalence in real life: People are legally equivalent we are all individuals, but the same under the law. Two $20 bills are different objects, but they are the same for purposes of payment. This common sense notion of equivalence is obviously reflexive: every object is equivalent to itself. It is also naturally symmetric: if I m as good as you, then you re as good as me. It is also naturally transitive: if Bob is as good as Jane, and Jane is as good as Joe, then Bob is as good as Joe.

20 Another example of an equivalence relation Let s prove that the following is an equivalence relation on the integers: arb iff b a is even. R is reflexive because for all integers a, a a = 0 is even. R is symmetric because for all integers a, b, if b a is even, then by definition, b a = 2n for some integer n, and then a b = b a = 2n is even as well. R is transitive because for all integers a, b, c, if b a is even, and c b is even, then by definition, b a = 2n for some integer n and c b = 2k for some integer k. By adding the two equations, we get b a + c b = c a = 2n + 2k = 2 n + k so c a is even.

21 Squaring Relations If R: S S is a relation on a set S, then we can compose R with itself: R R = R 2. Let us ponder the meaning of this relation. By definition, two elements of a, c S are R 2 related if they are indirectly R related through a third element b S: ar 2 c means arb and brc for some b S. This means that R 2 contains all the indirect R - relationships with one degree of separation. Example: let S be the set of cities in the world that have an airport. Let R be the relation on S where two cities are related iff there is a direct flight between them. Then two cities are R 2 related if you can fly between them with exactly one stop.

22 Squaring the Less Than Relation < is the less than relation on the real numbers. What is < 2? By definition, a < 2 c exactly when a < b and b < c for some real number b. But when that is the case a < c by transitivity of the < relation. Conversely, if a < c, then we can find a real number b such that a < b < c. This is one of the fundamental properties of the real numbers. Therefore, a < 2 c. We just proved that a c(a < c a < 2 c). Therefore, the two relations are equal: < 2 = <. The same reasoning applies to the relation on the real numbers. In the same way as above, we can prove that 2 =.

23 Squaring the Non-Equality Relation is the non-equal relation on the real numbers. What is 2? By definition, a 2 c exactly when a b and b c for some real number b. This means that any two real numbers a, c are in the 2 relationship, since for any two such numbers, you can always find a third one that is equal to neither of them. Therefore, 2 = R R = R 2.

24 Generalization It was the transitivity of the < relation that caused all squared relationships to be original relationships as well. This leads us to the following Theorem: If R is a transitive relation on S, then R 2 R. The proof is very simple: suppose (a, c) R 2, i.e. ar 2 c. By definition of the square relation, that means that arb and brc for some b S. Since R is transitive, arc. Hence (a, c) R.

25 Can we get the opposite inclusion? The theorem on the previous page suggests the question of what condition might guarantee that R R 2. It turns out that reflexivity is a sufficient condition for that (though not a necessary one, as the example of the < relation on the real numbers show.) Theorem: If R is a reflexive relation on S, then R R 2. Proof: suppose a, b R, i.e. arb. Since R is reflexive, brb. Therefore, by definition of R 2, ar 2 b and therefore a, b R 2. Corollary: If R is reflexive and transitive, then R = R 2. This theorem makes it easy to determine, for example, that the equality relation squared is the equality relation: (= 2 ) = =.

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

Section Summary. Relations and Functions Properties of Relations. Combining Relations Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included

More information

CSC Discrete Math I, Spring Relations

CSC Discrete Math I, Spring Relations CSC 125 - Discrete Math I, Spring 2017 Relations Binary Relations Definition: A binary relation R from a set A to a set B is a subset of A B Note that a relation is more general than a function Example:

More information

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

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y. Relations Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 7.1, 7.3 7.5 of Rosen cse235@cse.unl.edu

More information

Relations Graphical View

Relations Graphical View Introduction Relations Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Recall that a relation between elements of two sets is a subset of their Cartesian

More information

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

Relationships between elements of sets occur in many contexts. Every day we deal with C H A P T E R 9 Relations 9.1 Relations and Their Properties 9.2 n-ary Relations and Their Applications 9.3 Representing Relations 9.4 Closures of Relations 9.5 Equivalence Relations 9.6 Partial Orderings

More information

Chapter 6. Relations. 6.1 Relations

Chapter 6. Relations. 6.1 Relations Chapter 6 Relations Mathematical relations are an extremely general framework for specifying relationships between pairs of objects. This chapter surveys the types of relations that can be constructed

More information

Worksheet on Relations

Worksheet on Relations Worksheet on Relations Recall the properties that relations can have: Definition. Let R be a relation on the set A. R is reflexive if for all a A we have ara. R is irreflexive or antireflexive if for all

More information

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

Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Chapter 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 B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.

More information

Relations, Functions, and Sequences

Relations, Functions, and Sequences MCS-236: Graph Theory Handout #A3 San Skulrattanakulchai Gustavus Adolphus College Sep 13, 2010 Relations, Functions, and Sequences Relations An ordered pair can be constructed from any two mathematical

More information

1.4 Equivalence Relations and Partitions

1.4 Equivalence Relations and Partitions 24 CHAPTER 1. REVIEW 1.4 Equivalence Relations and Partitions 1.4.1 Equivalence Relations Definition 1.4.1 (Relation) A binary relation or a relation on a set S is a set R of ordered pairs. This is a very

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets

More information

Binary Relation Review Questions

Binary Relation Review Questions CSE 191 Discrete Structures Fall 2016 Recursive sets Binary Relation Review Questions 1. For each of the relations below, answer the following three questions: Is the relation reflexive? Is the relation

More information

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

Relations. Relations. Definition. Let A and B be sets. Relations Relations. Definition. Let A and B be sets. A relation R from A to B is a subset R A B. If a A and b B, we write a R b if (a, b) R, and a /R b if (a, b) / R. A relation from A to A is called

More information

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

1. (B) The union of sets A and B is the set whose elements belong to at least one of A 1. (B) The union of sets A and B is the set whose elements belong to at least one of A or B. Thus, A B = { 2, 1, 0, 1, 2, 5}. 2. (A) The intersection of sets A and B is the set whose elements belong to

More information

Reading 11 : Relations and Functions

Reading 11 : Relations and Functions CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Reading 11 : Relations and Functions Instructor: Beck Hasti and Gautam Prakriya In reading 3, we described a correspondence between predicates

More information

Tree sets. Reinhard Diestel

Tree sets. Reinhard Diestel 1 Tree sets Reinhard Diestel Abstract We study an abstract notion of tree structure which generalizes treedecompositions of graphs and matroids. Unlike tree-decompositions, which are too closely linked

More information

Deviations from the Mean

Deviations from the Mean Deviations from the Mean The Markov inequality for non-negative RVs Variance Definition The Bienaymé Inequality For independent RVs The Chebyeshev Inequality Markov s Inequality For any non-negative random

More information

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

Relations. Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B. Chapter 5 Relations Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B. If A = B then a relation from A to B is called is called a relation on A. Examples A relation

More information

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

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook) Relations Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations Reading (Epp s textbook) 8.-8.3. Cartesian Products The symbol (a, b) denotes the ordered

More information

Solutions to In Class Problems Week 4, Mon.

Solutions to In Class Problems Week 4, Mon. Massachusetts Institute of Technology 6.042J/18.062J, Fall 05: Mathematics for Computer Science September 26 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised September 26, 2005, 1050 minutes Solutions

More information

Binary Relations Part II

Binary Relations Part II Binary Relations Part II Outline for Today Finish from Last Time Pt. 3 of our proof that ~ is an equivalence relation Properties of Equivalence Relations What s so special about those three rules? Strict

More information

Chapter 2 - Relations

Chapter 2 - Relations Chapter 2 - Relations Chapter 2: Relations We could use up two Eternities in learning all that is to be learned about our own world and the thousands of nations that have arisen and flourished and vanished

More information

Relations, Functions & Binary Operations

Relations, Functions & Binary Operations Relations, Functions & Binary Operations Important Terms, Definitions & Formulae 0 TYPES OF INTERVLS a) Open interval: If a and b be two real numbers such that a b then, the set of all the real numbers

More information

Writing Assignment 2 Student Sample Questions

Writing Assignment 2 Student Sample Questions Writing Assignment 2 Student Sample Questions 1. Let P and Q be statements. Then the statement (P = Q) ( P Q) is a tautology. 2. The statement If the sun rises from the west, then I ll get out of the bed.

More information

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

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion CHAPTER 1 Relations 1. Relations and Their Properties 1.1. Definition of a Relation. Definition 1.1.1. A binary relation from a set A to a set B is a subset R A B. If (a, b) R we say a is Related to b

More information

Part IA Numbers and Sets

Part IA Numbers and Sets Part IA Numbers and Sets Definitions Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

Foundations of algebra

Foundations of algebra Foundations of algebra Equivalence relations - suggested problems - solutions P1: There are several relations that you are familiar with: Relations on R (or any of its subsets): Equality. Symbol: x = y.

More information

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) LIOR SILBERMAN Version 1.0 compiled September 9, 2015. 1.1. List of examples. 1. RELATIONS Equality of real numbers: for some x,y R we have x = y. For other pairs

More information

MATH 61-02: PRACTICE PROBLEMS FOR FINAL EXAM

MATH 61-02: PRACTICE PROBLEMS FOR FINAL EXAM MATH 61-02: PRACTICE PROBLEMS FOR FINAL EXAM (FP1) The exclusive or operation, denoted by and sometimes known as XOR, is defined so that P Q is true iff P is true or Q is true, but not both. Prove (through

More information

Preference, Choice and Utility

Preference, Choice and Utility Preference, Choice and Utility Eric Pacuit January 2, 205 Relations Suppose that X is a non-empty set. The set X X is the cross-product of X with itself. That is, it is the set of all pairs of elements

More information

Problem Set #1 solutions

Problem Set #1 solutions Problem Set # solutions... This number trick involves your favorite three-digit number and your age. Multiply your age by 7. Subtract from the result. Multiply by. Add 8. Multiply by 3. Add your favorite

More information

ASSIGNMENT 1 SOLUTIONS

ASSIGNMENT 1 SOLUTIONS MATH 271 ASSIGNMENT 1 SOLUTIONS 1. (a) Let S be the statement For all integers n, if n is even then 3n 11 is odd. Is S true? Give a proof or counterexample. (b) Write out the contrapositive of statement

More information

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

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Our main goal is here is to do counting using functions. For that, we

More information

5. Partitions and Relations Ch.22 of PJE.

5. Partitions and Relations Ch.22 of PJE. 5. Partitions and Relations Ch. of PJE. We now generalize the ideas of congruence classes of Z to classes of any set X. The properties of congruence classes that we start with here are that they are disjoint

More information

In mathematics there are endless ways that two entities can be related

In mathematics there are endless ways that two entities can be related CHAPTER 16 Relations In mathematics there are endless ways that two entities can be related to each other. Consider the following mathematical statements. 5 < 10 5 5 6 = 30 5 5 80 7 > 4 x y 8 3 a b ( mod

More information

Math 2534 Solution to Test 3A Spring 2010

Math 2534 Solution to Test 3A Spring 2010 Math 2534 Solution to Test 3A Spring 2010 Problem 1: (10pts) Prove that R is a transitive relation on Z when given that mrpiff m pmod d (ie. d ( m p) ) Solution: The relation R is transitive, if arb and

More information

1. To be a grandfather. Objects of our consideration are people; a person a is associated with a person b if a is a grandfather of b.

1. To be a grandfather. Objects of our consideration are people; a person a is associated with a person b if a is a grandfather of b. 20 [161016-1020 ] 3.3 Binary relations In mathematics, as in everyday situations, we often speak about a relationship between objects, which means an idea of two objects being related or associated one

More information

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

Outline Inverse of a Relation Properties of Relations. Relations. Alice E. Fischer. April, 2018 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.

More information

Lecture 4.3: Closures and Equivalence Relations

Lecture 4.3: Closures and Equivalence Relations Lecture 4.3: Closures and CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren Course Admin Mid-Term 2 Exam Solution will be posted soon Should have the results

More information

Sets and Motivation for Boolean algebra

Sets and Motivation for Boolean algebra SET THEORY Basic concepts Notations Subset Algebra of sets The power set Ordered pairs and Cartesian product Relations on sets Types of relations and their properties Relational matrix and the graph of

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

Axioms of Kleene Algebra

Axioms of Kleene Algebra Introduction to Kleene Algebra Lecture 2 CS786 Spring 2004 January 28, 2004 Axioms of Kleene Algebra In this lecture we give the formal definition of a Kleene algebra and derive some basic consequences.

More information

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

Sets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary An Algebra on Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing Spring, 2018 Alice E. Fischer... 1/37 An Algebra on 1 Definitions and Notation Venn Diagrams 2 An Algebra on 3 Alice E. Fischer...

More information

Outline for Today. Binary Relations. Equivalence Relations. Partial Orders. Quick Midterm Review

Outline for Today. Binary Relations. Equivalence Relations. Partial Orders. Quick Midterm Review Binary Relations Outline for Today Binary Relations Studying connections between objects from a different perspective. Equivalence Relations Relations that break objects into groups. Partial Orders Relations

More information

Exclusive Disjunction

Exclusive Disjunction Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is

More information

Combinatorics. But there are some standard techniques. That s what we ll be studying.

Combinatorics. But there are some standard techniques. That s what we ll be studying. Combinatorics Problem: How to count without counting. How do you figure out how many things there are with a certain property without actually enumerating all of them. Sometimes this requires a lot of

More information

Section 20: Arrow Diagrams on the Integers

Section 20: Arrow Diagrams on the Integers Section 0: Arrow Diagrams on the Integers Most of the material we have discussed so far concerns the idea and representations of functions. A function is a relationship between a set of inputs (the leave

More information

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

Definition: A binary relation R from a set A to a set B is a subset R A B. Example: 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

More information

Set Operations. Combining sets into new sets

Set Operations. Combining sets into new sets Set Operations Combining sets into new sets Union of Sets The union of two sets is the set of all elements that are in one or the other set: A B = {x x A x B} The union is the set theoretic equivalent

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part hree riday our Square! oday at 4:15PM, Outside Gates Announcements Problem Set 3 due right now. Problem Set 4 goes out today. Checkpoint due Monday, October 22. Remainder due riday,

More information

can only hit 3 points in the codomain. Hence, f is not surjective. For another example, if n = 4

can only hit 3 points in the codomain. Hence, f is not surjective. For another example, if n = 4 .. Conditions for Injectivity and Surjectivity In this section, we discuss what we can say about linear maps T : R n R m given only m and n. We motivate this problem by looking at maps f : {,..., n} {,...,

More information

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

LOGIC AND SET THEORY - HOMEWORK Question 1. n + 1 Unknown - either n or n 1, depending on whether { } A LOGIC AND SET THEORY - HOMEWORK 1 OHAD LUTZKY, MAAYAN KESHET 1. Question 1 In the order A B, A B, A B =, Yes, no, yes No, yes, no Yes, no, yes Same as 1 Yes, no, yes No, yes, no 2. Question 2 n 0 n + 1

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

Cardinality and ordinal numbers

Cardinality and ordinal numbers Cardinality and ordinal numbers The cardinality A of a finite set A is simply the number of elements in it. When it comes to infinite sets, we no longer can speak of the number of elements in such a set.

More information

(x 1, y 1 ) = (x 2, y 2 ) if and only if x 1 = x 2 and y 1 = y 2.

(x 1, y 1 ) = (x 2, y 2 ) if and only if x 1 = x 2 and y 1 = y 2. 1. Complex numbers A complex number z is defined as an ordered pair z = (x, y), where x and y are a pair of real numbers. In usual notation, we write z = x + iy, where i is a symbol. The operations of

More information

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS 1 Language There are several propositional languages that are routinely called classical propositional logic languages. It is due to the functional dependency

More information

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is 1. Describe the elements of the set (Z Q) R N. Is this set countable or uncountable? Solution: The set is equal to {(x, y) x Z, y N} = Z N. Since the Cartesian product of two denumerable sets is denumerable,

More information

Relations MATH Relations. Benjamin V.C. Collins, James A. Swenson MATH 2730

Relations MATH Relations. Benjamin V.C. Collins, James A. Swenson MATH 2730 MATH 2730 Benjamin V.C. Collins James A. Swenson among integers equals a = b is true for some pairs (a, b) Z Z, but not for all pairs. is less than a < b is true for some pairs (a, b) Z Z, but not for

More information

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

Today. Binary relations establish a relationship between elements of two sets Today Relations Binary relations and properties Relationship to functions n-ary relations Definitions Binary relations establish a relationship between elements of two sets Definition: Let A and B be two

More information

At least one of us is a knave. What are A and B?

At least one of us is a knave. What are A and B? 1. This is a puzzle about an island in which everyone is either a knight or a knave. Knights always tell the truth and knaves always lie. This problem is about two people A and B, each of whom is either

More information

Today s topics. Binary Relations. Inverse Relations. Complementary Relations. Let R:A,B be any binary relation.

Today s topics. Binary Relations. Inverse Relations. Complementary Relations. Let R:A,B be any binary relation. Today s topics Binary Relations Relations Kinds of relations n-ary relations Representations of relations Reading: Sections 7.-7.3 Upcoming Upcoming Minesweeper Let A, B be any sets. A binary relation

More information

1 Reducability. CSCC63 Worksheet Reducability. For your reference, A T M is defined to be the language { M, w M accepts w}. Theorem 5.

1 Reducability. CSCC63 Worksheet Reducability. For your reference, A T M is defined to be the language { M, w M accepts w}. Theorem 5. CSCC63 Worksheet Reducability For your reference, A T M is defined to be the language { M, w M accepts w}. 1 Reducability Theorem 5.1 HALT TM = { M, w M is a T M that halts on input w} is undecidable.

More information

1. Foundations of Numerics from Advanced Mathematics. Mathematical Essentials and Notation

1. Foundations of Numerics from Advanced Mathematics. Mathematical Essentials and Notation 1. Foundations of Numerics from Advanced Mathematics Mathematical Essentials and Notation Mathematical Essentials and Notation, October 22, 2012 1 The main purpose of this first chapter (about 4 lectures)

More information

Binary Relations Part Two

Binary Relations Part Two Binary Relations Part Two Outline for Today Recap from Last Time Where are we, again? A Fundamental Theorem What do equivalence relations do? Strict Orders Representing prerequisites. Hasse Diagrams Drawing

More information

CHAPTER THREE: RELATIONS AND FUNCTIONS

CHAPTER THREE: RELATIONS AND FUNCTIONS CHAPTER THREE: RELATIONS AND FUNCTIONS 1 Relations Intuitively, a relation is the sort of thing that either does or does not hold between certain things, e.g. the love relation holds between Kim and Sandy

More information

Linear Algebra March 16, 2019

Linear Algebra March 16, 2019 Linear Algebra March 16, 2019 2 Contents 0.1 Notation................................ 4 1 Systems of linear equations, and matrices 5 1.1 Systems of linear equations..................... 5 1.2 Augmented

More information

14 Equivalence Relations

14 Equivalence Relations 14 Equivalence Relations Tom Lewis Fall Term 2010 Tom Lewis () 14 Equivalence Relations Fall Term 2010 1 / 10 Outline 1 The definition 2 Congruence modulo n 3 Has-the-same-size-as 4 Equivalence classes

More information

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School Basic counting techniques Periklis A. Papakonstantinou Rutgers Business School i LECTURE NOTES IN Elementary counting methods Periklis A. Papakonstantinou MSIS, Rutgers Business School ALL RIGHTS RESERVED

More information

Connection MATH Connection. Benjamin V.C. Collins, James A. Swenson MATH 2730

Connection MATH Connection. Benjamin V.C. Collins, James A. Swenson MATH 2730 MATH 2730 Benjamin V.C. Collins James A. Swenson Traveling Salesman Problem Image: Padberg-Rinaldi, 1987: 532 cities http://www.tsp.gatech.edu/data/usa/tours.html Walks in a graph Let G = (V, E) be a graph.

More information

Chapter12. Relations, Functions, and Induction

Chapter12. Relations, Functions, and Induction . Relations. Functions. Seuences.4 Mathematical Induction.5 Recurrence Relations Chapter Review Chapter Relations, Functions, and Induction In this chapter we introduce the concepts of a relation and a

More information

Notes for Science and Engineering Foundation Discrete Mathematics

Notes for Science and Engineering Foundation Discrete Mathematics Notes for Science and Engineering Foundation Discrete Mathematics by Robin Whitty BSc PhD CMath FIMA 2009/2010 Contents 1 Introduction 1 1.1 The Laws of Arithmetic....................... 2 2 Polynomial

More information

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics MATH10111 - Foundations of Pure Mathematics 9 RELATIONS 9.1 Reflexive, symmetric and transitive relations Let A be a set with A. A relation R on A is a subset of A A. For convenience, for x, y A, write

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

Solving Systems of Linear Equations

Solving Systems of Linear Equations LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

More information

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations Page 1 Definitions Tuesday, May 8, 2018 12:23 AM Notations " " means "equals, by definition" the set of all real numbers the set of integers Denote a function from a set to a set by Denote the image of

More information

2. Prime and Maximal Ideals

2. Prime and Maximal Ideals 18 Andreas Gathmann 2. Prime and Maximal Ideals There are two special kinds of ideals that are of particular importance, both algebraically and geometrically: the so-called prime and maximal ideals. Let

More information

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

COMP 182 Algorithmic Thinking. Relations. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Relations Luay Nakhleh Computer Science Rice University Chapter 9, Section 1-6 Reading Material When we defined the Sorting Problem, we stated that to sort the list, the elements

More information

Discrete Mathematics. 2. Relations

Discrete Mathematics. 2. Relations Discrete Mathematics 2. Relations Binary Relations Let A, B be any two sets. A binary relation R from A to B is a subset of A B. E.g., Let < : N N : {(n,m) n < m} The notation a R b or arb means (a,b)îr.

More information

Set theory. Math 304 Spring 2007

Set theory. Math 304 Spring 2007 Math 304 Spring 2007 Set theory Contents 1. Sets 2 1.1. Objects and set formation 2 1.2. Unions and intersections 3 1.3. Differences 4 1.4. Power sets 4 1.5. Ordered pairs and binary,amscdcartesian products

More information

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

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................

More information

What are relations? f: A B

What are relations? f: A B What are relations? Ch 9.1 What are relations? Notation Informally, a relation is a set of pairs of objects (or in general, set of n-tuples) that are related to each other by some rule. We will focus first

More information

Lecture 3: Sizes of Infinity

Lecture 3: Sizes of Infinity Math/CS 20: Intro. to Math Professor: Padraic Bartlett Lecture 3: Sizes of Infinity Week 2 UCSB 204 Sizes of Infinity On one hand, we know that the real numbers contain more elements than the rational

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Relations --- Binary Relations. Debdeep Mukhopadhyay IIT Madras

Relations --- Binary Relations. Debdeep Mukhopadhyay IIT Madras Relations --- Binary Relations Debdeep Mukhopadhyay IIT Madras What is a relation? The mathematical concept of relation is based on the common notion of relationships among objects: One box is heavier

More information

Cartesian Products and Relations

Cartesian Products and Relations Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) : (a A) and (b B)}. The following points are worth special

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 3 CHAPTER 1 SETS, RELATIONS, and LANGUAGES 6. Closures and Algorithms 7. Alphabets and Languages 8. Finite Representation

More information

MA554 Assessment 1 Cosets and Lagrange s theorem

MA554 Assessment 1 Cosets and Lagrange s theorem MA554 Assessment 1 Cosets and Lagrange s theorem These are notes on cosets and Lagrange s theorem; they go over some material from the lectures again, and they have some new material it is all examinable,

More information

Math 300: Final Exam Practice Solutions

Math 300: Final Exam Practice Solutions Math 300: Final Exam Practice Solutions 1 Let A be the set of all real numbers which are zeros of polynomials with integer coefficients: A := {α R there exists p(x) = a n x n + + a 1 x + a 0 with all a

More information

106 CHAPTER 3. TOPOLOGY OF THE REAL LINE. 2. The set of limit points of a set S is denoted L (S)

106 CHAPTER 3. TOPOLOGY OF THE REAL LINE. 2. The set of limit points of a set S is denoted L (S) 106 CHAPTER 3. TOPOLOGY OF THE REAL LINE 3.3 Limit Points 3.3.1 Main Definitions Intuitively speaking, a limit point of a set S in a space X is a point of X which can be approximated by points of S other

More information

Chapter 1: Introduction to Vectors (based on Ian Doust s notes)

Chapter 1: Introduction to Vectors (based on Ian Doust s notes) Chapter 1: Introduction to Vectors (based on Ian Doust s notes) Daniel Chan UNSW Semester 1 2018 Daniel Chan (UNSW) Chapter 1: Introduction to Vectors Semester 1 2018 1 / 38 A typical problem Chewie points

More information

Week 4-5: Generating Permutations and Combinations

Week 4-5: Generating Permutations and Combinations Week 4-5: Generating Permutations and Combinations February 27, 2017 1 Generating Permutations We have learned that there are n! permutations of {1, 2,...,n}. It is important in many instances to generate

More information

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

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 BADHAN ACADEMY OF MATHS 9804435 CONTACT FOR HOMETUTOR, FOR th 2 th B.B.A, B.C.A, DIPLOMA,SAT,CAT SSC.2 RELATIONS CHAPTER AT GLANCE. RELATIONS : Let A and B be two non- empty sets. A relation from set A

More information

Solutions Parabola Volume 49, Issue 2 (2013)

Solutions Parabola Volume 49, Issue 2 (2013) Parabola Volume 49, Issue (013) Solutions 1411 140 Q1411 How many three digit numbers are there which do not contain any digit more than once? What do you get if you add them all up? SOLUTION There are

More information

ABOUT THE CLASS AND NOTES ON SET THEORY

ABOUT THE CLASS AND NOTES ON SET THEORY ABOUT THE CLASS AND NOTES ON SET THEORY About the Class Evaluation. Final grade will be based 25%, 25%, 25%, 25%, on homework, midterm 1, midterm 2, final exam. Exam dates. Midterm 1: Oct 4. Midterm 2:

More information

The complex projective line

The complex projective line 17 The complex projective line Now we will to study the simplest case of a complex projective space: the complex projective line. We will see that even this case has already very rich geometric interpretations.

More information

Scott Taylor 1. EQUIVALENCE RELATIONS. Definition 1.1. Let A be a set. An equivalence relation on A is a relation such that:

Scott Taylor 1. EQUIVALENCE RELATIONS. Definition 1.1. Let A be a set. An equivalence relation on A is a relation such that: Equivalence MA Relations 274 and Partitions Scott Taylor 1. EQUIVALENCE RELATIONS Definition 1.1. Let A be a set. An equivalence relation on A is a relation such that: (1) is reflexive. That is, (2) is

More information

A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B

A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B Subsets C-N Math 207 - Massey, 71 / 125 Sets A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A x A x B A B means A is a proper subset of B

More information

Sets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125

Sets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125 Subsets Sets A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A x A x B A B means A is a proper subset of B A B but A B, so x B x / A Illustrate

More information

CITS2211 Discrete Structures (2017) Cardinality and Countability

CITS2211 Discrete Structures (2017) Cardinality and Countability CITS2211 Discrete Structures (2017) Cardinality and Countability Highlights What is cardinality? Is it the same as size? Types of cardinality and infinite sets Reading Sections 45 and 81 84 of Mathematics

More information