






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Binary relations, focusing on their properties of reflexivity, symmetry, and transitivity. Learn about different types of binary relations, their visualization through graphs, and the importance of these properties in categorizing relations.
Typology: Study notes
1 / 46
This page cannot be seen from the preview
Don't miss anything!







































Problem Set Two checkpoint due in the box up front if you're using a late period. Problem Set Two checkpoint due in the box up front if you're using a late period.
โ We have just explored the graph as a way of studying relationships between objects. โ However, graphs are not the only formalism we can use to do this.
โ Intuitively speaking: a binary relation over a set A is some relation R where, for every x , y โ A , the statement xRy is either true or false. โ Examples: โ < can be a binary relation over โ, โค, โ, etc. โ โ can be a binary relation over V for any undirected graph G = ( V , E ). โ (^) โก โ is a binary relation over โค for any integer k. โ We'll give a formal definition later today.
โ (^) We can visualize a binary relation R over a set A as a graph: โ (^) The nodes are the elements of A. โ (^) There is an edge from x to y iff xRy. โ Example: the relation a | b (meaning โ a divides b โ) over the set {1, 2, 3, 4} looks like this: 1 2 4 3
โ (^) We can visualize a binary relation R over a set A as a graph: โ (^) The nodes are the elements of A. โ (^) There is an edge from x to y iff xRy. โ Example: the relation a = b over {1, 2, 3, 4} looks like this: 1 2 4 3
โ Collectively, there are few properties shared by all relations. โ (^) We often categorize relations into different types to study relations with particular properties. โ (^) General outline for today: โ (^) Find certain properties that hold of the relations we've seen so far. โ (^) Categorize relations based on those properties. โ (^) See what those properties entail.
For every x โ A , the relation xRx holds.
โ In some relations, the relative order of the objects doesn't matter. โ Examples: โ If x = y , then y = x. โ (^) If u โ v , then v โ u. โ (^) If x โก โ y , then y โก โ x. โ These relations are called symmetric. โ (^) Formally: A binary relation R over a set A is called symmetric iff for all x , y โ A , if xRy , then yRx.
โ Many relations can be chained together. โ Examples: โ If x = y and y = z , then x = z. โ If u โ v and v โ w , then u โ w. โ (^) If x โก โ y and y โก โ z , then x โก โ z. โ These relations are called transitive. โ Formally: A binary relation R over a set A is called transitive iff for all x , y , z โ A , if xRy and yRz , then xRz.
For any x , y , z โ A, if xRy and yRz , then xRz.
xRy โก x and y have the same shape.
xRy โก x and y have the same color.
โ In any graph G = ( V , E ), we saw that the connected component containing a node v โ V is given by { x โ V | v โ x } โ What is the equivalence class for some node v โ V under the relation โ? [ v ] โ = { x โ V | v โ x } โ Connected components are just equivalence classes of โ!
โ Developing the right definition for a connected component was challenging. โ Proving every node belonged to exactly one equivalence class was challenging. โ Now that we know about equivalence relations, we get both of these for free! โ If you arrive at the same concept in two or more ways, it is probably significant!