30.11.2012 Views

DISCRETE MATHEMATICS THROUGH GUIDED DISCOVERY ...

DISCRETE MATHEMATICS THROUGH GUIDED DISCOVERY ...

DISCRETE MATHEMATICS THROUGH GUIDED DISCOVERY ...

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.

the elements of T . (Part (e) is slightly different.) You then can draw an<br />

arrow from the vertex for x ∈ S to the vertex for y ∈ T if and only if x is<br />

related to y. Such arrows are called (directed) edges. Because there is<br />

an inherent order in a relation, every edge is an arrow and not just a line<br />

segment. When the relation is a function, f : S → T , one arrow is drawn<br />

from each x ∈ S to its corresponding f(x) ∈ T . Familiarize yourself with<br />

this technique by working through the digraphs in Figure 1.3. Note that<br />

in part (e) the function is from a set S to itself and the picture has been<br />

simplified by drawing only one set of vertices representing the elements of<br />

S. Digraphs can often be more enlightening if you experiment to find an<br />

attractive placement of the vertices rather than putting them in a row.<br />

There is a simple test for whether a digraph of a relation from S to T is<br />

a digraph of a function from S to T :<br />

•17. Returning to the digraphs in Figure 1.3, determine which are functions.<br />

Then formulate a precise sentence stating what properties the arrows<br />

and vertices in a digraph must possess so that the digraph represents<br />

a function f from S to T .<br />

•18. (a) In how many ways can you pass out nine different candies to<br />

three children? Set up your solution as a problem about counting<br />

functions.<br />

(b) In how many ways can you pass out the candy if each child must<br />

get at least one piece?<br />

(c) Exactly three pieces?<br />

•19. Suppose you have n distinguishable balls. How many ways can you<br />

paint each of them with one color, chosen from red, black, green and<br />

blue?<br />

The most mathematically elegant solutions to the last problems probably<br />

involve using functions. Until now, your experience with functions probably<br />

has only involved a formula in calculus. In contrast, in discrete mathematics<br />

a function can be an algorithm or it might be given by a verbal description.<br />

From now on, for any positive integer n the notation [n] will be used for<br />

the set {1, . . . , n}. For example, [4] equals the set {1, 2, 3, 4}. This symbol<br />

is not used in all branches of mathematics, but for us [n] will always mean<br />

the set {1, . . . , n}.<br />

13

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

Saved successfully!

Ooh no, something went wrong!