






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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!