[Paper Review] Boundary Labeling for Rectangular Diagrams
This paper presents an O(n³ log n)-time algorithm for 1-bend 2-sided boundary labeling with po-leaders, significantly improving the prior O(n⁸ log n) solution. It extends to polynomial-time solutions for minimizing total leader length and bends in 3- and 4-sided models, even with obstacles, by modeling the problem as a maximum-weight independent set on outerstring graphs using dynamic programming and weighted string assignment.
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).
Motivation & Objective
- Develop an efficient algorithm for 1-bend 2-sided boundary labeling with po-leaders, improving upon the prior O(n⁸ log n) solution.
- Extend the approach to minimize total leader length and total number of bends in 3- and 4-sided boundary labeling models.
- Address the problem under general constraints, including obstacles and sliding ports, to achieve polynomial-time solvability.
- Settle open questions on the complexity of minimizing leader length and bends in multi-sided boundary labeling.
- Provide a unified framework using outerstring graphs and maximum-weight independent set to model and solve boundary labeling problems.
Proposed method
- Model the boundary labeling problem as an outerstring graph by representing each potential leader as a string connecting a site to a port.
- Assign weights to strings based on the number of bends: w(st(l)) = n+2 for 0 bends, n+1 for 1 bend (for po-leaders), and α+3, α+2, α+1 for 0, 1, 2 bends (for opo-leaders), with α = 2n.
- Reduce the problem to finding a maximum-weight independent set in the outerstring graph, ensuring no two leaders cross and each site/port is used at most once.
- Use Keil et al.’s O(n³ log n)-time algorithm for maximum-weight independent set on outerstring graphs to solve the problem efficiently.
- Prove equivalence between feasible labelings and independent sets of sufficient weight, enabling exact optimization via dynamic programming.
- Generalize the approach to handle obstacles by modifying the string construction to exclude invalid leader paths.
Experimental results
Research questions
- RQ1Can the 1-bend 2-sided boundary labeling problem be solved in less than O(n⁸ log n) time?
- RQ2Is minimizing the total leader length in 3- and 4-sided boundary labeling solvable in polynomial time?
- RQ3Can minimizing the total number of bends in multi-sided boundary labeling be achieved in polynomial time, even with obstacles?
- RQ4Is there a unified framework that reduces various boundary labeling objectives to a single graph-theoretic problem?
- RQ5What is the computational complexity of minimizing bends and leader length in adjacent 2-sided models with orthogonal constraints?
Key findings
- The paper presents an O(n³ log n)-time algorithm for 1-bend 2-sided boundary labeling with po-leaders, improving the prior O(n⁸ log n) solution.
- The total leader length minimization problem for 3- and 4-sided boundary labeling is now solvable in polynomial time, resolving an open question.
- The total number of bends can be minimized in polynomial time for adjacent and opposite models, including with obstacles.
- The approach generalizes to opo-leaders (2-bend leaders) and supports sliding ports, maintaining polynomial-time complexity.
- The reduction to maximum-weight independent set on outerstring graphs enables exact optimization under multiple objectives.
- The framework settles open problems listed in Wolff’s Handbook of Graph Drawing (Table 23.1, 2014), particularly for 3- and 4-sided models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.