0% found this document useful (0 votes)
186 views22 pages

Relations and Digraphs

Uploaded by

Sahil Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
186 views22 pages

Relations and Digraphs

Uploaded by

Sahil Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

EXERCISE I

A {a, b, C), B={P, 9, r), find, Ax B, BxA, A x A. Bx B


Ans.: A x B={{a, p) (a, q), (a, ), (6, P), (b, q),
(b, r), (c, p), (c, q). (G, r)}
BxA {(p, a), (q, a), (r, a), (p, b),. (q, b), (r, b).
(p, c) (q, c), (r, C)}
AxA {(a, a), (a, b), (a, c), (b, a), (b, b), (b, c), (c,
a) (c, b), (c,c)}
BxB {(p, p), (p, q). (p, ). (q. p). (9. g). (q, ). (r.
p) (r, q),(r, d}1
2. If A P. 9, S, t, u, v, W, x, y, z} and if
A P. g., r, S), A={u, v, x. Ag= t, u, V
As ={y, 2), As={ w, x, y, z}, As {P, 9, ,s, t, u}
(0which of (a) { A_, A2. As ). (b){ A, Ag. As )} is a partition of A ?
(i) which of (a) { Aq, A4, As). (b) { Az, A4, As) is a partition of A? Ans. b]
Ans.: b]
3. If z is the set of integers and if zo, Z1. Z2,
23 denote the subsets of z which when divided by
4leave the remainder 0, 1,2, 3 write the partition.
Ans. Zo =
{..-8, -4, 0, 4, 8, . , Z1 = -7, -3, 1,5, 9, . .
22{ -6, -2, 2, 6, 10, .., Z3 -5, -1, 3, 7, 11, . 1
4. Write all
partitions of A {1,2,3, 4)=

Ans.: [{1), {2). {3). {4}1. (1).(2,3, 4)1 12), 11,3,4}1


3). (1,2, 4)]1. 4).(1,2, 3)]. {1,2). (3, 4}1
1,3), (2, 4}1. (1,4), (2, 3)1. (1), 12). (3, 4)]
1,2), 13),. (4) ]. (1). 3). (2, 4}. (1, 3). (2), (4)1.
I1).14). (2, 4)1. (1,4), (2), (3)], I11,12), (3). 14} 1
There are in all 15 partitions.
(, .

EXERCISE I I

1. Lot A the sel of all positlvo integors. Let


the relation Rbe define
the following pairs belongto Ror not as "a Rbitt
3asb 1". Stato whether and onlt
(a) (2, 3). (b) (3, 2). (c) (3, 4). (d) (2, 5). (e) (4, 6), () (4, 11)
Ans.: (a) No, (5) No. (c)
No, (d) Yes, (e)
relation - {(1, 1), (2, 2). (2, 3) No
2 Draw digraph
the of the 3,2), (4, 2), 4
(M.U. 2006) [ Ans.: See adjoining figure.1 A)) on A={.2,31
3. Find the domain, range matrix and digraph of the following

relations
A {1, 2, 3, 4, 5) Band "a Rb, if and only if a b"
=

(a) =

(b) A = (1,2, 3, 6, 8) = Band "a Rbif and only if a is a multiple


of b
(c) A (3, 5, 6, 8) =
B and 'a Rbil and only if a « b".
Ans. (a) Domain = {1,2, 3, 4, 5), Range ={1, 2, 3, 4, 5)
Ans. for Ex. 2
1 2 3 4 5
11 0 00 0]
MR 3
2 0
0 01
1 0 0
0 0
0
8
40 0 01 0
50 0 0 0 1
(b) Domain = {1,2, 3, 6, 8), Range ={1,2,3, 6, 8)
12 3 6 8
11 0 0 0 0
21 1 0 0 0 3
MA 3 1 0 1 0 0
6 1 1 1 1 0
81 1 0 0 1

(c)Domain= (3,5, 6), Range =(5, 6, 8)


