DISCRETE MATHEMATICS THROUGH GUIDED DISCOVERY ...
DISCRETE MATHEMATICS THROUGH GUIDED DISCOVERY ...
DISCRETE MATHEMATICS THROUGH GUIDED DISCOVERY ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
◦81. Use the General Product Principle to prove the number of functions<br />
from an m-element set to a n-element set is m n . A common notation<br />
for the set of all functions from a set M to a set N is N M .<br />
+ 82. Now suppose you are thinking about the set S of functions f from [m]<br />
to [n]. (For example, the set of functions from the three possible places<br />
for scoops in an ice-cream cone to 12 flavors of ice cream.) Suppose<br />
f(1) can be chosen in k1 ways. (In the ice cream problem, k1 = 12<br />
holds because there were 12 ways to choose the first scoop.) Suppose<br />
that for each choice of f(1) there are k2 choices for f(2). (For the ice<br />
cream cones, k2 = 12 when the second flavor could be the same as the<br />
first, but k2 = 11 when the flavors had to be different.) In general,<br />
suppose that for each choice of f(1), f(2), . . . , f(i − 1), there are ki<br />
choices forf(i). What has been assumed so far about the functions in<br />
S may be summarized as:<br />
• There are k1 choices for f(1).<br />
• For each choice of f(1), f(2), . . . , f(i − 1), there are ki choices<br />
for f(i).<br />
How many functions are in the set S? Is there any practical difference<br />
between the result of this problem and the General Product Principle?<br />
The point of Problem 82 is that originally the statement the General Product<br />
Principle was somewhat informal. To be more mathematically precise it is<br />
a statement about counting sets of functions.<br />
83. This problem revisits the question: How many subsets does a set S<br />
with n elements have? (Compare with Problems 26 and 57.)<br />
(a) For the specific case of n = 3, describe a sequence of three decisions<br />
which could be made to yield subsets of [3]. Apply the General<br />
Product Principle to find the number of subsets of [3]. Re-work<br />
this from a function point of view.<br />
(b) Use the functional interpretation of the General Product Principle<br />
to prove that a set with n elements has 2 n subsets.<br />
•84. In how many ways can you pass out k distinct pieces of fruit to n<br />
children (with no restriction on how many pieces of fruit a child may<br />
get)?<br />
◦85. Assuming k ≤ n, in how many ways can you pass out k distinct pieces<br />
of fruit to n children if each child may get at most one? What is the<br />
number if k > n? Assume for both questions that you pass out all the<br />
fruit. Note that each of these is a list of k distinct things chosen from<br />
a set S (of children).<br />
37