Professional Documents
Culture Documents
Discrete Mathematics: 2. Relations
Discrete Mathematics: 2. Relations
Discrete Mathematics: 2. Relations
2. Relations
Binary Relations
• Let A, B be any two sets.
• A binary relation R from A to B, written (with signature)
R⊆A×B, is a subset of A×B.
− E.g., let < : N×N :≡ {(n,m) | n < m}
• The notation a R b or aRb means (a,b)∈R.
− E.g., a < b means (a,b)∈ <
• If aRb we may say “a is related to b (by relation R)”, or
“a relates to b (under relation R)”.
• Theorem:
1. (R1∪R2)-1=R1-1∪R2-1
2. (R1∩R2)-1=R1-1∩R2-1
• Theorem:
Let R be a relation on a set A, i.e. R⊆A×A, and IA be a
identity relation on a set A. (IA={<x,x>|x∈A})
1. R is reflexive iff IA⊆R
2. R is irreflexive iff IA∩R= ∅
3. R is symmetric iff R= R−1
4. R is asymmetric iff R∩ R−1 = ∅
5. R is antisymmetric iff R∩ R−1⊆IA
6. R is transitive iff RoR⊆R
Edge set EG
(blue arrows)
Susan Mary Sally Joe Susan
Joe 1 1 0
Fred Mary
Fred 0 1 0
Mark Sally
Mark 0 0 1
Node set VG
(black dots)
Reflexive: Irreflexive: Symmetric: Antisymmetric:
Every node No node Every link is No link is
has a loop has a loop bidirectional bidirectional
• Examples :
− “Strings a and b are the same length.”
− “Integers a and b have the same absolute value.”
− “Real numbers a and b have the same fractional part
(i.e., a − b ∈ Z).”
− “Integers a and b have the same residue modulo m.”
(for a given m>1)
• Theorem:
− Let R be an equivalence relation on a set A.
Then
1. x∈[x]R , for all x in A.
2. if <x, y> ∈R, then [x]R=[y]R
• Theorem:
1. Let R be an equivalence relation on a set A.
If <x, y> ∉R then [x]R∩ [y]R = ∅
• Definition:
− Let R be an equivalence relation on a set A, then
A/R= {[x]R|x∈A} is called a quotient set of A
modulo R.
• Theorem:
− Let R be an equivalence relation on a set A, then
the quotient set of A modulo R is a partition of
A.
• Theorem:
− Let A be a set. Let Π= {A1, A2, …, An } be a partition A
and RΠ be the relation induced by the partition Π.
Then, RΠ is an equivalence relation on A.
• Theorem:
− Let Π and Π' be two partitions of a nonempty set A
and let RΠ and RΠ' be the equivalence relations
induced by and Π and Π' respectively. Then Π'
refines Π if and only if RΠ'⊆RΠ.
• Definition :
− If (S, ≤) is a poset and every two elements of S are
comparable, (S, ≤) is called a totally ordered or
linearly ordered set, and ≤ is called a total order
or linear order. A totally ordered set is also called
a chain.
Discrete Mathematics, Winter 2008 31
Partial Orderings
• Theorem:
− Let < A, ≤ > be a poset and B ⊆ A. if a and b
are greatest(least) elements of B, then a=b
• Definition:
− Let < A, ≤ > be a poset and B be a subset of A.
1. An element a ∈ A is an upper bound for B iff for
every element a'∈ B, a' ≤a.
2. An element a ∈ A is a least upper bound (lub)
for B iff a is an upper bound for B and for every
upper bound a' for B, a ≤a'.
• Definition:
− Let < A, ≤ > be a poset and B be a subset of A.
1. An element a ∈ A is a lower bound for B iff for
every element a'∈ B, a≤a'.
2. An element a ∈ A is a greatest lower bound
(glb) for B iff a is a lower bound for B and for
every lower bound a' for B, a'≤a.
• Theorem:
− Let < A, ≤ > be a poset and B ⊆ A.
If a least upper bound (a greatest lower bound)for B
exists, then it is unique.
• Theorem:
Let <L, ≤> be a lattice. If x*y (x+y) denotes the glb (lub) for
{x,y}, then the following holds.
For any a, b, c∈ L,
(i) a*a=a (i') a+a=a (Idempotent)
(ii) a*b=b*a (ii') a+b=b+a (Commutative)
(iii) (a*b)*c= a*(b*c) (iii') (a+b)+c= a+(b+c) (Associative)
(iv) a*(a+b)=a (iv') a+(a*b)=a (Absorption)