3 5 6 8
30 1 1 1
50 0 1 1 (3
R60 0 0
1 (6 8
80 0 0 0
pIscrele
MatH

3.
(a) Lot A {1,2,3, 4, 5) and
=

1 2 5
11 0
31 04
2 1 1 0

MA 3 0 1 10 1
4 0 0 11 0
50 0 0 1 1
1's in Ma and the
Also find the number of pairs in R and the number of
f i n dR an d its digraph.
ber
of arrow-heads in the digraph.
b, c, d, e) and
(b) Let A=a,
a b
a1 0 0
b0 0 1 0
MR C 1 0 0 1 0
d0 1 0 0
e0 11
its digraph.
Find A and
Ans.:(a) R= {(1, 1), (1, 3), (1, 5), (2, 1), (2, 2), (2,5)
(3, 2), (3, 3), (3, 5), (4, 3), (4,4), (5, 4), (5, 5))
The number pairs in R= the number of 1's in MA = the number of a

arrow-heads in digraph 13.


the

(b)R={(a, a). (a, d). (a, e), (b, o), (b, e), (¢, a), (c, d,
(d, b), (d, e). (e, b) (e, c)

4. From the igraph given below, find the relation R and its matrix Ma

(a) (b)

Ans. : (a) R= {(1,2), (1, 5), (2, 2), (2, 3), (3, 4), (4, 5). (5, 5))
3
1|0
1
21 o 0 1
2 0 1 1
1 0
Ma 3 0 0 0

4 0 0 00
50 0 o 0 1
EXERCISE III
1. Let A be a set with 12 distinct elements. Answer the following with justification
(a) How many different binary relations are there ?
(b) How many of them are reflexive ?
(c) How many of them are symmetric ?
(d) How many of them are reflexive and symmetric ? (M.U. 1996)
Ans.: (a) 2**, (b) 2 , (c) 28, (d) 28
2. Let A = {1, 2} write the power set P(A) of A. Write all relationsthat can be definedon A.A.
Find all reflexive relations, symmetric relations, reflexive and symmetric relations.
2ph
EXERCISE IV
1. Determine whether the relation A whose matrix Ma is given below is
is reflexive, syro
reflexive, symnetric
Justify your answer.

1 0 0 11 1 00 1 [1 1 0 1
0 1 1 O O1 1 O 1 0 0 0
(a)o 1 1 1 (b)o (c)
0 1
0 o 0 1 o
1 0 11 o 10 1 1 00 o
Ans. (a) Yes. MA is a square symmetric matrix with all diagonal elements unity. Refiav
and symmetric. (b) No. Mpis a square matrix with all diagonal elements unity but it is not symmeleive
Reflexive but not symmetric. (c) All diagonal elements are not unity. Not reflexive. But
But symmetric
symmetric
2, Determine whether the relation R whose digraph is given below is an equivalence relatin
n.
Justify your answer.

(a) (b)

each vertex and two vertices when connected are


Ans.: (a) Yes. There is a circle around
connected by two way lines. And there are vertices which form a triangle. (b) No. There is a circle
around each vertex but 5 is connected to 4 by a single line. ]
3. Determine whether the relation R on set A is an equivalence relation.

) A=(a, b, c, d)}
R={(a, a), (a, b), (b, a), (b, b), (c, d), (c, c), (d, c). (d, d)) (M.U. 2006)
(i) A= {1,2, 3, 4, 5)
R={(1, 1), (1,2), (1, 3), (2, 1), (2, 2) (3, 1). (2, 3). (3, 3), (4, 4), (3, 2), (5, 5))
(i) A= {1,2, 3, 4)
R=(1. 1). (1,2), (2, 1). (2, 2). (3, 1). (3, 3). (1, 3), (4, 2). (4, 4)
CV) A=the set of all triangles, a Rbif and only if a is similar to b.

[Ans.: (i) Yes, (i) Yes, (ii) No, (iv) Yes]


4.
Let A =
{a, b, c, d} and R
{(a, a), (a, b), (b, c), (c, d)}. Find R
Ans.: F {(a, a), (a, b), (b, c), (a, c), (c, d), (b, d), (a, d)}|
=

