Boundary Labeling for Rectangular Diagrams

Given a set of $n$ points (sites) inside a rectangle $R$ and $n$ points (label locations or ports) on its boundary, a boundary labeling problem seeks ways of connecting every site to a distinct port while achieving different labeling aesthetics. We examine the scenario when the connecting lines (leaders) are drawn as axis-aligned polylines with few bends, every leader lies strictly inside $R$, no two leaders cross, and the sum of the lengths of all the leaders is minimized. In a $k$-sided boundary labeling problem, where $1\le k\le 4$, the label locations are located on the $k$ consecutive sides of $R$. In this paper, we develop an $O(n^3\log n)$-time algorithm for 2-sided boundary labeling, where the leaders are restricted to have one bend. This improves the previously best known $O(n^8\log n)$-time algorithm of Kindermann et al. (Algorithmica, 76(1):225-258, 2016). We show the problem is polynomial-time solvable in more general settings such as when the ports are located on more than two sides of $R$, in the presence of obstacles, and even when the objective is to minimize the total number of bends. Our results improve the previous algorithms on boundary labeling with obstacles, as well as provide the first polynomial-time algorithms for minimizing the total leader length and number of bends for 3- and 4-sided boundary labeling. These results settle a number of open questions on the boundary labeling problems (Wolff, Handbook of Graph Drawing, Chapter 23, Table 23.1, 2014).

[1]  Alexander Wolff,et al.  Multi-sided Boundary Labeling , 2015, Algorithmica.

[2]  Michael A. Bekos,et al.  Many-to-One Boundary Labeling with Backbones , 2013, Graph Drawing.

[3]  Martin Nöllenburg,et al.  Dynamic one-sided boundary labeling , 2010, GIS '10.

[4]  Steven Zoraster,et al.  The Solution of Large 0-1 Integer Programming Problems Encountered in Automated Cartography , 1990, Oper. Res..

[5]  HERBERT FREEMAN,et al.  An expert system for the automatic placement of names on a geographic map , 1988, Inf. Sci..

[6]  Joseph S. B. Mitchell,et al.  An Algorithm for the Maximum Weight Independent Set Problem onOutersting Graphs , 2015, CCCG.

[7]  Martin Nöllenburg,et al.  Temporal map labeling: a new unified framework with experiments , 2016, SIGSPATIAL/GIS.

[8]  Michael A. Bekos,et al.  Boundary Labeling with Octilinear Leaders , 2009, Algorithmica.

[9]  Alexander Wolff,et al.  Graph Drawing and Cartography , 2013, Handbook of Graph Drawing and Visualization.

[10]  Madhav V. Marathe,et al.  Map labeling and its generalizations , 1997, SODA '97.

[11]  Alexander Wolff,et al.  Boundary labeling: Models and efficient algorithms for rectangular maps , 2004, Comput. Geom..

[12]  Martin Nöllenburg,et al.  Algorithms for Multi-Criteria Boundary Labeling , 2009, J. Graph Algorithms Appl..

[13]  Subhash Suri,et al.  Boundary Labeling with Obstacles , 2016, CCCG.

[14]  Stephen A. Hirsch,et al.  An Algorithm for Automatic Name Placement Around Point Data , 1982 .

[15]  Mark de Berg,et al.  Computational geometry: algorithms and applications , 1997 .

[16]  Frank Wagner,et al.  A packing problem with applications to lettering of maps , 1991, SCG '91.

[17]  Martin Nöllenburg,et al.  Radial contour labeling with straight leaders , 2017, 2017 IEEE Pacific Visualization Symposium (PacificVis).

[18]  Martin Nöllenburg,et al.  On the Readability of Boundary Labeling , 2015, Graph Drawing.

[19]  Steven Zoraster,et al.  Practical Results Using Simulated Annealing for Point Feature Label Placement , 1997 .

[20]  Joseph S. B. Mitchell,et al.  A Polynomial time Algorithm for the Maximum Weight Independent Set Problem on Outerstring Graphs ∗ , 2013 .