SlideShare a Scribd company logo
1 of 8
Name: Kiran Kumar Malik Guided by: Dr. Padala Harikrishna
Registration Number: 200301120128
Branch: B-Tech in Computer Science and Engineering
Section: D
Campus: Bhubaneswar
RELATION MATRIX
A relation R from a finite set X to a finite set Y can be represented using a
zero-one matrix is called the relation matrix of R.
Let X = {๐‘Ž1, ๐‘Ž2,โ€ฆโ€ฆ, ๐‘Ž๐‘š} and Y = {๐‘ฆ1, ๐‘ฆ1,โ€ฆ......, ๐‘ฆ๐‘›} be finite set
containing m and n elements, respectively, and R be the relation from X to Y.
Then R can be represented by an m ร— n matrix ๐‘€๐‘… = [mij]mXn, which is
defined as follows:
๐‘š๐‘–๐‘— =
1,
0,
In the otherwords, the zero-one matrix representing R has 1 as its (i, j) entry xi
is related to yj, and a 0 in this position if xi is not related to yj and a 0 in this
position if xi is not related to yj.
If (๐‘ฅ๐‘–, ๐‘ฆ๐‘—) โˆˆ R
If (๐‘ฅ๐‘–, ๐‘ฆ๐‘—) โˆˆ R
Example 1:
Question: Suppose that A = {1,2,3} AND B = {1,2}.Let R be the relation from A to
B containing (a,b) if a โˆˆ A, b โˆˆ B and a > b.
Solution: R = {(2,1), (3,1), (3,2)}
The Matrix Representation is ๐‘€๐‘… =
0 0
1 0
1 1
Example 2:
Question: Let A={1, 2, 3, 4}. Find the relation R on A determine by the matrix
๐‘€๐‘…=
1
0
๐Ÿ
๐Ÿ
0
0
๐ŸŽ
๐Ÿ
1
1
๐ŸŽ
๐ŸŽ
0
0
๐ŸŽ
๐Ÿ
Solution: R = {(1,1), (1,3), (2,3), (3,1), (4,1), (4,2), (4,4)}
PROPERTIES OF A RELATION IN A SET
i. If a relation is a reflexive, then all the diagonal entries must be 1.
๐Ÿ ๐ŸŽ ๐ŸŽ
๐ŸŽ ๐Ÿ ๐ŸŽ
๐ŸŽ ๐ŸŽ ๐Ÿ
ii. If a relation is symmetric, then the relation matrix is symmetric, i.e.,
mij = mji for every I and j. aij it symmetric element is aji.
๐Ÿ ๐Ÿ ๐ŸŽ
๐Ÿ ๐ŸŽ ๐Ÿ
๐ŸŽ ๐Ÿ ๐ŸŽ
iii. If a relation is antisymmetric, then its matrix is such that if mij = 1
then mji = 0 for I โ‰  j.
๐Ÿ ๐ŸŽ ๐Ÿ
๐Ÿ ๐ŸŽ ๐ŸŽ
๐ŸŽ ๐Ÿ ๐Ÿ
MATRIX REPRESENTATION OF A RELATION.pptx

More Related Content

Similar to MATRIX REPRESENTATION OF A RELATION.pptx

Relations
RelationsRelations
Relations
Yehuda Garti
ย 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
indu psthakur
ย 
Functions And Relations
Functions And RelationsFunctions And Relations
Functions And Relations
andrewhickson
ย 
Relation function
Relation functionRelation function
Relation function
mentorsnet
ย 
Relation function
Relation functionRelation function
Relation function
Biswa Nayak
ย 
Functions And Relations
Functions And RelationsFunctions And Relations
Functions And Relations
andrewhickson
ย 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdf
SanjanaAdri
ย 

