Beruflich Dokumente
Kultur Dokumente
Principle of Inclusion-Exclusion
Principle of Inclusion and Exclusion
• The Principle of Inclusion and Exclusion (PIE) is a counting
technique that computes the number of elements that satisfy at least
one of several properties while guaranteeing that elements satisfying
more than one property are not counted twice.
Principle of Inclusion & Exclusion
| A B || A | | B | | A B |
The above equation represents the principle of inclusion
and exclusion for two sets A and B.
The name comes from the fact that to calculate the
elements in a union, we include the individual elements
of A and B but subtract the elements common to A and
B so that we don’t count them twice.
This principle can be generalized to n sets.
A A
A B
B | A B || A | | B | | A B |
It’s simply a matter of not over-counting the blue area in the intersection.
Problem 1
If F is faculty who speak French and R is the faculty who speak
Russian, then given that
n(F) = |F| = 200
n(R) = |R|= 50
n (F∩R) = | F∩R | = 20
we need to find |F U R|
Then by the PIE,
we have | F∩R | = |F| + |R| - |F U R|
Thus |F U R| = 200+50-20=230
Problem2
Total number of committees possible is
C(10,5) = 252 ways
Let A be the set of committees that include Professor A
B be the set of committees that include Professor B.
Then n(A) = C (9,4)=126
n(B) = C (9,4)=126
n(A ∩ B) = C(8,3) = 5
Section 3.3 16
|A B C| = |A (B C)| = |A| + |B C| - |A (B C)|
= |A| + |B| + |C| - |B C| - |(A B) (A C)|
= |A| + |B| + |C| - |B C| - (|A B| + |A C| - |A B C|)
= |A| + |B| + |C| - |B C| - |A B| - |A C| + |A B C|
Given in the problem are the following:
|B C| = 8
|A B| = 9
|A C| =16
|A B C| = 50
Hence, using the above formula, we have
47 = 30 + 26 + 18 -9 -16 -8 + |A B C|
Hence, |A B C| = 6