Representation of Relations
Usually relations are shown by sets like likes(marry,jhon) or P = {1, 2, 3, 4}
Relations can be represented in many ways. Some of which are as follows:
- Tabular
- matrix
- Directed graphs
- Arrow diagrams
Example: Represent following in all methods
Let
P = {1, 2, 3, 4}
Q = {a, b, c, d}
R = {(1, a), (2, a), (3, a), (1, b), (4, b), (4, c), (4, d)