zzu10395专题

poj 2567 zzu10395 nyoj1254 Code the Tree(Prufer数列)

Description: A tree (i.e. a connected graph without cycles) with vertices numbered by the integers 1, 2, …, n is given. The “Prufer” code of such a tree is built as follows: the leaf (a vertex that