Soft Computing Lecture 5 On Crisp Relations and Fuzzy Relations
Soft Computing Lecture 5 On Crisp Relations and Fuzzy Relations
1
Crisp Relations
A crisp relation represents the presence or absence of association,
interaction, or interconnectedness between the elements of two or more
sets.
X x Y = {(x, y)| x X, y Y}
where (x, y) is ordered pair
Let A = {0, 1} and B = {a, b, c}
A x B = {(0, a), (0, b), (0, c), (1, a), (1, b), (1, c)}
A B a b c
0 a
1 1 1
𝑅 =0
1 1 1 1
1 b
Relation Matrix
Unconstrained relation
Sagittal diagram c
Unconstrained relation
from A to B
2
Cont…
For unconstrained relation,
1, x, y XxY
XxY (𝑥,y) =
0, x,y XxY
0 a
a b c
0 1 0
1 b R = 01
1 0 1
c
3
Cont…
Null relation, R - All elements in the relation matrix is zero.
4
Cont…
x1
y1 R = { (x1, y1), (x1, y3), (x2, y4)}
x2 z1 S = { (y1, z2), (y3, z2)}
y2
T=R S
x3 y3 z2 where T represents the same
relation on X x Z
5
y4
Crisp Composition
• Max – Min Composition
T ( x, z ) R ( x, y ) S ( y, z )
yY
T ( x, z ) R ( x, y ). S ( y, z )
yY
Assignment: y1 y2 y3 y4 z1 z2
x1 1 0 1 0 y1 0 1
R x2 0 0 0 1 y2 0 0
and S
x3 0 0 0 0 y3 0 1
y 4 0 0
6
Cont…
T ( x1 , z1 ) = max[min(x1y1, y1z1), min(x1y2, y2z1), min(x1y3, y3z1), min(x1y4, y4z1)]
= max[min(1,0), min(0,0), min(1,0), min(0,0)]
= max[0, 0, 0, 0, 0]
=0
z1 z 2
x1 0 1
T x2 0 0
x3 0 0
For crisp relations, max-min and max-product compositions result in the same
relation.
7
Fuzzy Relations
• Fuzzy relation represents a degree of presence or absence of associations,
interaction, or interconnectedness between the elements of two or more fuzzy
sets.
• In fuzzy sense, there exists always some relation between any two objects in
the real world.
• Fuzzy relation R
~
maps cartesian space X x Y to the interval [0, 1] and R ( x, y )
~
Example: Let R
~
be the fuzzy relation between two sets A and B where A is the
Containment: R S R ( x, y ) S ( x, y )
~ ~ ~ ~
10
Fuzzy Composition
If R be fuzzy relation on X x Y, S be fuzzy relation on Y x Z, then the
~ ~
T R S where
~ ~ ~
z1 z2 z3 z1 z2 z3
x 0.7 0.6 0.5 x 0.63 0.42 0.25
T 1 T 1
~ x2 0.8 0.6 0.4 ~ x2 0.72 0.48 0.20
Max-min Composition Max-product Composition
12