Homework 2 (due Tuesday, September 7th)

1. Show that for any unlabeled tree, there is a labeling such that xi=i for i=1, ..., n-1 in the Prüfer construction.

2. Show that given 1 ≤ yin for i=1, ..., n-2, there is an O(n) algorithm to construct the sequence xi=i, for i=1, ..., n-1 in the Prüfer construction.