Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Fuzzy sets and operations

Fuzzy sets let engineers model and compute with vague or gradual concepts (membership between 0 and 1) and the notes cover definitions, operations (union, intersection, complement), α-cuts, common t-norms/t-conorms, and worked examples.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Fuzzy sets let an engineer represent and compute with imprecise, subjective, or partially true concepts such as "hot", "tall" or "high priority". They are used in fuzzy controllers, decision support, approximate reasoning, and as building blocks in hybrid soft-computing systems (see topics like Fuzzy inference and fuzzification, and Fuzzy logic controllers).

Key ideas

Start from a crisp idea and relax it: a crisp set either contains an element or does not. A fuzzy set allows degrees of membership.

Definition (fuzzy set). A fuzzy set A on a universe X is defined by its membership function μ_A: X → [0,1], where for each x in X the value μ_A(x) (dimensionless) is the degree to which x belongs to A. (Write this as A = { (x, μ_A(x)) | x ∈ X }.)

Define terms used below before using them.

  • Universe (or universe of discourse) X: the non-empty set of all elements under consideration (for example X = {temperatures} or X = {people}).
  • Membership function μ_A(x): for x ∈ X, μ_A(x) ∈ [0,1] gives the grade of membership (0 means not in A, 1 means fully in A, values in between are partial membership). No units; dimensionless.
  • Support of A: support(A) = { x ∈ X | μ_A(x) > 0 } (a crisp set). It contains all elements with non-zero membership.
  • Core (or kernel) of A: core(A) = { x ∈ X | μ_A(x) = 1 } (a crisp set). Elements fully in A.
  • Normal fuzzy set: A is normal if core(A) ≠ ∅ (at least one element has membership 1).
  • α-cut (or level set) A_α for α ∈ (0,1]: A_α = { x ∈ X | μ_A(x) ≥ α } (a crisp set). For α = 0 we may define A_0 = closure of support(A) or simply support(A) depending on context; exam answers should state which definition the course used.
  • Convex fuzzy set: A is convex if for all x1, x2 ∈ X (with X a vector space) and all λ ∈ [0,1], μ_A(λ x1 + (1−λ) x2) ≥ min(μ_A(x1), μ_A(x2)). This extends the idea of convexity of crisp sets to membership grades.

Set operations (classical or standard definitions used in most courses):

Let A and B be fuzzy sets on X with membership functions μ_A and μ_B. Define:

  • Complement (standard): μ_{A^c}(x) = 1 − μ_A(x) for all x ∈ X. This is the standard negation; other complements exist but state them if used.
  • Intersection (standard t-norm = min): μ_{A∩B}(x) = min(μ_A(x), μ_B(x)). This is the most common intersection used in introductory courses.
  • Union (standard t-conorm = max): μ_{A∪B}(x) = max(μ_A(x), μ_B(x)).

Other common t-norms (for intersection) and t-conorms (for union):

  • Algebraic product (t-norm): μ_{A∩_prod B}(x) = μ_A(x) · μ_B(x).
  • Bounded difference (Łukasiewicz t-norm): μ_{A∩_L B}(x) = max(0, μ_A(x) + μ_B(x) − 1).
  • Algebraic sum (t-conorm): μ_{A∪_sum B}(x) = μ_A(x) + μ_B(x) − μ_A(x)·μ_B(x).
  • Bounded sum (Łukasiewicz t-conorm): μ_{A∪_L B}(x) = min(1, μ_A(x) + μ_B(x)).

State which t-norm/t-conorm you use in an answer. Recall the axioms: any t-norm T and t-conorm S used in exams should satisfy commutativity, associativity, monotonicity, and boundary conditions (T(a,1)=a, T(a,0)=0; S(a,0)=a, S(a,1)=1).

De Morgan-type relations (for the standard complement 1 − μ and standard min/max operators) hold as exact equalities:

