PritamGhosh FL CA2
PritamGhosh FL CA2
Basic Operations:-
Union ( ∪ ): The union of two sets \(A\) and \(B\) is a set containing all elements that are in \(A\), \(B\), or both.
Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A ∪ B = {1, 2, 3, 4, 5}.
Intersection ( ∩ ): The intersection of two sets A and B is a set containing all elements that are common to both
A and B.
Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A ∩ B = {3}.
Difference ( − ): The difference of two sets A and B (denoted as A - B) is a set containing all elements that are
in A but not in B.
Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A - B = {1, 2}.
Complement ( 𝐶 ): The complement of a set A contains all elements that are not in A.
Example: If the universal set U = {1, 2, 3, 4, 5} and A = {1, 2, 3}, then the complement of A (denoted as A^C)
is {4, 5}.
Operations on Relations:-
Inverse Relation (R⁻¹): If R is a relation from A to B, then the inverse relation \(R^{-1}\) is a relation from B
to A defined as:
𝑅 = {(b, a) | (a, b) ∈ R}
Example: If R = {(1, x), (2, y)}, then 𝑅 = {(x, 1), (y, 2)}.
Composition of Relations (R ∘ S): If R is a relation from A to B, and S is a relation from \(B\) to \(C\), then
the composition of R and S is a relation from A to C defined as:
R ∘ S = {(a, c)} | there exists b ∈ B such that (a,b) ∈ R and (b,c) ∈ S}
Example: If R={(1,x),(2,y)} and S={(x,α),(y,β)}, then R∘S={(1,α),(2,β)} .
2. Explain fuzzy set operation, properties and operations on relations with examples.
Ans:
Fuzzy Set Operations:-
In fuzzy logic, a fuzzy set is a set where each element has a degree of membership ranging from 0 to 1, unlike classical
sets where an element is either in the set or not (membership is either 0 or 1).
1. Union (OR Operation):
The union of two fuzzy sets A and B is defined as the maximum of the membership values of the elements in each set.
Mathematically:
μA∪B(x)=max(μA(x),μB(x))
Example:
Let A and B be two fuzzy sets with membership functions μA(x) and μB(x):
μA(x) = {(x1,0.2),(x2,0.7)}
μB(x) = {(x1,0.5),(x2,0.4)}
Then, μA∪B(x) will be:
μA∪B(x1) = max(0.2,0.5)=0.5
μA∪B(x2) = max(0.7,0.4)=0.7
Example:
Let R be a fuzzy relation from A to B and S be a fuzzy relation from B to C:
μR(x,y) = {((x1,y1),0.6), ((x1,y2),0.3)}
μS(y,z) = {((y1,z1),0.5), ((y2,z1),0.7)}