3 Crisp and Fuzzy Relations
3 Crisp and Fuzzy Relations
2012 1
3.1. Introduction
A relation is of fundamental importance in all engineering fields.
Relations can be also be used to represent similarity. Relations are
involved in logic, classification, pattern recognition, and control
Some relations concern elements within the same universe: one
measurement is larger than another, one event occurred earlier than
another, one element resembles another, etc.
Other relations concern elements from disjoint universes: the
measurement is large and its rate of change is positive, the x-
coordinate is large and the y-coordinate is small, for example.
These examples are relationships between two objects, but in
principle we can have relationships which hold for any number of
objects.
2012 2
3.2. Crisp Relation
A Crisp Relation R from a set A to a set B assigns to each
ordered pair exactly one of the following statements:
(i)’’a is related to b’’ or (ii) ’’a is not related to b’’
Which means:
AxB = {(a1,b1),(a1,b2),(a2,b1),(a2,b2),(a3,b1),(a3,b2)}
2012 3
example 1: “Owning Cars”-Crisp Relation
X = {Aly, Baher, Kamel}
Y = {BMW, Chrysler, Ford, Mazda, Fiat}
2012 4
example 2: “Close to”-Crisp Relation
X = Y = {1, .......,8}
1 2 3 4 5 6 7 8
1 1 1 0 0 0 0 0 0
2 1 1 1 0 0 0 0 0
3 0 1 1 1 0 0 0 0
4 0 0 1 1 1 0 0 0
5 0 0 0 1 1 1 0 0
6 0 0 0 0 1 1 1 0
7 0 0 0 0 0 1 1 1
8 0 0 0 0 0 0 1 1
2012 5
3.3. Fuzzy Relation:
Fuzzy relations map elements of one universe, say U, to those of
another universe, say V, through the Cartesian product of the two
universes. However, the ‘‘strength’’ of the relation between ordered
pairs of the two universes is measured with a membership function
expressing various ‘‘degrees’’ of strength of the relation on the unit
interval [0,1].
As an example a fuzzy relation “Friend” describes the degree of friendship
between two persons (in contrast to either being friend or not being friend in
classical relation!)
2012 6
example 3: Fuzzy relation “Similarity” U = V = {1, . . . , 8}
1 2 3 4 5 6 7 8
1 1 0.5 0 0 0 0 0 0
2 0.5 1 0.5 0 0 0 0 0
3 0 0.5 1 0.5 0 0 0 0
4 0 0 0.5 1 0.5 0 0 0
5 0 0 0 0.5 1 0.5 0 0
6 0 0 0 0 0.5 1 0.5 0
7 0 0 0 0 0 0.5 1 0.5
8 0 0 0 0 0 0 0.5 1
2012 7
example 4: Let A be a fuzzy set defined on a universe of three discrete
emperatures, X = {x1,x2,x3}, and B be a fuzzy set defined on a universe
of two discrete pressures, Y = {y1,y2} Fuzzy set A represents the
“ambient” temperature and fuzzy set B the “near optimum” pressure for
a certain heat exchanger, and the Cartesian product might represent
the conditions (temperature-pressure pairs) of the exchanger that are
associated with “efficient” operations. For example, let:
y1 y2
Then AxB = R = x1 0.2 0.2
x2 0.3 0.5
x3 0.3 0.9
2012 8
Because the fuzzy relation is one kind of fuzzy sets. Therefore we
can apply operations of fuzzy set to the relations (e.g. Union,
Intersection, Complement,..).
We get
and
2012 9
Also -cut can be calculated, but the result is a crisp
relation. So for example
2012 10
3.4. Composition of Fuzzy Relations:
A fuzzy relation R is defined on sets A, B and another
fuzzy relations S is defined on sets B,C.
That is, R ⊆ A x B, S ⊆ B x C.
The composition S • R = SR of the two relations R and S
expresses the relation from A to C.
This composition is defined by an inner product. The inner
product is similar to an ordinary matrix (dot) product,
except Multiplication is replaced by Minimum and
Summation by Maximum. Thus this composition is defined by
the following
R b1 b2 b3 b4 S c1 c2 c3
a1 0.1 0.2 0.0 1.0 b1 0.9 0.0 0.3
a2 0.3 0.3 0.0 0.2 b2 0.2 1.0 0.8
a3 0.8 0.9 1.0 0.4 b3 0.8 0.0 0.7
b4 0.4 0.2 0.3
R b1 b2 b3 b4 S c1 c2 c3
a1 0.1 0.2 0.0 1.0 b1 0.9 0.0 0.3
a2 0.3 0.3 0.0 0.2 b2 0.2 1.0 0.8
a3 0.8 0.9 1.0 0.4 b3 0.8 0.0 0.7
b4 0.4 0.2 0.3
S•R c1 c2 c3
a1 0.4 0.2 0.3
a2 0.3 0.3 0.3
a3 0.8 0.9 0.8
2012 14
Application: Computer Engineering
In computer engineering, different logic families are often compared on the
basis of their power-delay product. Consider the fuzzy set F of logic
families, the fuzzy set D of delay times (ns), and the fuzzy set P of power
dissipations (mw).
If F = {NMOS,CMOS,TTL,ECL,JJ}, D = {0.1,1,10,100},
P = {0.01,0.1,1,10,100}
Suppose R1 = D x F and R2 = F x P
then we can compute
R3= R1 o R2 R3= R1 o R2
2012 16
Assume
2012 17
from which
2012 18
3.5. Properties of Fuzzy Relations:
the properties of commutativity, associativity, distributivity,
involution, idempotency and De Morgan’s principles all hold for
fuzzy relations. But since there is overlap between a relation and
its complement:
2012 19
3.5. Fuzzy Tolerance and Equivalence Relations:
Let R be the fuzzy relation defined on the set of cities and
representing the concept very near. We may assume that a city is
certainly (i.e., to a degree of 1) very near to itself. The relation is
therefore reflexive. Furthermore, if city A is very near to city B,
then B is certainly very near to A. Therefore, the relation is also
symmetric. Finally, if city A is very near to city B to some
degree, say .7, and city B is very near to city C to some degree,
say .8, it is possible (although not necessary) that city A is very
near to city C to a smaller degree, say 0.5. Therefore, the relation
is nontransitive.
A fuzzy relation is a fuzzy equivalence relation if all three of the
following properties for matrix relations define it:
Reflexivity μR(xi, yi) = 1
Symmetry μR(xi, yj ) = μR(xj, yi)
Transitivity μR(xi, yj ) = λ1 and μR(xj, yk) = λ2
→ μR(xi, yk) =λ where λ ≥ min[λ1, λ2].
2012 Hany Selim 20
Fuzzy Tolerance and Equivalence Relations (Contd.)
Tolerance relation (Aehnlichkeitsrelation), has only the properties of
reflexivity and symmetry.
A tolerance relation, R, can be reformed into an equivalence relation by at
most (n − 1) compositions with itself, where n is is the number of rows
or columns of R.
Example:
Consider the relation
R3(x1, y2) = 0.8 , and R3(x2, y4) = 0.5 , and R3(x1, y4) = 0.5 ≥ min(0.8, 0.5)
2012 22