Skip to main content

Inclusion-Exclusion Principle

In combinatorics(combinatorial mathematics), theinclusion--exclusion principleis a counting technique which generalizes the familiar method of obtaining the number of elements in the union of two finite sets; symbolically expressed as

image

where A and B are two finite sets and |S| indicates the cardinality of a setS(which may be considered as the number of elements of the set, if the set is finite). The formula expresses the fact that the sum of the sizes of the two sets may be too large since some elements may be counted twice. The double-counted elements are those in the intersection of the two sets and the count is corrected by subtracting the size of the intersection.

The principle is more clearly seen in the case of three sets, which for the sets A, B and C is given by

image

Illustration using Venn Diagram

image

References