Placing Text Boxes on Graphs

  • Authors:
  • Sjoerd Hagen;Marc Kreveld

  • Affiliations:
  • Department of Information and Computing Sciences, Utrecht University, The Netherlands;Department of Information and Computing Sciences, Utrecht University, The Netherlands

  • Venue:
  • Graph Drawing
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we consider the problem of placing a unit square on a face of a drawn graph bounded by n vertices such that the area of overlap is maximized. Exact algorithms are known that solve this problem in O(n 2) time. We present an approximation algorithm that—for any given ε 0—places a (1 + ε)-square on the face such that the area of overlap is at least the area of overlap of a unit square in an optimal placement. The algorithm runs in $O(\frac{1}{\epsilon}\, n\log^2 n)$ time. Extensions of the algorithm solve the problem for unit discs, using $O(\frac{\log (1/\epsilon)}{\epsilon\sqrt{\epsilon}}\, n\log ^2n)$ time, and for bounded aspect ratio rectangles of unit area, using $O(\frac{1}{\epsilon^2}\, n\log^2 n)$ time.