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 618 — #626<br />

618<br />

Chapter 15<br />

Cardinality Rules<br />

2. The suit of the extra card, which can be selected in 4 ways.<br />

3. The rank of the extra card, which can be selected in 12 ways.<br />

For example, the hand above is described by the sequence:<br />

.7; K; A; 2; }; 3/ $ f7}; K|; A~; 2; 3}g:<br />

Are there other sequences that correspond to the same hand? There is one more!<br />

We could equally well regard either the 3} or the 7} as the extra card, so this<br />

is actually a 2-to-1 mapping. Here are the two sequences corresponding to the<br />

example hand:<br />

.7; K; A; 2; }; 3/ &<br />

.3; K; A; 2; }; 7/ %<br />

f7}; K|; A~; 2; 3}g<br />

There<strong>for</strong>e, the number of hands with every suit is:<br />

13 4 4 12<br />

:<br />

2<br />

15.8 The Pigeonhole Principle<br />

Here is an old puzzle:<br />

A drawer in a dark room contains red socks, green socks, and blue<br />

socks. How many socks must you withdraw to be sure that you have a<br />

matching pair?<br />

For example, picking out three socks is not enough; you might end up with one<br />

red, one green, and one blue. The solution relies on the<br />

Pigeonhole Principle<br />

If there are more pigeons than holes they occupy, then at least two<br />

pigeons must be in the same hole.

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

Saved successfully!

Ooh no, something went wrong!