08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.9.5 Sperner’s Lemma<br />

Consider a triangulation <strong>of</strong> a 2-dimensional simplex. Let the vertices <strong>of</strong> the simplex<br />

be colored R, B, and G. If the vertices on each edge <strong>of</strong> the simplex are colored only with<br />

the two colors at the endpoints then the triangulation must have a triangle whose vertices<br />

are three different colors. In fact, it must have an odd number <strong>of</strong> such vertices. A<br />

generalization <strong>of</strong> the lemma to higher dimensions also holds.<br />

Create a graph whose vertices correspond to the triangles <strong>of</strong> the triangulation plus an<br />

additional vertex corresponding to the outside region. Connect two vertices <strong>of</strong> the graph<br />

by an edge if the triangles corresponding to the two vertices share a common edge that<br />

is color R and B. The edge <strong>of</strong> the original simplex must have an odd number <strong>of</strong> such<br />

triangular edges. Thus, the outside vertex <strong>of</strong> the graph must be <strong>of</strong> odd degree. The graph<br />

must have an even number <strong>of</strong> odd degree vertices. Each odd vertex is <strong>of</strong> degree 0, 1, or 2.<br />

The vertices <strong>of</strong> odd degree, i.e. degree one, correspond to triangles which have all three<br />

colors.<br />

12.9.6 Prüfer<br />

Here we prove that the number <strong>of</strong> labeled trees with n vertices is n n−2 . By a labeled<br />

tree we mean a tree with n vertices and n distinct labels, each label assigned to one vertex.<br />

Theorem 12.28 The number <strong>of</strong> labeled trees with n vertices is n n−2 .<br />

Pro<strong>of</strong>: (Prüfer sequence) There is a one-to-one correspondence between labeled trees<br />

and sequences <strong>of</strong> length n − 2 <strong>of</strong> integers between 1 and n. An integer may repeat in the<br />

sequence. The number <strong>of</strong> such sequences is clearly n n−2 . Although each vertex <strong>of</strong> the tree<br />

has a unique integer label the corresponding sequence has repeating labels. The reason for<br />

this is that the labels in the sequence refer to interior vertices <strong>of</strong> the tree and the number<br />

<strong>of</strong> times the integer corresponding to an interior vertex occurs in the sequence is related<br />

to the degree <strong>of</strong> the vertex. Integers corresponding to leaves do not appear in the sequence.<br />

To see the one-to-one correspondence, first convert a tree to a sequence by deleting<br />

the lowest numbered leaf. If the lowest numbered leaf is i and its parent is j, append j to<br />

the tail <strong>of</strong> the sequence. Repeating the process until only two vertices remain yields the<br />

sequence. Clearly a labeled tree gives rise to only one sequence.<br />

It remains to show how to construct a unique tree from a sequence. The pro<strong>of</strong> is<br />

by induction on n. For n = 1 or 2 the induction hypothesis is trivially true. Assume<br />

the induction hypothesis true for n − 1. Certain numbers from 1 to n do not appear<br />

in the sequence and these numbers correspond to vertices that are leaves. Let i be<br />

the lowest number not appearing in the sequence and let j be the first integer in the<br />

sequence. Then i corresponds to a leaf connected to vertex j. Delete the integer j from<br />

the sequence. By the induction hypothesis there is a unique labeled tree with integer<br />

labels 1, . . . , i − 1, i + 1, . . . , n. Add the leaf i by connecting the leaf to vertex j. We<br />

426

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

Saved successfully!

Ooh no, something went wrong!