Symmetric difference
The elements that lie in exactly one of two sets.
Symmetric difference
A symmetric difference of sets and is the set of elements that belong to exactly one of them:
This operation is built from set difference and union . It is symmetric in and and measures “disagreement” between sets: exactly when .
Examples:
- .
- If and are disjoint, then .