Definition
Inclusion-Exclusion Principle
The inclusion-exclusion principles that state the number of elements of of finite sets is given by:
Example
3 Intersecting Sets
When creating the union over all sets , the number of unique elements in that set can be computed by:
However, their might be intersections between two of those sets, meaning that some elements are counted multiple times. Therefore, the intersections need to be subtracted:
Another problem arises: The intersection is subtracted more than once. Therefore, we need to add it back to the equation: