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 668 — #676<br />

668<br />

Chapter 15<br />

Cardinality Rules<br />

Rule I: Student A must not be rightmost.<br />

Rule II: Student B must be adjacent to C (directly to the left or right of C).<br />

Rule III: Student D is always second.<br />

You may answer the following questions with a numerical <strong>for</strong>mula that may<br />

involve factorials.<br />

(a) How many possible lineups are there that satisfy all three of these rules?<br />

(b) How many possible lineups are there that satisfy at least one of these rules?<br />

Problem 15.63.<br />

A robot on a point in the 3-D integer lattice can move a unit distance in one positive<br />

direction at a time. That is, from position .x; y; z/, it can move to either .x C<br />

1; y; z/, .x; y C 1; z/ or .x; y; z C 1/. For any two points P and Q in space, let<br />

n.P; Q/ denote the number of distinct paths the spacecraft can follow to go from<br />

P to Q.<br />

Let<br />

A D .0; 10; 20/; B D .30; 50; 70/; C D .80; 90; 100/; D D .200; 300; 400/:<br />

(a) Express n.A; B/ as a single multinomial coefficient.<br />

Answer the following questions with arithmetic expressions involving terms n.P; Q/<br />

<strong>for</strong> P; Q 2 fA; B; C; Dg. Do not use numbers.<br />

(b) How many paths from A to C go through B?<br />

(c) How many paths from B to D do not go through C ?<br />

(d) How many paths from A to D go through neither B nor C ?<br />

Problem 15.64.<br />

In a standard 52-card deck (13 ranks and 4 suits), a hand is a 5-card subset of the set<br />

of 52 cards. Express the answer to each part as a <strong>for</strong>mula using factorial, binomial,<br />

or multinomial notation.<br />

(a) Let H be the set of all hands. What is jH j?<br />

(b) Let H NP be the set of all hands that include no pairs; that is, no two cards in<br />

the hand have the same rank. What is jH NP j?

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

Saved successfully!

Ooh no, something went wrong!