06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 630 — #638<br />

630<br />

Chapter 15<br />

Cardinality Rules<br />

First, we must determine the sizes of the individual sets, such as P 60 . We can use<br />

a trick: group the 6 and 0 together as a single symbol. Then there is an immediate<br />

bijection between permutations of f0; 1; 2; : : : 9g containing 6 and 0 consecutively<br />

and permutations of:<br />

f60; 1; 2; 3; 4; 5; 7; 8; 9g:<br />

For example, the following two sequences correspond:<br />

.7; 2; 5; 6; 0; 4; 3; 8; 1; 9/ ! .7; 2; 5; 60; 4; 3; 8; 1; 9/:<br />

There are 9Š permutations of the set containing 60, so jP 60 j D 9Š by the Bijection<br />

Rule. Similarly, jP 04 j D jP 42 j D 9Š as well.<br />

Next, we must determine the sizes of the two-way intersections, such as P 42 \<br />

P 60 . Using the grouping trick again, there is a bijection with permutations of the<br />

set:<br />

f42; 60; 1; 3; 5; 7; 8; 9g:<br />

Thus, jP 42 \ P 60 j D 8Š. Similarly, jP 60 \ P 04 j D 8Š by a bijection with the set:<br />

f604; 1; 2; 3; 5; 7; 8; 9g:<br />

And jP 42 \ P 04 j D 8Š as well by a similar argument. Finally, note that jP 60 \<br />

P 04 \ P 42 j D 7Š by a bijection with the set:<br />

f6042; 1; 3; 5; 7; 8; 9g:<br />

Plugging all this into the <strong>for</strong>mula gives:<br />

jP 42 [ P 04 [ P 60 j D 9Š C 9Š C 9Š 8Š 8Š 8Š C 7Š:<br />

15.9.4 Union of n Sets<br />

The size of a union of n sets is given by the following rule.<br />

Rule 15.9.1 (Inclusion-Exclusion).<br />

jS 1 [ S 2 [ [ S n j D<br />

minus<br />

plus<br />

minus<br />

plus<br />

the sum of the sizes of the individual sets<br />

the sizes of all two-way intersections<br />

the sizes of all three-way intersections<br />

the sizes of all four-way intersections<br />

the sizes of all five-way intersections, etc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!