next up previous
Next: The Pigeonhole Principle Up: Relations and Functions Previous: Some Counting Questions

The Inclusion-Exclusion Principle

In this section we assume that all sets under consideration are finite.

If we have two finite sets tex2html_wrap_inline323 and tex2html_wrap_inline325 , how big is tex2html_wrap_inline327 ? Show by example that it is not always the true that tex2html_wrap_inline329 . What is the correct formula for tex2html_wrap_inline331 ? \

If we have three finite sets tex2html_wrap_inline333 , find a formula for tex2html_wrap_inline335 . \

If we have four finite sets tex2html_wrap_inline337 , find a formula for tex2html_wrap_inline339 . \

Try to extend to k finite sets tex2html_wrap_inline343 . \

This is an example of the Inclusion-Exclusion principle.

Perhaps this will help to understand the following argument from Kenneth P. Bogart in Introductory Combinatorics, pp. 64-65:

Find a formula for the number of functions from an m-element set onto a n-element set.

If, for example, tex2html_wrap_inline349 , then there is one function from X to Y and it is onto. If tex2html_wrap_inline355 , there are ????? functions from X to Y. Of these, one skips tex2html_wrap_inline361 because it maps to tex2html_wrap_inline363 , and one skips tex2html_wrap_inline363 because it maps to tex2html_wrap_inline361 . Thus there are ????? functions from X onto Y.

Now if tex2html_wrap_inline373 , there are ????? functions from X to Y. Of these, ????? functions skip tex2html_wrap_inline361 because they map into tex2html_wrap_inline381 . In fact, for each of the tex2html_wrap_inline383 sets tex2html_wrap_inline385 , there are ????? functions that skip the element of tex2html_wrap_inline385 . However, the difference

  equation54

is smaller than the number of onto functions because some functions that skip tex2html_wrap_inline389 skip tex2html_wrap_inline391 as well, and thus are subtracted twice. In fact, each of the ????? sets tex2html_wrap_inline393 is skipped by exactly one function. Thus we have subtracted tex2html_wrap_inline395 too many functions in the difference (1). The number of functions from X onto Y is then

  equation60

The same kind of argument with tex2html_wrap_inline401 gives the following. There are ????? functions from X to Y. These functions could skip 1, 2, or 3 (but not all 4) elements of Y. The number skipping each of the ????? sets tex2html_wrap_inline385 is ?????. In the difference tex2html_wrap_inline419 , we subtract the functions that skip each of the ????? two-element sets tex2html_wrap_inline393 at least twice. Let us examine the quantity

  equation66

The functions that skip exactly one element are excluded from the quantity exactly once. The functions that skip exactly two elements are excluded from the quantity twice, but are included back in the tex2html_wrap_inline423 term exactly once, and so are excluded exactly once by the quantity in (3). However, the functions that skip the three-element set tex2html_wrap_inline425 are excluded three times in the negative term and are included three times (once for each two-element subset of tex2html_wrap_inline427 ) in the term tex2html_wrap_inline429 . Thus they have yet to be excluded from the sum. Only functions that skip three elements have yet to be taken care of; there are ????? such functions still to be excluded. Thus we have

  equation74

functions from an m-element set onto a four-element set. Formulas (2) and (4) suggest immediately that the number of functions from an m-element set onto a n-element set is ?????


next up previous
Next: The Pigeonhole Principle Up: Relations and Functions Previous: Some Counting Questions

Carl Lee
Wed Sep 30 08:36:10 EDT 1998