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 665 — #673<br />

15.11. References 665<br />

(e) Now use the previous parts to prove<br />

X<br />

\<br />

jDj D<br />

. 1/<br />

ˇˇˇˇˇ<br />

jI jC1 S iˇˇˇˇˇ<br />

;¤I f1;:::;ng<br />

i2I<br />

(15.22)<br />

(f) Finally, explain why (15.22) immediately implies the usual <strong>for</strong>m of the Inclusion-<br />

Exclusion Principle:<br />

Homework Problems<br />

jDj D<br />

nX X<br />

. 1/ iC1<br />

iD1<br />

I f1;:::;ng<br />

jI jDi<br />

\<br />

S j : (15.23)<br />

ˇ<br />

ˇˇˇˇˇˇ<br />

Problem 15.59.<br />

A derangement is a permutation .x 1 ; x 2 ; : : : ; x n / of the set f1; 2; : : : ; ng such that<br />

x i ¤ i <strong>for</strong> all i. For example, .2; 3; 4; 5; 1/ is a derangement, but .2; 1; 3; 5; 4/<br />

is not because 3 appears in the third position. The objective of this problem is to<br />

count derangements.<br />

It turns out to be easier to start by counting the permutations that are not derangements.<br />

Let S i be the set of all permutations .x 1 ; x 2 ; : : : ; x n / that are not<br />

derangements because x i D i. So the set of non-derangements is<br />

n[<br />

S i :<br />

(a) What is jS i j?<br />

(b) What is ˇˇSi \ S j<br />

ˇˇ where i ¤ j ?<br />

(c) What is ˇˇSi1 \ S i2 \ \ S ikˇˇ where i1 ; i 2 ; : : : ; i k are all distinct?<br />

iD1<br />

(d) Use the inclusion-exclusion <strong>for</strong>mula to express the number of non-derangements<br />

in terms of sizes of possible intersections of the sets S 1 ; : : : ; S n .<br />

j 2I<br />

(e) How many terms in the expression in part (d) have the <strong>for</strong>m<br />

ˇ<br />

ˇSi1 \ S i2 \ \ S ikˇˇ‹<br />

(f) Combine your answers to the preceding parts to prove the number of nonderangements<br />

is: 1 1<br />

nŠ<br />

1Š 2Š C 1 ˙ 1 <br />

:<br />

3Š nŠ

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

Saved successfully!

Ooh no, something went wrong!