The inclusion -exclusion principle gives a way to compute the size of the union of multiple non-disjoint sets.


Inclusion-Exclusion Principle

EXAMPLE

alphabet , set of words (order matters), , empty word .
, length
… how big is the set of words containing ?
… words that don’t contain
…???