Hi i am a beginner and i need help in making a program in which 
programmer has to enter int values in set A and B...any number of 
values...and after that a Relation set of A and B is created and 
presened into matrix form..like...


A : {1,2,3}
B : {3,1,2}

R: {(1,2)(2,3)(3,2)} //relation may be of your own choice.


now v have to present it into matriz form in 0 1 form

like..

`terms in A and B is 3x3..therefore 9 itms will be in matrix..

matrix formed from relation should be 

 0 1 0
 0 0 1
 0 1 0

in relation there is (1,2) there for in first row of matrix 2nd 
column is 1 and there is no (1,1) and (1,3) thats why in first row 
first and thrid coulmn is presendted by 1.... This is actually 
Discrete mathematics...


waiting........


Reply via email to