13.11.2014 Views

proofs

proofs

proofs

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.

Cayley’s formula for the number of trees 205<br />

Fourth proof (Double Counting). The following marvelous idea due<br />

to Jim Pitman gives Cayley’s formula and its generalization (2) without<br />

induction or bijection — it is just clever counting in two ways.<br />

F 2 8 4<br />

A rooted forest on {1, . . .,n} is a forest together with a choice of a root in<br />

each component tree. Let F n,k be the set of all rooted forests that consist<br />

of k rooted trees. Thus F n,1 is the set of all rooted trees.<br />

3<br />

5<br />

Note that |F n,1 | = nT n , since in every tree there are n choices for the root.<br />

2<br />

We now regard F n,k ∈ F n,k as a directed graph with all edges directed 7 6<br />

away from the roots. Say that a forest F contains another forest F ′ if F<br />

contains F ′ as directed graph. Clearly, if F properly contains F ′ , then F<br />

9<br />

has fewer components than F ′ 1<br />

. The figure shows two such forests with the<br />

roots on top. 10<br />

Here is the crucial idea. Call a sequence F 1 , . . .,F k of forests a refining F 2 contains F 3<br />

sequence if F i ∈ F n,i and F i contains F i+1 , for all i.<br />

8 4 7<br />

Now let F k be a fixed forest in F n,k and denote<br />

• by N(F k ) the number of rooted trees containing F k , and<br />

3<br />

5<br />

• by N ∗ (F<br />

2<br />

1<br />

k ) the number of refining sequences ending in F k .<br />

F 3<br />

6<br />

We count N ∗ (F k ) in two ways, first by starting at a tree and secondly by<br />

10<br />

starting at F k . Suppose F 1 ∈ F n,1 contains F k . Since we may delete<br />

the k − 1 edges of F 1 \F k in any possible order to get a refining sequence<br />

from F 1 to F k , we find<br />

9<br />

N ∗ (F k ) = N(F k )(k − 1)!. (3)<br />

Let us now start at the other end. To produce from F k an F k−1 we have to<br />

add a directed edge, from any vertex a, to any of the k −1 roots of the trees<br />

that do not contain a (see the figure on the right, where we pass from F 3<br />

to F 2 by adding the edge 3 7). Thus we have n(k − 1) choices.<br />

Similarly, for F k−1 we may produce a directed edge from any vertex b to<br />

any of the k−2 roots of the trees not containing b. For this we have n(k−2)<br />

choices. Continuing this way, we arrive at<br />

N ∗ (F k ) = n k−1 (k − 1)!, (4)<br />

and out comes, with (3), the unexpectedly simple relation<br />

N(F k ) = n k−1 for any F k ∈ F n,k .<br />

For k = n, F n consists just of n isolated vertices. Hence N(F n ) counts the<br />

number of all rooted trees, and we obtain |F n,1 | = n n−1 , and thus Cayley’s<br />

formula.<br />

□<br />

But we get even more out of this proof. Formula (4) yields for k = n:<br />

# { refining sequences (F 1 , F 2 , . . . , F n ) } = n n−1 (n − 1)!. (5)<br />

For F k ∈F n,k , let N ∗∗ (F k ) denote the number of those refining sequences<br />

F 1 , . . . , F n whose k-th term is F k . Clearly this is N ∗ (F k ) times the number<br />

2<br />

F 3 −→ F 2<br />

8 4 7<br />

3<br />

5<br />

6<br />

1<br />

10<br />

9

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

Saved successfully!

Ooh no, something went wrong!