AI FuzzyRelations
AI FuzzyRelations
Fuzzy Relations
Cartesian Product
Let A1, A2, .., An be fuzzy sets in U1, U2, Un, respectively.
A2 x.. x An
2
Fuzzy Relations
Cartesian Product: Example
Let A = {(3, 0.5), (5, 1), (7, 0.6)}
Let B = {(3, 1), (5, 0.6)}
Find the product
The product is all set of pairs from A and B with the minimum
associated memberships
Ax B = {[(3, 3), min (0.5, 1)], [(5, 3), min(1, 1)], [(7, 3),
min(0.6, 1)], [(3, 5), min(0.5, 0.6)], [(5, 5), min(1, 0.6)], [(7,
5), min(0.6, 0.6)]}
= {[(3, 3), 0.5], [(5, 3), 1], [(7, 3), 0.6], [(3, 5), 0.5], [(5, 5),
3
Fuzzy Relations
Crisp Relations
The relation between any two sets is the Cartesian product of
x y (x, y) =
1,
(x, y) X Y
0,
(x, y) X Y
Fuzzy Relations
Crisp Relations: Example
Universe X = {1, 2, 3}
Universe Y = {a, b, c}
1 1
3 1
R =2
Fuzzy Relations
Fuzzy Relations
Fuzzy relations are mapping elements of one universe,
Fuzzy Relations
Fuzzy Relations
It represents the strength of association between
Fuzzy Relations
Fuzzy Relations
R(x, y) =
for x y
{x y)/(10-y),
1
R (x, y)
x<y
x > 11y
8
Fuzzy Relations
Operations on Fuzzy Relations
Since the fuzzy relation from X to Y is a fuzzy set in X Y,
= 1 - R (x, y)
9
Fuzzy Relations
Fuzzy Relations: Example
Assume two Universes: A = {3, 4, 5} and B = {3, 4, 5, 6, 7}
R (x, y) =
(y-x)/(y+x+2)
if y > x
0,
if y x
3 0
0.11
0.2
0.27
0.33
R =4
0.09
0.17
0.23
0.08
0.14
10
Fuzzy Relations
Fuzzy Relations: Example
3 0
0.11
0.2
0.27
0.33
R =4
0.09
0.17
0.23
0.08
0.14
elements in X and Y
R (x, y) = {[0/(3, 3)], [0.11/(3, 4)], [0.2/(3, 5)],
Fuzzy Relations
Fuzzy Relations: Example
Assume two fuzzy sets:
A B = R =
x1
0.2
0.2
x2
0.3
0.5
x3
0.3
0.9
y1
y2
12
Fuzzy Relations
Fuzzy Relations: Example
Consider the fuzzy relation. Express R using the resolution
principle
R=
0.4
0.9
0
0.3
0.5
0.5
0
0.9
0
0
0.3
0.4
0
0
1
1
+ 0.4
1 1 0
1 1 0 + 0.5
0 0 0
0 1 1
0 1 0
1 1 0
0 0 0
0 1 0
0 0 0
+ 0.9 1 0 0
0 0 0
0 1 0
13
Fuzzy Relations
Composition of Fuzzy Relations
Composition of fuzzy relations used to combine
Fuzzy Relations
Composition of Fuzzy Relations
Consider two fuzzy relation; R (X Y) and S (Y Z), then a
is adopted:
T=RoS
T (x, z) = max [R (x, y) . S (y, z)]
= V [R (x, y) . S (y, z)]
15
Fuzzy Relations
Composition of Fuzzy Relations
The max-min composition can be interpreted as indicating the
Distributivity: R o (S U T) = (R o S) U (R o T)
Associativity: R o (S o T) = (R o S) o T
16
Fuzzy Relations
Composition of Fuzzy Relations: Example
Assume the following universes: X = {x1, x2}, Y = {y1, y2}, and
R=
x1
0.7
0.5
y1 0.9
0.6
0.2
x2
0.8
0.4
and S = y2 0.1
0.7
0.5
y1
y2
z2
z3
z1
Find the fuzzy relation between X and Z using the max-min and
max-product composition
17
Fuzzy Relations
Composition of Fuzzy Relations: Example
By max-min composition
T (x1, z1) = max [min (0.7, 0.9), min (0.5, 0.1)] = 0.7
x1 0.7
0.6
0.5
T = x2 0.8
0.6
0.4
z2
z3
z1
By max-product composition
0.42
0.25
T = x2 0.72
0.48
0.20
z2
z3
z1
18