5. If
R=(1,2).(2, 3). (3,3), (3, 4), (4,3). (4, 5), (4, 1), (6, 4),
1, (i) all paths ot length 3 starting from the (1,6)). Find (i) all paths of lengu
vertex 2, (ii) a cycle starting at vertex 2.
(Ans.: (i)
(i)
1,2;1,6;2,3;3,3;3,
2,3, 4;4,3;4,5;4,1 ;6,4.
3,3;2,3, 3, 4;2,3, 4, 3; 2,3, 4, 5;2,3, 4, 1.
(ii) 2, 3, 4, 1,2.1
6. Let R be the relation whose digraph is given in adjoiningfigure.
()List all paths of length 3 starting from p.
(i) Find a cycle starting from s.
Ans. () p. r S, rp,r, s, qip, r,t, u
P, q, q, 9p. q, 9, up. q. u, s.
(ii) s, q u, ss, r s .
Co
c
S
- o oo,
1 23 4
0 11 0 1
1 0 1 1 0 0
(c) 01 1 1
O
30 1 0 0 (d)o 0 1

1 0 0 1 (b) None
4 1 1o 0 antisymmetric,
transitive.

not asymmetric,
reflexive, not symmetric,
AnS. (a) Reflexive, symmetric. irreflexive, symmetric,
asymmetric
(C) Irreflexive, symmetric (d) set A is reflexive,
relation Aon the
whether the
4. Determine
Where A
4).
=
{1, 2, 3,
antisymmetric transitive.

(b)
(e)

-
not reflexive,
not irreflexive, notsymmetric, not
asymmetric,
transitive. (b)
[Ans.: (a) irreflexive, transitive. ]
antisymmetric, not
asymmetric, not which is
a relation
2, 3). Give an example of transitive. (ii) Reflexive,
5. Let A {1,
=
symmetric but not
Reflexive, Reflexive but neither
and transitive. (ii)
(i) Reflexive, symmetric (iv) Symmetric, transitive but not reflexive. (v) Transitive but neither
symmetric. reflexive. (vii)
transitive but not neither transitive nor
(vi) Symmetric but Symmetric but not
transitive. nor transitive. (ix)
symmetric nor reflexive, nor symmetric,
reflexive nor symmetric.
(vii) Neither (xi) Neither symmetric
nor antisymmetric.
and anti-symmetric.
ant-symmetric. (x) Symmetric
transitive but not antisymmetric.
(xll) Symmetric, 3), (3, 2))
(2, 2), (3, 3), (1, 2), (2, 1), (1, 3), (3, 1). (2,
[Ans.: ) A={(1, 1),
(3, 3))
(i) A= {(1, 1), (2, 2).
(3, 3), (1, 2))
(ii) R={(1, 1), (2, 2),
(1,2). (2, 1))
(iv) A={(1, 1). (2, 2).
3). (1, 3), (3, 2))
() A={(1, 1), (2, 2). (3,
3). (3, 2))
(vi) R= {(1, 2), (2, 1). (2,
2). (1, 3). (3, 2))
(vii) A= {(1, 1), (1, 2), (2,
(vii) R= {(1, 2). (3, 1)) (ix) A= {(1, 2), (2, 1)}
(x) A {(1, 1), (2, 2)) (xi) A= {(1, 1). (1, 3), (3, 2), (2, 3)}
(xi) R= {(1, 2), (2, 1). (1, 1))
the relations to convince yourself.)] |
are advised to draw digraphs and also write matrices of
(You
relation giving proper justification.
6. Determine the nature of the following of
on the set of lines in Euclidean plane. (ii) The relation
(9 The relation of perpendicularity of positive
relation "is greater than" on the set
division on the set of positive integers. (ii) The
are positive integers. (v)
The relation of "being
integers. (iv) The relation x+ y= 16 where x and y
disjoint "on the power set of A having at least three elements.
transitive not antisymmetric.
[Ans.: (0 Symmetric if a l bthen bi a; but not reflexive, not
b;
(i) Reflexive, 3 divides 3; antisymmetric, if a divides b and b divides a then
a =

sitive, but not symmetric.


(tii) Transitive, if X> y and y> zthen x> z; not
but 2 3,is anti-symmetric if x> and y reflexive,x2 2;not symmetric 3 > 2
y >x then = N.
iv) Not reflexive as 1+1 # 16is symmetric;is not transitive
e.g. 4 + 12 16, 12+4
=
16, but 4 416; not antisymmetric e.g. 6+ 10 16, 10+6
=16 but 10 *6.
(v) Not reflexive as AnA#¢; symmetricif An B=o, BnA= not transitive as A
nB=0, BnC=d does not imply AnC=0;not anti-symmetric.
7. In a set of natural numbers, prove that the relation R defined
by x R yif x*- 5xy+4 = 0
is reflexive not symmetric and transitive.
EXERCISE-V
1. ltA and B given below and R and S are the relations given then compute () R,
are as
(i) RnS, (ii) Ru S, (iv) S.
(a) A = B= {1,2,3 (b)A {a, b, c), B= {1,2,3)
=

R={(1, 1), (1,2). (2,2), (3, 1)) R {(a, 1). (a, 2). (b, 1), (c, 1). (c, 2))
S= {(1, 2), (2, 2), (2, 3), (3, 2)) S {(a, 1),. (a, 3), (b, 2), (c, 1), (c, 3))
D i s c r e t e Waunt Helations ana 1graphs

(a) A= (1,3), (2,1).(2, 3), (3, 2), (3, 3))


Ans.:
RoS={(1,2), (2, 2)}
RUS {(1, 1), (1,2), (2, 2). (3, 1). (2, 3), (3, 2))
s {(2, 1). (2, 2), (3, 2), (2, 3))
D) = (a, 3). (b, 2), (b, 3), (c, 3))
RnS {(a, 1), (c, 1)}
RuS {la, 1), (a, 2), (6, 1, (c, 1), (c, 2), (a, 3), (b, 2), (c, 3))
s=((1, a), (3, a), (2, b), (1, c), (3, c)}]
2. The digraphs of relation R and S are as follows. Compute R, RnS, RuS, S

()

(R) (S) (R) (S)