For all x ∈ X: μ_{(A∪B)^c}(x) = 1 − max(μ_A(x), μ_B(x)) = min(1 − μ_A(x), 1 − μ_B(x)) = μ_{A^c ∩ B^c}(x). Similarly μ_{(A∩B)^c}(x) = 1 − min(μ_A(x), μ_B(x)) = max(1 − μ_A(x), 1 − μ_B(x)) = μ_{A^c ∪ B^c}(x).

Properties to remember and sometimes prove:

  • For α1 < α2, A_{α2} ⊆ A_{α1}. (α-cuts are nested and monotone decreasing with α.)
  • support(A) = ∪_{α>0} A_α, core(A) = A_1.
  • If A and B are convex fuzzy sets then every α-cut A_α and B_α are crisp convex sets. Moreover, A is convex iff every α-cut A_α is a convex crisp set for all α ∈ (0,1].

Extension principle (brief): If f: X → Y is a mapping and A is a fuzzy set on X with μ_A, then the image fuzzy set B on Y has membership μ_B(y) = sup { μ_A(x) | x ∈ X, f(x) = y }. This is used to propagate fuzziness through functions and is important for fuzzy arithmetic and inference.

Diagram instructions (draw in exams when asked):

  • To illustrate a membership function, draw a 2D plot: horizontal axis labelled x (elements of X, mark sample x-values), vertical axis labelled μ (membership, range 0 to 1). Plot the curve of μ_A(x). Mark points of support (where curve > 0) and core (where curve = 1). For a triangular fuzzy number, draw a triangle touching μ=1 at the peak.

Formulas

μ_A: X → [0,1] — μ_A(x) is the membership grade of x in A (dimensionless). Applies for any fuzzy set A on universe X.

support(A) = { x ∈ X | μ_A(x) > 0 } — support is a crisp subset of X.

core(A) = { x ∈ X | μ_A(x) = 1 } — core is a crisp subset of X.

A_α = { x ∈ X | μ_A(x) ≥ α } for α ∈ (0,1] — α-cut (crisp set). Note monotonicity: if α1 < α2 then A_{α2} ⊆ A_{α1}.

μ_{A^c}(x) = 1 − μ_A(x) — standard complement.

μ_{A∩B}(x) = min(μ_A(x), μ_B(x)) — standard intersection (min t-norm).

μ_{A∪B}(x) = max(μ_A(x), μ_B(x)) — standard union (max t-conorm).

μ_{A·B}(x) = μ_A(x) · μ_B(x) — algebraic product t-norm.

μ_{A⊕B}(x) = μ_A(x) + μ_B(x) − μ_A(x)·μ_B(x) — algebraic sum t-conorm.

(If using these formulas in an answer, name which operator you use.)

Worked examples

Example 1 — discrete universe, standard operators

Let X = {x1, x2, x3, x4}. Define fuzzy sets A and B by:

μ_A(x1)=0.0, μ_A(x2)=0.4, μ_A(x3)=0.8, μ_A(x4)=1.0. μ_B(x1)=0.2, μ_B(x2)=0.6, μ_B(x3)=0.5, μ_B(x4)=0.9.

Compute (i) A ∩ B (standard min), (ii) A ∪ B (standard max), (iii) A^c, (iv) A_0.5, support(A), core(A), and (v) algebraic product at x3.

Steps and answers:

  1. Intersection (min) for each xi: μ_{A∩B}(xi)=min(μ_A(xi),μ_B(xi)).

    • x1: min(0.0,0.2)=0.0
    • x2: min(0.4,0.6)=0.4
    • x3: min(0.8,0.5)=0.5
    • x4: min(1.0,0.9)=0.9 Final: μ_{A∩B} = {0.0, 0.4, 0.5, 0.9} for x1..x4 respectively.
  2. Union (max) for each xi: μ_{A∪B}(xi)=max(μ_A(xi),μ_B(xi)).

    • x1: max(0.0,0.2)=0.2
    • x2: max(0.4,0.6)=0.6
    • x3: max(0.8,0.5)=0.8
    • x4: max(1.0,0.9)=1.0 Final: μ_{A∪B} = {0.2, 0.6, 0.8, 1.0}.
  3. Complement A^c: μ_{A^c}(xi)=1−μ_A(xi).

    • x1: 1−0.0=1.0; x2: 0.6; x3: 0.2; x4: 0.0. Final: μ_{A^c} = {1.0, 0.6, 0.2, 0.0}.
  4. α-cut A_{0.5}: elements with μ_A(x) ≥ 0.5 are x3 (0.8) and x4 (1.0). So A_{0.5} = {x3, x4}.

  5. support(A) = {x2, x3, x4} (μ>0). core(A) = {x4} (μ=1).

  6. Algebraic product at x3: μ_A(x3)·μ_B(x3) = 0.8·0.5 = 0.40. Answer: 0.40.

