Solution, Assignment #10, CSE 191
Solution, Assignment #10, CSE 191
Solution, Assignment #10, CSE 191
Fall, 2014
Solution
General Guidelines:
This assignment will NOT be collected, nor graded. There will be NO quiz based on
this assignment. However, there will be similar problems in Final exam. So you
should carefully complete this assignment as if it were to be graded.
(b): reflexive, symmetric, not antisymmetric, (a and b born in the same day. b and a also born
in the same day. But a might not be b), transitive.
(c): reflexive, symmetric, not antisymmetric, (a and b have the same first name. b and a also
have the same first name. But a might not be b), transitive.
(d): reflexive, symmetric, not antisymmetric,(a and b have the same grandmother. b and a also
have the same grandmother. But a might not be b), not transitive.
1
• R is not transitive: (2, 4) ∈ R (4, 2) ∈ R. But (2, 2) 6∈ R.
(d): • R is not reflexive: (1, 1) ∈
/ R.
• R is not symmetric: (1, 2) ∈ R, but (2, 1) ∈/ R.
• R is antisymmetric.
• R is not transitive: (1, 2) ∈ R and (2, 3) ∈ R, but (1, 3) ∈
/ R.
0 1 0
!
(a): MR1 ∪ MR2 = MR1 ∨ MR2 = 1 1 1
1 1 1
0 1 0
!
(b): MR1 ∩ MR2 = MR1 ∧ MR2 = 0 1 1
1 0 0
0 1 1
!
(c): MR2 ◦R1 = MR1 ⊙ MR2 = 1 1 1
0 1 0
1 1 1
!
(d): MR1 ◦R1 = MR1 ⊙ MR1 = 1 1 1
0 1 0
8. (0 point). For each of the relations represented by the following directed graph, determine
if the relation is:
(i) reflexive? (ii) symmetric? (iii) antisymmetric? (iv) transitive?
2
• It’s not symmetric since (a, b) ∈ R but (b, a) 6∈ R.
• It’s antisymmetric.
• It’s not transitive since (a, b), (b, c) ∈ R but (a, c) 6∈ R.
(iii): • It’s not reflexive since (a, a) 6∈ R.
• It’s not symmetric since (c, a) ∈ R but (a, c) 6∈ R.
• It’s not antisymmetric since (a, b) ∈ R and (b, a) ∈ R but a 6= b.
• It’s not transitive: (a, b) ∈ R and (b, a) ∈ R, but (a, a) 6∈ R.
d c
d c c
a b a b a
b
(2) (3)
(1)
(a): yes.
(b): yes.
(d): no, not transitive. a and b have met. b and c have met. It doesn’t imply a and c have
meet.
10. (0 point). Page 615, Problem 16. What are the equivalence classes of this relation?
reflexive: for any integer pair (a, b), ab = ba. So, ((a, b), (a, b)) ∈ R.
symmetric: for any two ordered pairs ((a, b), (c, d)) ∈ R, we have ad = bc ⇔ cb = da. It
implies ((c, d), (a, b)) ∈ R.
transitive: for any ((a, b), (c, d)) ∈ R and ((c, d), (e, f )) ∈ R, we have ad = bc ⇔ a/b = c/d and
cf = de ⇔ c/d = e/f . This implies a/b = e/f ⇔ af = be. This implies ((a, b), (e, f )) ∈ R.
[(a, b)]R = {(c, d) | ad = bc} = {(c, d) | a/bd = c/d}, which corresponds to the set of rational
numbers whose value is a/b.
For example: (2, 3)]R = {(2, 3), (4, 6), (6, 9), (8, 12) . . .}