rAns.:(a) R={(1,2). (1, 3), (2, 2), (2, 3), (3, 4), (4, 4), (4, 1)}
R= ((1, 1),(1,4). (2, 1), (2,4), (3, 1), (3,2),(3,3),(4, 2), (4,3)
S {(1, 1), (1,2), (2, 2), (2, 3), (2, 4). (3, 2), (3, 4), (4, 1))
RoS {(1, 2), (2, 2), (2, 3), (3, 4), (4, 1)}
RuS={(1, 1), (1,2), (2,2), (2, 3), (2, 4), (3, 2), (3, 4), (4, 1), (1, 3), (4, 4))
s={(1, 1), (2, 1), (2, 2),. (3, 2), (4,2). (2,3), (4, 3), (1,4)}
(b) R={la, a), (a, b), (a, c), (b, a), (b, c), (c, e), (d, a)
S ((a. b), (a, o), (c, a), (c, d), (d. a), (d, d))
R ((b, b), (b, d). (d, b). (d, c),(d, d))
RnS= {(a, b). (a, c), (d, a))
RUS={(a, a), (a, b), (a, ). (b, a), (b, ©), (c, ©), (d, a), (c, a), (c, d), (d, d))
S={(b, b), (d, b), (c, d), (d, d)}]
3. Let A {1,2, 3, 4) and B {1, 2, 3).
Let R, S be the relation defined from A to
= Bwhere
matrices are given below. Compute S, RnS, AUS, R
1 0
1 0
1 0 Ms101 1
(a) Ma 0 1 0 g 1 0 0
0 1 1 0 1 1
1 0 0
101 1
0 0
(b)MA1 0 1, Ms1 0 0
1 1 1
0 1 0]
(3, 3), (4, 1)}
Ans.: (a) S {(1. 1). (1, 3), (2, 1), (3, 2),
=

RnS ={(1,2), (2, 3), (4,2), (4, 3))


1))
(3, 2), (4, 2), (4, 3), (2, 2). (3,
HuS =
{(1, 1), (1, 2), (2, 1), (2, 3),
2). (2, 3), (2, 4), (3, 4))
R ={(1, 1), (2, 1). (1, 2). (3,
I

N
o o o o
o

o
O o o

o o o o
EXERCISE VII
th
. Findte reflexive closure of each of the
following relations defined on A ={(a, b, c).
( (a, b)) (i) ((b, a), (c, b))
(ii) ((a, a), (a, b)}
(iv) {(a, b), (a, c), (b, c)} (){(a, b),. (b,
b), (b, c), (c, a))
Ans.: (i) {(a, b), (a, a), (b, b), (c, c (ii) {(a, a), (b, b). (c, c), (b, a), (c, b)}.
(ii) (a, a), (a, b), (b, b), (c, c)}, (iv) ((a, b), (a, c), (b, c), (a, a), (b, b), (c, c)},
(v)((a, b), (b, b), (b, c), (c, a), (a, a), (c, c)}]
Find the symmetric closures of the relations defined on A {a, =
b, c) and as given above in

Ex. 1.
Ans. () {a, b), (b, a)), (ii) {(b, a),. (a, b), (b, c), (c, b)}.
(ii) ((a, a),. (a, b), (b, a). (iv) {(a, b),. (b, a), (a, c), (c, a), (b, c), (c, b)}.
() {(a, b), (b, a), (b, b), (b, o). (c, b), (c, a), (a, c)}1
EXERCISE VIIIL
1. Find the transitive closure of each
of the following relations defined on A =fp. a.
(a) {(p, q). (9. p)) (b) (p. q). (q, n. (t. (c){(g. P). (g. n, (r, q)
(d) ((p. P). (P. ). (g, . (t, P} (e){(P. 9). (9. P). (q. )
Ans.: (a) {(p, q), (q, p). (p. p). (q. g)}
(b) {(p. q). (9, ). (p, d. (. p). (P. P). (4. P). (, 9)}
(c) ((a. P). (q. . (t, o). (a. o). (. ). (, P))
(d) {(P. p), (p, ). (q, d. (G, p), (P. P). (9. p). (r, r)}
(e) {(p. p). (p, 9), (p, ), (g. P). (g. 9). (g. }]
2. The following the matrices of the relations defined
are on a set A {a, b, c). Find th
transitive closures of these relations and their matrices.

o 1 1 o 1 0 1 0 1
(a)0 0 1 (b)0 11 (c)0 0 1
1 01 1
[Ans.: (a) A ={(a, b), (a, c), (b, c)
o 1 1
MR, =0 0 1
(a, a). (a, b), (a, c). (b, a),. (b,
(b) Ra
=

b), (b, c). (c, a). (c, b). (c,


c)}
11
MR, 1 11
1 11
Rg {(a, a), (a, c), (c, b). (c, c), (a, b), (b, b)).
11 1
MR, -0 1 0
0 11
transitive closures of the relations
Find the

091, 2). (2, 1). (2, 3)) on A ={1,2,3)


(i) . 1). (1,a2).(1, 3). (2, 1), (2, 2), (2, 3)) on A= {1, 2,3, 4)
) -(1,2), (2, 1), (2, 3), (3, 4))
Ans
A={(1, 1), (1,2). (1, 3). (1,4). (2, 1), (2, 2), (2, 3), (2, 4), (3, 4)]. 1
.4. Find the
transitive closures of the
following relations defined on A {a, b, c, =

a), (a, b), (a, o), (6, a), (c, b), (c, c), (d, b), (d,
d}.
RE {(a.
c), (d, d)
E Ro {(a, a), (b, b), (6, o), (c, b), (c, d), (d, b), (d, d)}
.ns.:
Ans. (0 ((a, a), (a, b), (a, c), (a, d), (b, a), (b, b), (b, c), (b, o),
(c, a),
(c, b), (c, c), (c, d), (d, a), (d, b),
(d, c), (d. d)
(i)(a, a), (b, b). (b, d). (c, b), (c, d), (d, b). (d, d)}]
Find the transitive closure of the relations A and R2 defined on A
{1, 2,3, 4).
0 A=(1,2), (2, 2), (2, 4), (3, 2), (3, 4), (4, 1), (4, 3))
6)Ra= (1, 3), (1, 4), (3, 2). (3, 3), (3, 4))
[Ans.: 0) AxA, (i) {(1,2), (1,3), (1,4), (3, 2). (3, 3), (3,
4))1
6. Find the transitive closure of the following relation defined on A
generalise the result?
{1,2, 3, 4, 5, 6). Can you
=

R=(1,2). 2, 3). (3, 4). (4, 5), (5, 6), (6, 1))
ns. :
AxA; Yes. If R {(1,2). (2, 3),(n-1, n), (n, 1),
=

then its transitive closure is AxA.]


7. Find the transitive closures of the following relations using Warshall's
algorithms.
1 00 1 10
01
1 10 0 0 1 1
0 O0011 0 (M.U.2007, 12) () 1100 (M.U. 2005)
100 1
1 0 0 1 100 1
1 1 0 0 01 1 0
Ans.:a)lo 0 1
0 (6)0 1 1 0
0 00 1 100 1
. Find the transitive closure of R {(a, a), (a, b), (b, c), (c, d), (c, c), (d, e)} using Warshall's
algorithms. (M.U. 2004)
TAns.: ((a, a), (a, b), (b, c), (c, d), (c, c), (d, e), (a, c), (a, d), (a, e), (b, d). (b, e), (C, e)} ]
3-80) 9raphg

9.
ind the transitive closure of R= ((a, a). (a, d). (b, b), (c, d), (c, e), (d, a), (0, b), (o,
(e, ,e))
o)}
Ans.: (a, a). (a, d). (b, b), (c, a), (c, b), (c, d), (c, e). (d, a). (d, b), (d(d, e)|
e)
T0. Find the transitive closure of R= ((a, b). (a, o), (c, b), (E, d), (0, , (e, c)}
Ans. : {(a, b), (a, c). (a, d). (a, e). (b, b). (b, c). (b, d). (b, e). (c, b), (C, C),
(e, d), (e, e))
e), (d, b), (d, c). (d, d). (d, e), (0, b), (0, C), .