Example 2 — triangular fuzzy number and α-cut

Let A be a triangular fuzzy number on ℝ with membership function μ_A(x):

  • μ_A(x) = (x − 10)/(15 − 10) for 10 ≤ x ≤ 15 (rising edge),
  • μ_A(x) = (20 − x)/(20 − 15) for 15 ≤ x ≤ 20 (falling edge),
  • μ_A(x) = 0 otherwise.

This is a triangle with base from 10 to 20 and peak at x=15 with μ=1. Draw a triangle on x-axis 10..20 and μ-axis 0..1; label 10, 15, 20, and μ=1 at 15.

Find A_{0.6} (the α-cut for α=0.6) and the support and core.

Steps:

  1. For α=0.6, solve (x−10)/5 ≥ 0.6 on rising side: x − 10 ≥ 3 ⇒ x ≥ 13.
  2. On falling side, solve (20−x)/5 ≥ 0.6 ⇒ 20 − x ≥ 3 ⇒ x ≤ 17.
  3. So A_{0.6} = [13, 17]. Support(A) = (10,20). Core(A) = {15}.

This is a standard exam question: state the piecewise formulas, show algebra, and give the interval as the answer.

(If asked for centroid or defuzzified crisp value by centre-of-area, compute area of trapezoids/triangles; show steps and units as appropriate.)

Common mistakes

  • Mistaking support(A) (μ>0) for core(A) (μ=1) or for α-cut (μ ≥ α). Write definitions clearly in the answer.
  • Using α = 0 incorrectly: clarify whether A_0 means closure(support) or support; follow course convention.
  • Omitting units/labels in diagrams: always label axes (x and μ), mark range of μ as [0,1].
  • For triangular/trapezoidal numbers, algebra mistakes when solving linear equations for α-cuts. Show algebra steps.

For your exam

Question types you will see: definition of terms (give precise definitions and properties), short notes (compare t-norms), derivations (prove α-cut monotonicity, prove De Morgan with standard complement), numericals (calculate union/intersection/complement for discrete data, α-cuts for triangular membership), diagram questions (draw and label membership functions, show support and core), and small proofs (show convexity or normality). Full-mark answers include: precise definition with symbols, statement of assumptions (e.g., which complement or t-norm used), step-by-step algebra or pointwise calculations, and labelled diagrams where required.

Make answers exam-friendly: write the membership functions explicitly, compute each point in a table for discrete universes, state the operator (min/max or algebraic), and finish with a boxed final answer.

Quick check

  1. Define a fuzzy set and its membership function in one sentence.
  2. For μ_A(x)=0.3 and μ_B(x)=0.8 at some x, what is μ_{A∪B}(x) and μ_{A∩B}(x) using standard operators?
  3. For a triangular fuzzy number with base [2,8] and peak 5, what is A_{0.5}?

Answers: 1) A fuzzy set on X assigns each x ∈ X a membership μ_A(x) ∈ [0,1]; μ_A is the membership function. 2) μ_{A∪B}(x)=max(0.3,0.8)=0.8, μ_{A∩B}(x)=min(0.3,0.8)=0.3. 3) Solve linear edges: rising from 2→5, falling 5→8; at α=0.5 the interval is [3.5,6.5].

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?