Professional Documents
Culture Documents
DM @group5
DM @group5
DM @group5
A PROJECT REPORT
Submitted by
DIBYANSU SEKHAR DAS(230101120147)
SANJAYA KUMAR PANDA(230101120155)
RUDRA LENKA(230101120156)
YAJNADATTA PATTANAYAK(230101120157)
ASHU KUMAR(230101120161)
in partial fulfillment for the award of the
degree of
BACHELOR OF TECHNOLOGY
in
COMPUTER SCIENCE AND ENGINEERING
MAY 2024
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
SCHOOL OF ENGINEERING AND TECHNOLOGY
PARALAKHEMUNDI CAMPUS
BONAFIDE CERTIFICATE
Certified that this project report “Define the properties of a relation on a set using
the matrix representation of that relation with examples” is the bonafide work of
“DIBYANSU SEKHAR DAS” who carried out the project work under my
this project has not been carried out earlier in this institute and the university.
SIGNATURE
Certified that the above mentioned project has been duly carried out as per the
norms of the college and statutes of the university.
SIGNATURE
(Dr.Debendra Maharana)
HEAD OF THE DEPARTMENT
Professor of Computer Science and Engineering
DEPARTMENT SEAL
i
DECLARATION
I hereby declare that the project entitled “Define the properties of a relation on
a set using the matrix representation of that relation with examples” submitted for
is my original work and the project has not formed the basis for the award of any
Degree / Diploma or any other similar titles in any other University / Institute.
Registration No:230101120147
Place:PARALAKHEMUNDI
Date:
ii
ACKNOWLEDGEMENTS
I am highly grateful to Dr. ASHOK MISHRA who evinced keen interest and
invaluable support in the progress and successful completion of my project work.
Registration No:230101120147
Place:
Date:
iii
TABLE OF CONTENTS
CERTIFICATE i
DECLARATION ii
ACKNOWLEDGEMENT iii
1. CHAPTER – 1 INTRODUCTION...................................................................... 6
REPRESENTATION ............................................................................................10 – 15
CONCLUSION
REFERENCES
5
INTRODUCTION
A relation on a set is a way to associate elements of the set with each other. In mathematics,
relations are often studied for their properties and representations. One common way to represent
relations is through matrices, particularly binary matrices. Let's explore the properties of a relation
on a set using the matrix representation.
Relation on a Set:
1. Definition:
A relation on a set A is a subset of the Cartesian product A×A.
If R is a relation on set A, and a,b are elements of A, then (a,b) is in R if and only
if
2. Matrix a is related to b.
A binary matrix can represent a relation on a set. The rows and columns of the
Representation:
matrix correspond to the elements of the set, and the entry in the (i,j) position is 1 if
(ai,aj) is in the relation, and 0 otherwise.
3. Properties:
a. Reflexive:
A relation is reflexive if every element is related to itself.
Matrix representation: All diagonal elements in the matrix are 1.
b. Symmetric:
A relation is symmetric if a is related to b implies that b is related to a.
Matrix representation: The matrix is symmetric.
c. Antisymmetric:
A relation is antisymmetric if a is related to b and b is related to a only when
a=b.
Matrix representation: If (i,j) and (j,i) are both 1, then i=j.
d. Transitivitive:
A relation is transitive if a is related to b and b is related to c implies that a is
related to c.
Matrix representation: If (i,j) and (j,k) are both 1, then (i,k) should be 1.
1. Example:
Let A={1,2,3} and R={(1,1),(1,2),(2,2),(3,3)}.
Matrix representation:
1 1 0
0 1 0
0 0 1
6
PROPERTIES OF RELATION
PROPERTIES OF
RELATION
1.
REFLEXIVE .
7
4. ASYMMETRIC
A relation R is asymmetric if, for every pair (a,b) in R, the pair (b,a)
does not belong to R unless a=b. It's a stricter condition than antisymmetry.
iff (x,y) ∈R ⇒ (y,x)∉ R ; ∀x,y ∈ A
In other word:- R ∩ R –1= Φ
5. ANTISYMMETRIC
A relation R is antisymmetric if, for every pair (a,b) in R where a=b, the pair
(b,a) does not belong to R. In other words, if a is related to b, then b is not
related to a unless a=b
In other word:- R ∩ R –1 ⊆ IA
6. TRANSITIVE
8
MATRIX REPRESENTATION OF A RELATION (MR)
Example:
Let's consider a set A={a,b,c} and a
relation R defined by (a,a),(b,c),(c,b). The
matrix representation MR would be:
1 0 0
0 0 1
0 1 0
In this matrix:
MR[1][1]=1 because (a,a) is in R.
MR[2][3]=1 because (b,c) is in R.
MR[3][2]=1 because (c,b) is in R.
All other entries are 0 because the corresponding pairs are not
in R. This matrix provides a concise and systematic represent
relationships between elements in a set. The properties of the relation can
way to
often be analyzed by examining the structure of this matrix.
9
PROPERTIES OF A RELATION USING ITS MATRIX
REPRESENTATION
Reflexive relation
A relation is reflexive if and only if all diagonal elements of its matrix are 1.
For a matrix MR, if MR[i][i]=1 for all i, then the relation is reflexive.
The relation ≥(“is greater then or equal to”)on the set of real numbers.
Similarity of triangles.
The relation R = {(1,1),(1,2),(2,2),(3,3),(3,1)} on the set A={1,2,3}.
1 1 0
0 1 0
1 0 1
Reflexive relations are always represented by a matrix that has 1 on the main
diagonal. The digraph of a reflexive relation has a loop from each node to itself.
10
Irreflexive relation
A relation is irreflexive if and only if all diagonal elements of its matrix are
0. For a matrix MR, if MR[i][i]=0 for all i, then the relation is irreflexive.
0 1 1
1 1 0
1 0 0
The matrix of an irreflexive relation has all 0′s on its main diagonal. The
directed graph for the relation has no loops
11
Symmetric relation
Symmetry in the matrix is observed when M[i][j]=M[j][i] for all i and j.
A symmetric matrix corresponds to a symmetric relation.
1 1 1
1 0 0
1 0 0
For a symmetric relation, the logical matrix M is symmetric about the main
diagonal. The transpose of the matrix 𝑀𝑇 is always equal to the original
matrix M. In a digraph of a symmetric relation, for every edge between
distinct nodes, there is an edge in the opposite direction.
12
Asymmetric relation
symmetry is observed when M[i][j]=1 implies M[j][i]=0. An asymmetric
matrix corresponds to an asymmetric relation.
The relation > (“is greater than”) on the set of real numbers.
The family relation “ is father of”.
The relation R = {(2,1),(2,3),(3,1)} on the set A = {1, 2, 3}.
0 0
0
1 0 1
1 0
0
The matrix for an asymmetric relation is not symmetric with respect to the main
diagonal and contains no diagonal elements. The digraph of an asymmetric relation
must have no loops and no edges between distinct vertices in both directions.
13
Antisymmetric relation
The matrix MR satisfies the antisymmetric property because whenever MR
[i][j]=1 and MR[j][i]=1, it implies i=j Antisymmetric represent
matrices antisymmetric relations.
1 0 0
1 0 1
1 0 1
14
Transitive relation
Transitivity can be inferred by checking whether, for every pair M[i][j]=1 and
M[j][k]=1, it implies M[i][k]=1. A transitive relation is reflected in the matrix.
The relation > (“is greater than”) on the set of real numbers.
The relation “ is parallel to “ on the set of straight lines.
The relation R = {(1,2) , (1,3) , (2,2) , (2,3) , (3,3)} on the
set A = {1, 2, 3}.
0 1 1
0 1 1
0 0 1
of (i,j)− and (j,k)−entries with value 1 there exists the (i,k)−entry with value
1. The presence of 1′s on the main diagonal does not violate transitivity.
15
CONCLUSION
In the course of this project, A relation R on a set A can be represented by a
matrix M R = [m ij], where m ij = 1 if (a i, a j) ∈ R and m ij = 0 otherwise.
The matrix representation of a relation can be used to check whether the relation has
certain properties, such as reflexivity, symmetry, transitivity, etc. For example, a
relation R on a set A is reflexive if the diagonal elements of M R are all 1,
symmetric if M R is equal to its transpose, and transitive if M R is equal to the
Boolean product of M R with itself.
The matrix representation of a relation can also be used to find the closure of a
relation with respect to a property, such as the reflexive closure, the symmetric
closure, or the transitive closure. For example, the reflexive closure of a relation R
on a set A is obtained by setting the diagonal elements of M R to 1, the symmetric
closure is obtained by taking the union of M R and its transpose, and the transitive
closure is obtained by finding the smallest matrix that contains M R and is
transitive
REFERENCES
16
COURSE OUTCOME (COs) ATTAINMENT
1 2 4 5 6 7 8 9 10
3
HIGH
LOW
➢ Learning Gap (if any):
18