Soft Computing Techniques
Week-01 Assignment-01 (Solution)
Solutions for Week 1: Fuzzy sets, membership functions, and basic operations
1. (b). A fuzzy set with µA (x) = 1 for all x is called a universal fuzzy set.
2. (c). Fuzzy logic is particularly effective in handling problems that involve ambiguity and imprecise
information.
3. (a). The α-cut of a fuzzy set A is defined as
Aα = {x ∈ X | µA (x) ≥ α}
=⇒ An α-cut of a fuzzy set is a crisp set that contains all elements x with membership value µA (x)
greater than or equal to α.
4. (a). A fuzzy set A defined on a universe X is convex, if for two elements x1 , x2 ∈ X and for any
λ ∈ [0, 1], the following inequality holds :
µA λx1 + (1 − λ)x2 ≥ min µA (x1 ), µA (x2 )
5. (b). Given that µA (x) = 0.7 and µB (x) = 0.5, we know that
µA∩B (x) = min(µA (x), µB (x)) = min(0.7, 0.5) = 0.5
6. (b). For the given fuzzy set A, y has a membership value of 0.6 which is between 0 and 1, indicating
partial membership.
7. 0.5, range is 0.49 to 0.51.
We need to compute µA∩B (2). We have, µA (2) = 0.5 and µB (2) = 0.7 then
µA∩B (2) = min(0.5, 0.7) = 0.5
8. (b). Fuzzy sets allow partial membership, whereas crisp sets have binary membership.
9. 0.6, range is 0.59 to 0.61.
We need to find µA (7). Given that the membership function is
|x − 5|
µA (x) = 1 − , 0 ≤ x ≤ 10
5
|7 − 5|
=⇒ µA (7) = 1 −
5
|2|
=⇒ µA (7) = 1 −
5
2
=⇒ µA (7) = 1 −
5
=⇒ µA (7) = 1 − 0.4
=⇒ µA (7) = 0.6
10. 0.72, the range is 0.719 to 0.721.
For given µA and µB we have,
µA (x) = 0.6, µA (y) = 0.8
and,
µB (x) = 0.3, µB (y) = 0.5
Using algebraic sum operator, we have,
µA∪B (x) = µA (x) + µB (x) − µA (x) · µB (x)
= 0.6 + 0.3 − (0.6) · (0.3)
= 0.9 − 0.18
=⇒ µA∪B (x) = 0.72
11. (c). For a triangular membership function, c represents the center of the triangle i.e., the location
where the membership value is maximum, µA (x) = 1.
12. (c). Given fuzzy set A,
A0.2 = {x | µA (x) ≥ 0.2}
=⇒ A0.2 = {1, 3, 4, 5, 6}
13. (b). For two given fuzzy sets A and B, µA∪B is given by,
µA∪B (x) = x max µA (x), µB (x) | x ∈ X
=⇒ µA∪B (x) = {(1, 1), (2, 0.8), (3, 0.8), (4, 1.0), (5, 0.7), (6, 0.2)}
14. (a). The membership function is not always continuous. For example, on a fuzzy set A,
µA = {(x, 0.6), (y, 0.8)} is discrete and not continuous.
15. (b). Linear step is not valid in ‘Fuzzy-logic’. A ‘step’ function has a sudden jump from one point to
another, which is too sharp for fuzzy sets. Fuzzy logic need smooth transitions.