Lecture 3
Lecture 3
Fuzzy Logic
Lecture 3: Classical Relations and
Fuzzy Relations
Instructor:
Prof. Ayman AbuBaker
Classical Relations and Fuzzy Relations
A relation is of fundamental importance in all-engineering, science, and
mathematically based fields. Relations are involved in logic, approximate reasoning,
classification, rule-based systems, pattern recognition, and control.
In the case of crisp relation there are only two degrees of relationship between the
elements of sets in a crisp relation, i.e., “completely related” and “not related”. A
crisp relation represents the presence or absence of association, interaction, or
interconnectedness between the elements of two or more sets.
But fuzzy relations have infinite number of relationship between the extremes of
completely related and not related between the elements of two or more sets
considered.
Cartesian Product
For the crisp sets A1, A2, . . . , An, the set of n-tuples a1, a2, . . ., an, where a1 ∈ A1,
a2 ∈ A2, . . . , an ∈ An, is called the Cartesian product of A1, A2, . . . , An.
In Cartesian product the first element in each pair is a member of x and the second
element is a member of y formally, X x Y
XxY
Cartesian Product
A = {0, 1} and
B = {e, f, g}
B × A = {(e, 0), (e, 1), (e, 1), (f, 0), (f,1), (g,0), (g, 1)},
B × B = B2 = {(e, e), (e, f), (e, g), (f, e), (f, f), (f, g), (g, e), (g, f), (g, g)}.
Classical Relations
A relation among classical sets x1, x2, . . . , xn and y1, y2, . . . , yn is a subset of the
Cartesian product.
It is denoted by R
X × Y = {(x, y)/x ∈ X, y ∈ Y.
When the universe or the set are finite, a matrix can conveniently represent the
relation.
The matrix is called as relation matrix
If X = {2, 4, 6} and Y = {p, q, r}, if they both are related to each other entirely, then
the relation between them can be given by:….
Classical Relations
When the universe or the set are finite, a matrix can conveniently represent the
relation.
The matrix is called as relation matrix
If X = {2, 4, 6} and Y = {p, q, r}, if they both are related to each other entirely, then
the relation between them can be given by:
Sagittal diagram
Classical Relations
Relation Matrix ?
Classical Relations
Example: Let R be a relation among the three sets
X= {Hindi, English}, Y = {Dollar, Euro, Pound, Rupees}, and Z ={India, Nepal, United
States, Canada}
R (x, y, z) = {Hindi, Rupees, India}
{Hindi, Rupees, Nepal}
{English, Dollar, Canada}
{English, Dollar, United States}.
Solution.
India Nepal US Canada
Dollar 0 0 0 0
Euro 0 0 0 0
Pound 0 0 0 0
Rupees 1 1 0 0
Hindi
R=?
Relation matrix?
Sagittal diagram?
Classical Composition
– Max–min composition,
– Max–product composition.
We wish to find a relation T that relates the ordered pair (x1, z2), i.e., (x1, z2) ∈ T.
In this example,
Sagittal diagram?
Relation matrix?
Max-min composition operations?
Classical Composition
We wish to find a relation T that relates the ordered pair (x1, z2), i.e., (x1, z2) ∈ T.
In this example,
Sagittal diagram
Classical Composition
We wish to find a relation T that relates the ordered pair (x1, z2), i.e., (x1, z2) ∈ T.
In this example,
Relation matrix
Classical Composition
We wish to find a relation T that relates the ordered pair (x1, z2), i.e., (x1, z2) ∈ T.
In this example,
What is the relation T that relates the ordered pair (x1, z1)?
Fuzzy Relation
Fuzzy composition can be defined just as it is for crisp (binary) relations. Suppose
R∼ is a fuzzy relation on the Cartesian space X × Y,
S∼ is a fuzzy relation on Y × Z, and
T∼ is a fuzzy relation on X × Z;
Solution:Max–Min Composition
T
Fuzzy Relation
Composition
Solution:Max–Product Composition