Docsity

Binary Relations: Understanding Reflexivity, Symmetry, and Transitivity, Study notes of Chinese

Partial preview of the text

Download Binary Relations: Understanding Reflexivity, Symmetry, and Transitivity and more Study notes Chinese in PDF only on Docsity!

Binary Relations

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.

Studying Relationships

ā— 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.

Binary Relations

ā— 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.

Binary Relations and Graphs

ā— (^) 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

Binary Relations and Graphs

ā— (^) 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

Categorizing Relations

ā— 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.

An Intuition for Reflexivity

For every x ∈ A , the relation xRx holds.

Symmetry

ā— 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.

Transitivity

ā— 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.

An Intuition for Transitivity

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.

Closing the Loop

ā— 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 ↔!

Why This Matters

ā— 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!