15.12.2012 Views

Why Read This Book? - Index of

Why Read This Book? - Index of

Why Read This Book? - Index of

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.

4.8 Cartesian Products and Cardinality 147<br />

coordinate is f(a2), and so on. Since distinct m-tuples from B m represent distinct<br />

functions from A to B, we have proved the following.<br />

Theorem 4.8.8 If A and B are non-empty sets with |A| = m and |B| = n, then<br />

there are n m distinct functions from A to B.<br />

Here is an informal way to think <strong>of</strong> Theorem 4.8.8. Let A = Nm and imagine<br />

we have m empty slots numbered 1, 2,...,m. Into each slot we insert precisely<br />

one element <strong>of</strong> B, where any element <strong>of</strong> B may be used repeatedly if we like.<br />

Filling the slots in this way is equivalent to defining a function f : Nm → B. There<br />

are n choices <strong>of</strong> element to place in the first slot. For each <strong>of</strong> these ways to fill the<br />

first slot, there are n ways to fill the second slot, so that there are n 2 ways to fill<br />

the first two slots. Continuing, we have that there are n m ways to fill all m slots.<br />

Theorem 4.8.8 motivates the notation B A to represent the set <strong>of</strong> all functions from<br />

A to B.<br />

What if we must fill each <strong>of</strong> the n slots with one <strong>of</strong> the m elements <strong>of</strong> B, but<br />

we are not allowed to use any element <strong>of</strong> B more than once? How many ways can<br />

this be done? First note that if such a task can be done at all, it must be that m ≤ n.<br />

We have a choice <strong>of</strong> n objects for the first slot. Then, regardless <strong>of</strong> which element<br />

<strong>of</strong> B was placed in the first slot, there are n − 1 possible elements for the second<br />

slot, and so on. Thus the number <strong>of</strong> ways to fill the m slots with distinct elements<br />

<strong>of</strong> B is n(n − 1)(n − 2)...(n− m + 1). We write this as<br />

P(n, m) = n(n − 1)(n − 2)...(n− m + 1) =<br />

n!<br />

(n − m)!<br />

(4.23)<br />

which is called the number <strong>of</strong> permutations <strong>of</strong> n objects taken m at a time. Filling<br />

the slots with elements <strong>of</strong> B so that there is no repetition is the same as constructing<br />

a function from B to Nm that is one-to-one. With this, we have an informal pro<strong>of</strong><br />

<strong>of</strong> the following. A rigorous pro<strong>of</strong> should be done by induction.<br />

EXERCISE 4.8.9 Let A and B be non-empty sets with |A| = m ≤ n = |B|. Then<br />

there are P(n, m) distinct one-to-one functions from A to B. 18<br />

If Eq. (4.23) is to be taken as meaningful for m = 0, it implies that there is one<br />

way to arrange zero <strong>of</strong> n objects. It also suggests that there exists a unique (empty)<br />

function from the empty set to any finite set.<br />

If U is a finite univeral set and A is a subset <strong>of</strong> U, then Exercise 4.6.10 implies<br />

the complement rule, which says<br />

|A| = |U| − � �A C� � (4.24)<br />

Sometimes the task <strong>of</strong> determining the cardinality <strong>of</strong> a set is more easily done by<br />

exploiting Eq. (4.24).<br />

18 Induct on m ≥ 1.

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

Saved successfully!

Ooh no, something went wrong!