English

Boundary Labeling for Rectangular Diagrams

Computational Geometry 2018-03-30 v1

Abstract

Given a set of nn points (sites) inside a rectangle RR and nn 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 RR, no two leaders cross, and the sum of the lengths of all the leaders is minimized. In a kk-sided boundary labeling problem, where 1k41\le k\le 4, the label locations are located on the kk consecutive sides of RR. In this paper, we develop an O(n3logn)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(n8logn)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 RR, 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).

Keywords

Cite

@article{arxiv.1803.10812,
  title  = {Boundary Labeling for Rectangular Diagrams},
  author = {Prosenjit Bose and Paz Carmi and J. Mark Keil and Saeed Mehrabi and Debajyoti Mondal},
  journal= {arXiv preprint arXiv:1803.10812},
  year   = {2018}
}

Comments

18 pages, 9 figures

R2 v1 2026-06-23T01:08:12.658Z