(c, d). (c,


whose matrix IS
. Let A ={a, b, c, d, el and let Rbe the relation
1 0 0 1 1

0 0 1 0 1

1 1 0 0
MA 1
0 1 1 0 0
0 0 1 0 1
closure of A
(M.U. 2007)
Find the symmetric
(0, c), (0, o)]
(a, d). (a, e). (b, c), (b, e). (c, a), (c, b). (¢, c), (d, b), (d, o),
[ Ans. : R=
{(a, a).
e). (e, a). (b, c). (c, b), (b, e), (e, b), {c, a), (a, c), (c, c), (d, b).
(a, a), (a. d). (d. a). (a,
(b, d), (d c), (c, d). (e, o), (c, o), (0, e))
Aand S be relations on A
defined by
12. Let A =
{1, 2, 3, 4) and
0 0 0 1 [1 1 0 0
0 1 0 0
o 0 and 0 0
Ma o 1 0 0 Mslo o 1
O
o01 0 0 10 0
closure of Au S. (M.U. 2007)
Use Warshall's algorithm to compute the transitive
[1 10 1
0 1 0 0
Hint: MAUs 0 1 1 0
0 1 1 1
[1 0 0 1 0
10 0 0

13. 1f A= {a, ap, a, 24. as} and MA 0


= 0 01 1. Findthe transitive closure of R.
1 0 0 0 0
0 1 0 0 1
100 1 0
0 10 0 0
(M.U.2001) [Ans.: W =1 1 0 1 1
10 0 1 0
0 10 0 1
EXERCISE IX
S be the relations on A given by
1. Let A (a, b, c. d] and let R and
o 0 0 1 1 10 0
0 0 0 0 01 0 0
MR = 0 1 0 o Mslo 0 1 0
0 1 0 1

Find the transitive


closure of Ru Sby Warshall's algorithms.
: ((a, a), (a, b). (a, c), (a,
d), (b, b), (C, b), (¢, ©), (d, b), (d, o), (d, d)} ]
[ Ans.
relation containing R and S, who re
of the smallest cquivalence
2. Compute the matrix
10 0 0 0 11 1 11
11 100 0 1 1 1 0 11 1 1 1
1 1 1 0 0
1 11 0[Ans.: 1 1 1 1 1
Mg 1 1 1 0 0.Ms =0
1 1 1 11|
0 0 0 1 1 0 11 1
0 0 0 0 1 1 11 1 1
0 0 0 1 1
smallest equivalence
relation containing the two equivalences R and S given
3. Find the
the set A {1, 2, 3, 4, 5).
=

below and defined on


1 1 0 0 0 1 0 0 0 0
10 0 0 0
0 10 0 0
0 1 1 0 0 1 10 0
0 10 0 [Ans. :0 0 1 0 0
MR 0 1 10 0, Ms =0 0 0 0 1 0
0 00 1 1 0 0 0 1 0
0 0 0 0 1
0 0 0 1 1
MISCELLANEOUS EXERCISE
the following properties.
relation R on A {1,2, 3) having =

example of each of the


1. Give one

) Ais transitive but not symmetric. (M.U. 1997)


transitive.
(i) Ris symmetric but not
) Ais both symmetric and antisymmetric.
(iv) R is neither symmetric nor antisymmetric.
Ans.:() (2,3), (3, 1). (2, 1). (ii) {(2, 3), (3, 2), (1, 1)}
(i) (12, 3),13, 2), (iv) ((1,2), (2, 3)}
2. Define a relation on the set (a, b, c, d} that is
) reflexive, symmetric but not transitive.
Gi) reflexive, transitive but not symmetric.
(i) transitive, reflexive and symmetric.
(iv) symmetric and transitive. (M.U. 2007)
Ans.: ){(a, a), (b, b), (c, c), (d, d)}
(i) (la, a), (b, b), (c, c), (d, d), (a, b), (a, c), (b, ©)}
(ii) {la, a). (b, b), (c, c), (d, d), (a, b), (a, o), (a, d),
(b, c). (b, d), (c, a), (c, b), (c, d), (d, a), (d, b), (d, c)}
(iv) ((a, b), (b, a), (a, c), (c, a), (b, c), (c, b)} ]
A
all artitions of {1,2,;3).
=