Similar to MATRIX REPRESENTATION OF A RELATION.pptx (20)

Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
ย 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
ย 
Matematika terapan minggu ke-4
Matematika terapan minggu ke-4Matematika terapan minggu ke-4
Matematika terapan minggu ke-4
ย 
Relations in Discrete Math
Relations in Discrete MathRelations in Discrete Math
Relations in Discrete Math
ย 
Relations
RelationsRelations
Relations
ย 
Matematika terapan week 4
Matematika terapan week 4 Matematika terapan week 4
Matematika terapan week 4
ย 
Relations and Functions 1
Relations and Functions 1Relations and Functions 1
Relations and Functions 1
ย 
Per6 basis2_NUMBER SYSTEMS
Per6 basis2_NUMBER SYSTEMSPer6 basis2_NUMBER SYSTEMS
Per6 basis2_NUMBER SYSTEMS
ย 
Relations
RelationsRelations
Relations
ย 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
ย 
Four basic concepts.pptx
Four basic concepts.pptxFour basic concepts.pptx
Four basic concepts.pptx
ย 
Functions And Relations
Functions And RelationsFunctions And Relations
Functions And Relations
ย 
Relation function
Relation functionRelation function
Relation function
ย 
Relation function
Relation functionRelation function
Relation function
ย 
Functions And Relations
Functions And RelationsFunctions And Relations
Functions And Relations
ย 
Crisp Realation
Crisp RealationCrisp Realation
Crisp Realation
ย 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdf
ย 
Properties of relations
Properties of relationsProperties of relations
Properties of relations
ย 
CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing RelationsCMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing Relations
ย 
Relations and Functions #BB2.0.pdf
Relations and Functions #BB2.0.pdfRelations and Functions #BB2.0.pdf
Relations and Functions #BB2.0.pdf
ย 

Recently uploaded

Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...
Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...
Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...
Nguyen Thanh Tu Collection
ย 

Recently uploaded (20)

Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
ย 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
ย 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
ย 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
ย 
Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...
Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...
Tแป”NG ร”N TแบฌP THI Vร€O LแปšP 10 Mร”N TIแบพNG ANH Nฤ‚M HแปŒC 2023 - 2024 Cร“ ฤรP รN (NGแปฎ ร‚...
ย 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
ย 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
ย 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
ย 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
ย 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
ย 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
ย 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
ย 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
ย 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
ย 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
ย 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
ย 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
ย 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
ย 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
ย 

MATRIX REPRESENTATION OF A RELATION.pptx

  • 1. Name: Kiran Kumar Malik Guided by: Dr. Padala Harikrishna Registration Number: 200301120128 Branch: B-Tech in Computer Science and Engineering Section: D Campus: Bhubaneswar
  • 2. RELATION MATRIX A relation R from a finite set X to a finite set Y can be represented using a zero-one matrix is called the relation matrix of R. Let X = {๐‘Ž1, ๐‘Ž2,โ€ฆโ€ฆ, ๐‘Ž๐‘š} and Y = {๐‘ฆ1, ๐‘ฆ1,โ€ฆ......, ๐‘ฆ๐‘›} be finite set containing m and n elements, respectively, and R be the relation from X to Y. Then R can be represented by an m ร— n matrix ๐‘€๐‘… = [mij]mXn, which is defined as follows: ๐‘š๐‘–๐‘— = 1, 0, In the otherwords, the zero-one matrix representing R has 1 as its (i, j) entry xi is related to yj, and a 0 in this position if xi is not related to yj and a 0 in this position if xi is not related to yj. If (๐‘ฅ๐‘–, ๐‘ฆ๐‘—) โˆˆ R If (๐‘ฅ๐‘–, ๐‘ฆ๐‘—) โˆˆ R
  • 3. Example 1: Question: Suppose that A = {1,2,3} AND B = {1,2}.Let R be the relation from A to B containing (a,b) if a โˆˆ A, b โˆˆ B and a > b. Solution: R = {(2,1), (3,1), (3,2)} The Matrix Representation is ๐‘€๐‘… = 0 0 1 0 1 1
  • 4. Example 2: Question: Let A={1, 2, 3, 4}. Find the relation R on A determine by the matrix ๐‘€๐‘…= 1 0 ๐Ÿ ๐Ÿ 0 0 ๐ŸŽ ๐Ÿ 1 1 ๐ŸŽ ๐ŸŽ 0 0 ๐ŸŽ ๐Ÿ Solution: R = {(1,1), (1,3), (2,3), (3,1), (4,1), (4,2), (4,4)}
  • 5. PROPERTIES OF A RELATION IN A SET i. If a relation is a reflexive, then all the diagonal entries must be 1. ๐Ÿ ๐ŸŽ ๐ŸŽ ๐ŸŽ ๐Ÿ ๐ŸŽ ๐ŸŽ ๐ŸŽ ๐Ÿ
  • 6. ii. If a relation is symmetric, then the relation matrix is symmetric, i.e., mij = mji for every I and j. aij it symmetric element is aji. ๐Ÿ ๐Ÿ ๐ŸŽ ๐Ÿ ๐ŸŽ ๐Ÿ ๐ŸŽ ๐Ÿ ๐ŸŽ
  • 7. iii. If a relation is antisymmetric, then its matrix is such that if mij = 1 then mji = 0 for I โ‰  j. ๐Ÿ ๐ŸŽ ๐Ÿ ๐Ÿ ๐ŸŽ ๐ŸŽ ๐ŸŽ ๐Ÿ ๐Ÿ