INPUT OUTPUT
Problem: A nice drawing of the tree T.
Excerpt from The Algorithm Design Manual: There are as many reasons to want to draw trees as there are types of structures that trees represent. Consider software and debugging tools that illustrate the hierarchical structure of file system directories, or that trace the execution
The primary issue in drawing trees is establishing whether you are drawing free or rooted trees:
Handbook of Graph Drawing and Visualization by R. Tamassia | Graph Drawing Software by Michael Jünger and Petra Mutzel | Drawing Graphs: Methods and Models by M. Kaufmann and D. Wagner |
Graph Drawing: Algorithms for the Visualization of Graphs by Giuseppe Di Battista, Peter Eades, Roberto Tamassia, and Ionnis G. Tollis | Computational Discrete Mathematics: Combinatorics and Graph Theory with Mathematica by S. Pemmaraju and S. Skiena |