Skip to main contentRepresentasi Relasi
Using Matrix
A relation between finite sets cam be represented using a zero-one matrix. Suppose that R is a relation from A=a1,a2,…,am to B=b1,b2,…,bn.
(Here the elements of sets A and B have been listed in a particular, but arbitary, order. Furthermore, when A=B we use the same ordering for A and B.)
The relation R can be represented by the matrix MR=[mij], where
Sebuah relasi antara himpunan yang terbatas dapat direpresentasikan menggunakan matriks nol-satu. Misalkan R adalah relasi dari A=a1,a2,…,am ke B=b1,b2,…,bn. (Di sini elemen-elemen himpunan A dan B telah dicantumkan dalam urutan tertentu, tetapi sembarangan. Selanjutnya, ketika A=B kita menggunakan urutan yang sama untuk A dan B.) Relasi R dapat direpresentasikan oleh matriks MR=[mij], dimana
mij={10if (ai,bj)∈Rif (ai,bj)∈/R
In other words, the zero-one matrix representing R has a 1 as its (i,j) entry when (ai)isrelatedtob_j,anda0inthispositionif(a_i)isnotrelatedtob_j$. (Such a representation depends on the ordering used for A and B.)