MATH 302 Lecture 23
« previous | Monday, November 21, 2011 | next »
Relations
A relation from to : a subset of the combination of an element in with an element in where there are no restrictions.
Where is the Cartesian Product.
Relations on A
Special relation where
Ways to describe self-relations
- List ordered pair elements
- Directed graph where each vertex represents an element in and each directed edge connects the first element to the second element in each pair
- Zero-one matrices: first element represents row, second element represents column, write a 1 at each relation point.
- Rules:
Sample Relations
- greater than relation:
- Divisor relation:
- Modulo relation:
Properties
- reflexive
- for all ,
- wth a digraph, all vertices have a self-edge loop
- with a zero-one matrix, the diagonal is all 1s
- symmetric
- implies
- with a digraph, all edges are undirected.
- with a zero-one matrix, the matrix is diagonally symmetric
- transitive
- if and , then
- with a zero-one matrix, taking represents all of the positions you can reach with stops. In the transitive case,
- antisymmetric
- if and , then
- with a zero-one matrix, If there is a on one diagonal half, then on the opposite diagonal half
Equivalence Relations
An equivalence relation is a relation that satisfies the following properties:
- Reflexive
- Symmetric
- Transitive
Equality can be vague. With equivalence, we focus on certain characteristics
Partial Order Relations
A partial ordering is a relation that satisfies the following properties:
- Reflexive
- Transitive
- Antisymmetric
Partitions
A collection of subsets , , (equivalence classes) of a larger set such that
- (disjoint)
Equivalence Classes
For any , the equivalence class of is the set .
We call a representative of an equivalence class.
Equivalence clasess often carry the properties of the superclass
Examples
Let be the bit strings of length 3 or more such that two bit strings and have the same first and third bits. Show that this is a recurrence relation.
Proof:
- is reflexive since every bit string has the same first and third bits as itself
- is symmetric since if has the same first and third bits as , then has the same first and third bits as
- is transitive since if and , then their first and third bits are the same. Therefore,