List
3.
Ans.23 2 3 123 132
[A 1), (2), 13]). {{1}. (2,3]). {1, 2).
ic (3)). {1,3), (2))1
ba
A bethe relation on the set of real
4. Let
numbers such that a Rbif and
integer. Prove that R is an equivalence
relation only if a -b is an
a relation on the set (a, b, c, d} that is (M.U. 2007)
5. Def

transitive, reflexive and symmetric. (ii) symmetric and transitive.


s:( (a, a), (b, b), (C, c). (d, d), (a, b), (b, a), (a, c), (C, (M.U. 2007)
a)
(a, d), (d, a), (b, c), (c, b), (b, d), (d, b),
(c, d), (d, c)}
(i) ((a, b). (b, a). (a, a), (C, d). (d, c),. (c, c)} 1
te true or false with justification. If
6 Ris a relation on N defined as a Rbif g.c.d.
then Histransitive,
(a, b)>1 (M.U. 2003)
No. 2 R6 g.c.d. (2, 6) =2> 1
Ans.:
6 R3 g.c.d. (6, 3) = 3 > 1
But 2A 3
g.c.d.(2, 3) =1]
7, State true or false with justification.

lfX={1,2, 3), R= {(1, 2), (2, 1). (1, 1)} is atransitive relation.
(M.U. 2002)
Ans.: No. (2, 1) E A, (1,2) E
Rbut (2, 2) R]
8. State true or false with proper justification.

Arelation Ais defined on square matrices of order 4 as ARBif | A- B| | A |-| B|is =

symmetric.
(M.U. 2002)
Ans.: No:|B-A|=(-1)"|A- B|=|A|-|B|#| B|-| A|]
9. Give examplesof relations R and R2 defined on A {1, 2, 3, 4) such that
=
R, Ra and
RuR are equivalent relations. (M.U. 2002)
Ans.: A = {(1, 1). (2, 2), (3, 3), (4, 4), (1, 2), (2, 1).
Re = {(1, 1), (2, 2), (3, 3), (4, 4), (1, 3), (3, 1)} 1

10. Let R be a symmetric and transitive relation on a set. Suppose for every a in A there exists
bin Asuch that (a, b) is in R. Show that R is an equivalence relation.
(M.U. 1995)
11. Let A= {a, b, c, d} and let R {(a, b), (a, c), (a, a), (b, d)}. Find the reflexive closure and
symmetric closure of R.
[ Ans. : Reflexive Closure R1 = {(a, a), (b, b), (c, c), (d, d), (a, b), (a, c), (b, d)}
Symmetric Closure A2 = {(a, b), (a, o), (b, d), (b, a), (c, a), (d, b)}]
12. Let Rbe a reflexive relation on a set A = {a, b, c}. Show that Ris an equivalence relation
and only if (a, b) and (a, c) in Rimplies that (b, c) in R.
(M.U. 2002)
13. How many relations can be defined on a set of 2 elements ? (See Ex. 3, page 3-19)
(M.U. 2002)
14. Givetwo distinct partitions of S = {a, b, c). (M.U. 2002) [ Ans.: {{a}, (b), {o}}. {a, b, c}]
15. Let S = (a, b, c). Write down two parttions of S and the corresponding equivalence relations.
(M.U. 2002)
Ans.: (i) As above
(i) ffa), {b}, {c}. {(a, a), (b, b), (c, c), (a, b), (a, c), (b, a), (b, c), (c, a), (c, b)}]|
DIgapha
16. Let Tbe the set of trianglos in a plano and Abe the relation R= {(a, b)l
b, a, bE T). Show that A is an equivalont relation èis conartom.
nt to
(M.L 1996)
17. Let Sbe the set of all points in a plane. Lot Abo a relation such that if a and bare Anu
points on tho plane then "a b i f and only if distance between b and a is less than k u n e t w o
Examine whether R is an equivalence relation.
Ans. : Ris not
trmsitive
18. Let S = {1, 2, 3) x (1, 2, 3, 4) and let a relation b e defined on S as follows:
(x. y)R ( . v) il and only if | x- yl = | u- v[ for (x, y), (u, v) e S.
Show that Ris an equivalence relation. (M.U. 1A7)
19. State how many elements are there in a power set A, and how many relation Can t
defined on A.
IAns. If A has n elements then the power set of A has 2" elements and the number
Of
be defined on A is 2n
relationsthat can
(a, b, c, d)
20. Let S
=

Give examples of relations H and H2 on S such that Rs and A2 are equivalence relations

is not an equivalence
relation. (M.U. 2002, 03)
R c)}
Ans. R =
{(a, a), (b, b), (a, b), (b, a), (C, c), (d, d), (c, d), (d,
(d, b)}
Ap {(a, a), (c, c), (a, c), (C, a), (b, b), (d, d), (b, d),
(c, d), (d, c),
AuRz =
((a, a), (b, b), (C, ©), (d, d), (a, b), (b, a),
(b, d), (d, b), (a, c ). (C, a))

AuRa is not transitive


because
aRc, cA d but aAd. ]
10, 100, 1000} and determine corresponding equivalence
21, Find any two partitions of S={1, (M.U. 2003)
classes.
P2 = ((1, 10, 100), (1000))
Ans. P =
{(1, 10), (100, 1000));
A =
{(1, 1), (1, 10), (10, 1), (10, 10), (100, 100),
(100, 1000), (1000, 100), (1000, 1000)}
{(1, 1), (1, 10), (1, 100), (10, 1), (10, 10), (10,
100),
Ra =

(100, 1), (100, 10), (100, 100), (1000, 1000)} ]


