![]() |
VOOZH | about |
Prerequisite -
Introduction and types of RelationsRelations are represented using ordered pairs, matrix and digraphs:
Example: {(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)}👁 Image
This represent square of a number which means if x=1 then y = x*x = 1 and so on.
Suppose R is a relation from X={x1, x2, .....xn} to Y={y1, y2....yn}If A={1, 2, 3} and B={1, 2} and Relation R is R = {(2, 1), (3, 1), (3, 2)} then all corresponding value of Relation will be represented by "1" else "0". It is represented as: 👁 Image
It is represented by :-
M[i, j]={1, if (Xi, Yj) belongs to R
0, if (Xi, Yj) does not belong to R}
R = {(1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4)} This relation is represented using digraph as: 👁 Image