ISC Unit I Topic-3
ISC Unit I Topic-3
Fuzzy Logic
Fuzzy logic (FL) is an essential component of soft computing.
FL is a mathematical language to express something which is
meaningful to others.
Like FL, there are some other mathematical languages:
Relational algebra
Boolean logic
Predicate logic or algebra
Fuzzy Set/Algebra
So FL essentially combined the different algebra like: Relational
Algebra + Boolean Algebra + Predicate Algebra
Fuzzy:
Dictionary meaning of fuzzy is Not Clear, Noisy etc.
Ex: Is the picture on this slide is CLEAR?/FUZZY
Ex: image is NOISY/FUZZY
Ex: when we distinguish the regions / circle of boundary regards
separation are clear/not clear/fuzzily
Yes / No
CRISP ANSWER
True / False
Here, If we ask something and answer to that question and if it has the
clear meaning then we can say answer has Crisp answer. Usually
express either Yes/No or True /False.
MILK YES
WATER
A Liquid CRISP
JUICE
SPRITE NO
Is liquid
colorless?
Is person Extremely
honest ? Dishonest
Crisp Sets(CS)-
• Universe of Discourse-
• The universe of discourse (universal set) is the set which, with reference to a
particular context contains all possible elements having the same characteristics
and from which sets can be formed.
• The universal set is denoted by E
• Eg- The universal set of all students in a university, The universal set of all
numbers in Euclidean space.
• Set-
• A set is a well defined collection of objects.
• Here well defined means the object either belongs to or does not belongs to the
set.
• Given a set A whose objects are a1,a2,a3,…..an, we write A as A={a1,a2,a3…
an}---------Here a1,a2….are called the members of the set.
• Eg- { Gandhi, Bose, Nehru}
• A set may also be defined based on the properties the members have to satisfy.
In such a case, a set A is defined as A={x | P(x) }, where P(x) stands for the
property P to be satisfied by the member x. This is read as ‘A is the set of all X
such that P(x) is satisfied’
• Eg1-{x | x is an odd number}
• Eg2-{y | y>0 and y mod 5=0}
A E
• If E represents the set of university students, A represents the set of female
students.
• Membership-
• An element x is said to be a member of set A if x belons to set A.
• The membership is indicated by “ ∈” and pronounced as “belongs to”.
• Thus x ∈ A means x belons to A and x ∉ A means x does not belons to A.
• Eg- A={4,5,6,7,8,10}………for x=3 and y=4, we have x ∉ A and y ∈ A.
• Cardinality-
• The numbers of elements in a set is called its cardinality.
• Cardinality of set A is denoted as n(A) or |A| or #A
• If A={4,5,6,7}..then |A|=4
Crisp Set(CS):-
Ex: X = Crisp Set and denotes entire population of India
H = Another set denotes all Hindu population
M = Another set denotes all Muslim population
Universe of discourse X
H
M
Here, all the sets are of finite numbers of individuals. Such a set called
Crisp Set. And X is universe of discourse (region)
Fuzzy System(FS):-
• If we describe a system in the way how Fuzzy decides, then the
system is called FUZZY SYSTEM.
• FS contains:
Fuzzy Elements
Fuzzy Sets (One or more fuzzy elements)
Fuzzy Rules ( Many fuzzy sets connected)
Fuzzy Implications (Many fuzzy rules)
So, the difference between two is basically how they have their own
membership values that means 0.1, 0.9 etc. at the end but all them
belongs to good student.
Although Salman may score less and Ankit may score highest here, all
belongs to good student.
NOTES :
• A crisp set is a fuzzy set but a fuzzy set is not crisp set.
• In fuzzy set membership value is mentioned between 0 & 1 both
inclusive.
• In case of crisp set the elements are with extreme values of degree
of membership namely either 1/0
Crisp Set Fuzzy Set
1. S = {s | s A} 1. F = (s, μ) | s A and μ(s) is the
2. It is a collection of elements. degree of s.
3. Inclusion of an element s A 2. It is collection of ordered
into S is crisp, that is, has strict pairs.
boundary yes or no. 3. Inclusion of an element s A into
F is fuzzy, that is, if present, then
with a degree of
membership.
18 Department of CSE, GIET University, Gunupur Saturday, May 4, 2024
Soft Computing Basic Terminology & Notation
Note:
μA(x) map each element of X onto a membership grade (or
membership value) between 0 and 1 (both inclusive).
Question:
How (and who) decides μA(x) for a Fuzzy set A in X?
Degree of Membership:
Example: How Course evaluation in Crisp / Fuzzy Way?
Crisp Graph
Fuzzy Graph
Degree of Membership:
• For Definition refer to hand written note-
• The way through which membership value can be decided and we
can decide these membership values for each element that belongs
to fuzzy set.
• How to decide the degree of memberships of elements in a fuzzy
set?
City Bangalore Bombay Hyderabad Kharagpur Madras Delhi
DoM 0.95 0.90 0.80 0.01 0.65 0.75
Example:
X = All cities in India
A = City of comfort
A={(Bhopal,0.2),(New Delhi, 0.7), (Bangalore, 0.7), (Chennai, 0.9),
(Hyderabad, 0.3), (Kolkata, 0.1)}
FUZZY
TERMINOLOGIES
Core: The core of a fuzzy set A is the set of all points x in X such that
μA(x) = 1
• Core( A ) = { x | μA(x) = 1, x ∈ X }
Bandwidth :
• For a normal and convex fuzzy set, the bandwidth (or width) is
defined as the distance the two unique crossover points:
• Bandwidth (A) = | x1 - x2 | ,where μA(x1) = μA(x2) = 0.5
Symmetry :
A fuzzy set A is symmetric if its membership function around a
certain point x = c, namely μA(x + c) = μA(x - c) for all x X.
Convexity :
• Fuzzy Set A is convex if μA( λx1 + (1 – λ) x2)) ≥ min(μA(x1) , μA(x2)),where
x1, x2 ∈ X.
• In other words, for any elements x, y and z in a fuzzy set A, the relation
x < y < z implies that: μA(y) ≥ min (μA(x), μA(z)). If this condition holds
for all points, the fuzzy set is called a convex fuzzy set.
Open right:
Open right fuzzy sets have all the elements on left after a certain point have a
membership value of 0, and all the elements on the right side after a certain point
have a membership value of 1.
If = 0 and = 1
Closed-
Closed fuzzy sets have all the elements on the left or right side after a certain point have
a membership value of 0.
If = 0= 0
Relative Cardinality-
|| A || = | A | / | X |
Fuzzy Logic: Fuzzy logic deals with ambiguity and vagueness. When
we say about certainty of a thing.
Example: India will win the T20 tournament with a chance 60%
means that out of 100 matches, India own 60 matches.
Forecasting : When you take the information from the past job and
apply it to new job.