set A and a relation R on it such that (i) R is reflexive, transitive but
22. Give an example of a
not symmetric, (i) R is symmetric but neither reflexive nor transitive. (M.U. 2004)
Ans.: Let S = {a, b, c}. {(a, a), (b, b), (c, c). (a, b), (b, c). (a, c)}
R =

R2 {(a, b), (b, a). (a, c), (c, a). (b, c), (c, b)} ]
23. Show that if a relation on a set A is transitive and irreflexive then it is asymmetric
(M.U. 1997, 2014)
24. Let S =
{a, b,
and P= c, d} {(a, b), (d), (c, e)).
Show that Pis a partition on S.
Find the equivalence classes [ a]. [ c], [ d] (M.U. 1998)
Ans.: [ a] = {a, b}. [d] ={d}. [c] ={c, e}1
25. Let S =
{a, b, c, d, e) and P =
((a), (b, c). (d, e))
(i) Show that P is a partition onS
(ii) Express the equivalence relation Ron
Scorresponding to Pas a set of ordered
pairs
(ii) Find the equivalence classes [ a]. [
b). [ e]. (M.U. 1998)
[Ans.: R =((a, a). (b, b), (c, c), (b, c), (c, b),
(d, d). (o, e). (d, o). (e,
[al aTb] ={b, c).
=
d)}
o
ation on all
relation e {d, e) =

26. Let
be a
A
R is
integers Z and x R yif and
Examine
whether an
equivalence relation ? only if 2x
2x+ 3y is divisible
by 5.
et A
be the relation defined on Zby x (M.U. 2004) [Ans. : Yes
27.
relation and lescribe the Ryif |x- yl is divisible by 4, show that Ris an
equivalence rela
equivalence classes.
9uvale 8,-4,0,4, 8, ...).. (M.U. 2004)
Ans.:

7,-3,1,5,9,.)
6,-2,2, 6, 10, .).-9,-5,-1,3,7,..)]
28. Let RbeRbe the relation defined on Z xR
relation and find the by yif |x- yl is divisible
equivalence rela
equivalence classes. by 6. Show that R is an
ns.: E(0)
Ans.
=

