Given a set of nodes, how can I build a tree that connects all nodes in such a way as to minimize max (max (degree), max (depth))?
For example, given a set of five nodes, I could connect them like this:

However, this is not minimal, since max (degree) == 4 and max (depth) == 1, the best tree would be the following:

which has max (degree) == 2 and max (depth) == 2
Edit :: The algorithm does not have to be fast, but it is important to accurately determine the optimal tree.
source
share