06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 637 — #645<br />

15.11. References 637<br />

n-element subsets.<br />

From another perspective, the number of hands with exactly r red cards is<br />

! !<br />

n 2n<br />

r n r<br />

since there are n <br />

r ways to choose the r red cards and<br />

2n<br />

n r<br />

ways to choose the<br />

n r black cards. Since the number of red cards can be anywhere from 0 to n, the<br />

total number of n-card hands is:<br />

! !<br />

nX n 2n<br />

jSj D<br />

:<br />

r n r<br />

rD0<br />

Equating these two expressions <strong>for</strong> jSj proves the theorem.<br />

Finding a Combinatorial Proof<br />

Combinatorial proofs are almost magical. Theorem 15.10.2 looks pretty scary, but<br />

we proved it without any algebraic manipulations at all. The key to constructing a<br />

combinatorial proof is choosing the set S properly, which can be tricky. Generally,<br />

the simpler side of the equation should provide some guidance. For example, the<br />

3n right side of Theorem 15.10.2 is<br />

n , which suggests that it will be helpful to<br />

choose S to be all n-element subsets of some 3n-element set.<br />

<br />

15.11 References<br />

[5], [15]<br />

Problems <strong>for</strong> Section 15.2<br />

Practice Problems<br />

Problem 15.1.<br />

Alice is thinking of a number between 1 and 1000.<br />

What is the least number of yes/no questions you could ask her and be guaranteed<br />

to discover what it is? (Alice always answers truthfully.)<br />

(a)

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

Saved successfully!

Ooh no, something went wrong!