{12,-6,0,6, 2, (M.U. 2008)


E(2) E(1)
.11,-5, 1,7, 13, =

{.-10,-4, 2,8, 14, ..), E(3)


{
E(4) -8,-2,4, 10, 9,3, 3, 9, 15, =

16,
l et Sbe the set of prime numbers less E(5)
{,-7,-1,5,11, 17, =

29. Let. than 60. Let


same first digit. Rbe the relation a Rbif a, b have the
Ove that Ris an equivalence relation.
Pro Find the
R(2) =
{2, 23, 29),
equivalence classes.
Ans.: R(3) =
(3,31, 37), R(5) (5, 53, 59),
A(7) {7), R(11) =
{11,13,17,19) R(41) {41,43, 47)1
a0. A relation R is defined on
Z(the set of all integers) as a Rbif a + bis divisible
Is R an equivalence relation ? lf so find its equivalence classes. by 2.
(M.U. 2002)
Ans.: Yes. E(0) {.-6,-4,-2, 0, 2, 4,6, . , E(1)
=

31, 1f R is a relation defined on


{.-3,-1,1,3, 5,. =

Zas a R bif 3a + 4b is divisible by 7, prove that A is


enuivalence relation. Find the equivalence classes. an
(M.U. 2002)
[Ans.: E(0) ={.-7,0,7,. E(1) {.-6,1,8,..
E(2)= , -5, 2, 9,) E(3) ..,-4,3,10,
E(4) . , -3, 4, 11, .
=
E(6) ",-2,5,12,.
=

E(6) -1,6, 13,.


32. Let Xbe the set of natural numbers x such 1 Sxs 10. A
be the relation define on
xRyif xy is a perfect square. Show that R is an equivalence relation and find all Xas
classes. equivalence
(M.U. 2003)
Ans. S = {1,2,3, 4,5, 6,7,8, 9, 10)

R (1,4). (1, 9). (2, 2), (2, 8), (3, 3). (4, 1). (4, 4), (4, 9). (5, 5).
(6,6),(7,7). (8, 2), (9, 1),. (9, 9), (10, 10)}
E(1) {1,4, 9) E(2) = (2,8): E) 13): E(5) ={5}
E(6) = {6}
E7) {7) E(9)= (9}: E(10)={10}1
33. Describe the equivalence relation corresponding to the following partition of Z.
-8, 4, 0, 4, 8,.} u -7,-3, 1,5, . u
6,-2,2,6,. u{.5,-1,3,7, (M.U. 2004, 05)
Ans.: R= {(a, b) | (a- b) is divisible by4, a, bE Z}1
4. Given a set S = {1, 2, 3, 4, 5), find the equivalence relation on S which generates the
Paruion ((1, 2), (M.U. 1997)
(3), (4, 5)). Draw the graph of the relation.
ana

Digraph
Ans.: R={(1, 1). (1, 2), (2, 2), (2, 1), (3, 3). (4, 5), (4, 4), (5, 5), (5, 4))}

1, 2

C 3
4, 5

R denote a relation on the set of ordered pairs of positive integers


tnat His an equivalence relation.
such 'hat
dnow
if xv= yu.
(x. v)R (u, v) A =
{0, 1, 2, 3. Give o n e example for each of the folloinc
set e
Consider the
3
justification. tnat is neiner symmetric n o r antisymmetric.
A relation R on A transitive but not reflexive.
Aon A that is symmetric,
(i)a
relation
a r e given in terms
of their matrices.
relations
I Ans. : The required
[ 10 1
1 11 1
1 1 1 0
1 0 0
(i1)1 0 0
10 1 1
1 1 0 1
the reflexive closure of
{(a, a), (a, b), (b, c), (C, )). Find (a)
37. Let A {a, b,
= c} and A transitive closure of
A. (M.U. 2004)
closure of
Aand (c) the
a), (b, ). (c, b)}
(b) the symmetric (a, b), (b, ©)} (b) {(a, a), (c, c), (a, b), (b,
(b, b), (¢, ©),
[ Ans.: (a) {(a, a), c), (c, c), (a, c)}]
(c) {(a, a), (a, b), (b, (6, 2), (6, 3).
3), (3, 6), (4, 4), (5, 1), (5, 5), equivalence
3). (2, 6), (3, 2), (3,
38. If R={(1, 1), (1, 5),
(2, 2), (2, its digraph that Ris an
show by the matrix Ma and
A {1,2, 3, 4, 5, 6), (M.U. 2005)
(6, 6)) defined on
=

induced by A on A.
relation. Also find the partition
12 3 4 5 6

11 0 0 01 0
2 0 1 1 0 0 1|
1 0 0 1 4
3 0 1 CCO

[Ans. 4o o o 1 0
0
5 1 0 0 0 1 0
60 1 1 o o 1
closure of a relation.
39. Define reflexive closure, symmetric closure and transitive
A where A is defined
on set A =
{1, 2, 3, 4
Find thereflexive closure, symmetric closure of (M.U. 1996)
and R {(1, 1), (1,2), (1, 4), (2, 4), (3, 1), (3, 2), (4, 2), (4, 3). (4, 4))
Ans.:() RuA ={(1, 1), (2, 2), (3, 3), (4, 4), (1, 2),
(1,4), (2, 4), (3, 1), (3, 2), (4, 2). (4, 3))
(ii) AuR' = {(1, 1), (1, 2), (2, 1), (1, 4), (4, 1), (2, 4), (4, 2), (3, 1),

(1, 3). (3, 2), (2, 3), (4, 3). (3, 4), (4,
4))
D i s c r e l

and =
A11.2.3,
{1,2, 3, 4) {(1, 1), (1,2), (1, 4),
(2, 4), (3, 1), (3, 2), (4, 2), (4, 3), (4, 4)).
40.IfA
=

transitive closure by using Warshall's


he
algorithm. (M.U. 1996)
1 1 11
[Ans.: W4 =|
1 1 11
1 1 11
L1 1 1 1
A-[1,4,7, 13) and R {(1,4), (4, 7), (7, 4), (1, 13).
41 If
41.
d the transitive closure of R by Warshall's
Out
Find out
algorithm. (M.U. 2000, 04)
o 1 11
0 1 1 00
Ans.: W =

1 10
o o o
A=(1,2, 3, 4) and F={(1,2), (2, 2), (2, 4), (3, 2), (3, 4),. (4, 1), (4, 3)),find the transitive
closure of A. (M.U. 2000)
1 1 1 11
Ans.: W4 = 1 1 1 1
1 11 1
1 1 11
13 Let A = {1,2,3, 4, 5} and let Rand S be the equivalence relations on A whose matrices are
iven below. Compute the matrix of the smallest equivalence relation containing A and S.
asgiven b
[1 1 10 [1 0 0 0 0 1 1 1 1 1
11 1 0 0 1 1 1 o 1 1 1 1 1

Ma=1 1 1 0 0, Ms =0 1 1 1 0 (M.U. 2000) [Ans.: W =


|1 1 1 1
0 1 1 1 1 1 1 1 1 1 1
0 0
0 0 01 1 0 0 0 1 1 111
44. Let A = {1, 2,3, 4,5) and R, S be the equivalence relation on A whose matrices are given
helow. Compute the matrix of the smallest equivalence
relation. (M.U. 2001)
1 1 0 0 0 1 0 0 0 0 11 1 1 1
1 11 0 0 0 0 11 1 1 1 1 1 1

M=0 0 1 1 1.Ms= 0 1 1 10
Ans.:W =| 1 1 1 1 1

0 0 1 1 1 o111 1 0 1 1 1 1 1
o 0 1 1 1 0 0 0 0 1 11 1 1 1]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy