Maths Tutorial Topic 10
Maths Tutorial Topic 10
General instructions
Submit all exercises to Gradescope (individual submission).
https://www.gradescope.com/courses/851149
INF1003 Mathematics I
1. Let 𝑀𝑅 be the matrix of a relation 𝑅 defined as follows:
1 0 1 0
1 1 0 1
𝑀𝑅 = ( )
1 1 1 0
1 1 0 1
2. For the relation 𝑅 on the set 𝐴 = {1, 2, 3, 4}, check whether it is reflexive, symmetric,
anyisymmetric or transitive (and explain).
𝑅: {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
3. For each of the following relations, represented as a directed graph, state if the relafion is
reflexive, symmetric, antisymmetric or transitive. For any property that does not hold, provide
an explanation.
a. b) c)
4. Which of these relations on the set of SIT students are equivalence relations and what are the
equivalence classes for these relations? Don’t forget to explain your answer.
INF1003 Mathematics I
MATHEMAICS I TOPIC IO : RELATIONS
DONE By : MOHAMED SHEFAN (2401029
1234
+
!
Y
M+ c =
(tuple no, column no .
R =
& (1 ,
17 ,
(1 33 , ,
(2 ,
17 ,
(2 ,
2) ,
(2 ,
4) ,
(3 , 13 ,
(3 ,
2) ,
(3 , 3) ,
(4 , 1) ,
(4 , 2) ,
(4 , 4)3
Reflective :
M
, , = 1 Maz = 1 Mys = 1 Max =
Symmetric :
Counterexample :
My = 1 E R
M,z = 0 R
Thus ,
this relation is NOT
symmetric .
Antisymmetric :
Counterexample :
Mz ,
= 1 E R
M ,3 = 1 E R
But (3 ,
17 # (1 ,
3)
Thus ,
this relation is NOT
Antisymmetric .
Transitive :
Counterexample :
My = 1 E R
Miz = 1 E R
But My s =
0 R
Thus ,
this relation is NOT transitive
.
REFLEXIVE
Counterexample :
However in this relation element [13 and 143 is not relation to itself
.
, a
Symmetrici
Counterexample :
(2 , 4) ER
, However (4 ,
2) &R .
Antisymmetric
Counterexample :
However, (2 5) ,
= (3 ,
2) .
Therefore ,
this relation is not
antisymmetrical .
Transitive :
Foreg .
(2 , 3) ER 1 (3 ,
43 ER (2 , 4) ER .
(2 4) is
,
indeed ER .
·
This relation is reflective as
every element in the relation is a relation to itself . A loop is present at all vertices in the
graph .
·
This relation is not
antisymmetrical as there exists bidirectional connections between elements .
This relation is transitive because arrows exists from a and and there exists from C to
to 2 2
to y
an arrow
y.
·
b
.
This
·
relation is not reflexive as
every element in the relation is not related to itself. No loop is
present in
any of the vertices in the graph .
·
This relation is not
symmetric as not
every element in the
graph have a bidirectional connection with another element in the relation .
This relation is not transitive because it is not the case such that when there exists an arrow from and from 2
X
to y an ar row
y
to
,
·
C .
·
This relation is not
symmetric as there exist a
peir of elements in the relation that do not have a bidirectional connection (c = d
,
d + a) .
This relation is not exists bidirectional connections between elements in the relation
antisymmetric as there
·
This relation is not transitive because it is not the case such that when there exists fromc from
y and
·
an ar row to an ar row
,
Lets take this relation as R
.
together.
Transitive property : Student A and Student Bare
taking a module
together. Student B and Student Care
taking a module
together.
However, that
does Student A and Student Care module Student Band Student C for
taking be
not mean that a
together as
may together
different module that Student A and Student Bare
taking together.
~
programme.
Transitive If student A and Student B and student B and Student Care
property : are
studying
in the same
programme studying in the same
[ Student a) =
[Student b] =
[Student C] : Estudenta ,
student b
,
student 13
( student 9) : [Student b] = Student a, student b3
I student 2] = E Student 23
~
Transitive property : GPA of a
being greater than or equal to GPA of b and GPA of b
being greater than or
equal to GPA of C means that GPA of a
,
is
to GPA c
greater than
.
or equal
This is not on
equivalence relation .
Lets take this relation as R4 .
,
,
~
Reflexive property : a minus
by itself will result in O which fells in between 0 .
5 and 0 .
5 .
Symmetric property
: If the difference between GPA of a andb falls within the
range [0
.
5
,
0 .
5) ,
the difference between b and a will
,
it does not mean that the difference between d and C falls within the
range of [-0 .
5
,
0 .
57 .
For eg . a = 3 5
.
b= 3 . 0 c = 2 5 . a -
b = 0 .
5 ( Ry b = = 0 5
.
ERy bu+ 2 =
c = 1 .
0 Ry
, ,
This relation .
is not an
equivalence
~
Symmetric Property : If student a is
taking the same number of academic credits as student b
,
then student b is also
taking the same
number of
This relation is an
equivalence relation .
6. Show that the “divides” relation on the set of positive integers is not an equivalence relation.
INF1003 Mathematics I
a
Yes ! Length of
strings in
any elements of R is the same
length
as itself . (a)-1(a) ER Ca ,
al ER for all
strings a
b .
I(b) = 1(a)(b , a) ER
C .
+ oo .
((a) = /(b) (a , b) ER I(b) = 1 (c) (b , c) ER (((a) = 1x) (a , CER
Since R is reflexive
, symmetric and transitive
,
R is an
equivalence relation .
of a particular length.
For example :
GA ,
B ,
C
,
,
D ,
. . .
3
Equivalence class for strings of lengtha would include all
strings with two characters .
(AA BB CC DD , , .B , , . . .
Reflexive : For
any positive integer a
a divides
by itself which
gives the result I . Hence , this relation is reflexive
Symmetric c. For
any positive integers a and b
,
the result of a - b
may not be the same as the result of b. 2 . Hence
,
this relation is not
symmetric. For
eg : (a , b) = (4 , 2) ER a = b = 4 = 2 = 2 b= a = 2 : 4 = but 2 =
Transitive :
For any positive integers & b and C even if the result of - b and biC is the same ,
it does not mean that the result of G C is the
, ,
same .
Hence ,
this relation is not transitive .
For eg : (9 . b) = (8 ,
4) ER 1 Ob ,
c) = (4 , 2) ER a = b = z = 4 = 2 b =c = 4 = 2 = 2 a + c = z = 2 = 4
However 2 #4.
8- 2 = 6 (6 is even 1 -
4 = -
3) =
3 is odd) 5 -
c -
3) = 2 (8 is even)
Hence ,
(8 , 2) AR Hence ,
(1 ,
47 E R Hence ,
(5 ,
-3) &R
air .
) (3 2 ,
3-2 = 1(lisodd)
Hence ,
(3 , 2) ER
b. (5 , n) ER
n 30 , 2 ,
4 , 6 , 83
3) ER is 2k for
C .
) (n ,
n an even number
,
let n = some
integer K.
n -
3 = 2k -
3
o f n -
3
Since ,
the result will
always be an odd number
,
1
for any (n 3) ER
even
integer n
, , .
this relation
Any integer m minus
by itself will result in O
,
which is an even number R . Hence
,
is not
reflexive
For
eg . (3 ,
3) ER
3- 3 = 0 (0 is even (