Union, intersection, complement
Three core set operations.
Given two sets and within a universal set :
Union — all elements in OR (or both).
Intersection — all elements in BOTH AND .
Complement — all elements of that are NOT in .
Set difference — elements in but not in .
Notation: the rectangle around the circles represents the universal set . Each circle is one set.
- : OR (everything in either).
- : AND (overlap).
- : NOT (outside , inside ).
- : in but not .