symmetricdifference
Symmetric difference, denoted A Δ B, is a binary operation on sets defined by A Δ B = (A ∪ B) − (A ∩ B). Equivalently, A Δ B = (A \ B) ∪ (B \ A). It consists of the elements that belong to exactly one of the sets.
Properties: It is commutative (A Δ B = B Δ A) and associative ((A Δ B) Δ C = A Δ (B Δ C)).
Interpretation: In terms of characteristic functions, χ_{A Δ B} = χ_A ⊕ χ_B, i.e., the XOR of membership. It
Generalization: For a finite collection of sets, the symmetric difference is obtained by iteratively applying Δ, and
Example: A = {1, 2, 3}, B = {2, 3, 4}. A Δ B = {1, 4}.
Applications: used in set theory to study parity, in algorithms for parity checks, in graph theory for
See also: union, intersection, difference, XOR, Boolean algebra, power set.