Optimizing area and aspect ratio in straight-line orthogonal tree drawings

  • Authors:
  • Timothy M. Chan;Michael T. Goodrich;S. Rao Kosaraju;Roberto Tamassia

  • Affiliations:
  • Department of Computer Science, University of Waterloo, Waterloo, ON, Canada N2L 361;Department of Computer Science, Johns Hopkins University;Department of Computer Science, Johns Hopkins University;Department of Computer Science, Brown University

  • Venue:
  • Computational Geometry: Theory and Applications
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

We investigate the problem of drawing an arbitrary n-node binary tree orthogonally and upwardly in an integer grid using straight-line edges. We show that one can simultaneously achieve good area bounds while also allowing the aspect ratio to be chosen as a fixed constant or a parameter under the user's control. In addition, we show that one can also achieve an additional desirable aesthetic criterion, which we call "subtree separation". Our drawings require O(n logn) area, which we show is optimal to within constant factors in the worst case (i.e. there are trees that need Ω(n logn) area for any upward orthogonal straight-line drawing with good aspect ratio). An improvement for non-upward drawings is briefly mentioned.