M122 Class Discussion Notes Chapter 8 Relations

Section 8.1 Relations and Their Properties

Section 8.3 Representing Relations 

Section 8.4 Closures of Relations  (Not covered this year)

Section  8.5  Equivalence Relations

.

Section 8.1 Relations and Their Properties

 

Properties of Relations

 Example:  Relationship "Divides" on the set of positive integers.


( since if a = nb and b = mc  then a = n(mc) = (nm)c

 

Combining Relations

Composite of R and S is the relation consisting of all ordered pairs (a,c) where both (a,b) is in R and (b,c) is in S.

 

Section 8.3 Representing Relations

Representing Relations with Matrices

 

a) symmetric: if the matrix is symmetric.

b) antisymmetric : if i is not equal to j and if aij = 0, aji must equal 1.

c) reflexive: if aii = 1 (i.e. all 1's on the main diagonal).

d) transitive: whenever aii = 1 and ajk = 1, then aik = 1.

 

Representing Relations using Digraphs (directed graphs).

 

a) symmetric: if there is an edge from ai to aj there is an edge from aj to ai.

b) antisymmetric : if i is not equal to j and if there is an edge from ai to aj there is not an edge from aj to ai.

c) reflexive: if every vertex has a loop.

d) transitive: if there is an edge from a to b and an edge from b to c, then there is an edge from a to c. Another way of expressing is that if there is a path form a to c then there is an edge from a to c.

 

Section 8.4 Closures of Relations

The smallest relation that contains R and is reflexive, which is R È {(a,a) | a Î A }

 

Transitive Closures of Relations

 

 

Section 8.5 Equivalence Relations

 

Equivalence Classes

 

Equivalence Classes and Partitions