1: \begin{abstract}
2: Boundary labeling is a technique in computational geometry used to label dense sets of feature points in an illustration.
3: It involves placing labels along an axis-aligned bounding box and connecting each label with its corresponding feature point using non-crossing leader lines.
4: %
5: Although boundary labeling is well-studied, semantic constraints on the labels have not been investigated thoroughly. %
6: %
7: In this paper, we introduce \emph{grouping} and \emph{ordering constraints} in boundary labeling:
8: Grouping constraints enforce that
9: %
10: all labels in a group are placed consecutively on the boundary,
11: %
12: %
13: and ordering constraints enforce
14: %
15: a partial order over the labels.
16: %
17: We show that it is \NP-hard to find a %
18: labeling for arbitrarily sized labels with unrestricted positions along one side of the boundary.
19: %
20: However, we obtain polynomial-time algorithms if we restrict this problem either to uniform-height labels or to a finite set of candidate positions.
21: %
22: Finally, we show that finding a labeling on two opposite sides of the boundary is \NP-complete, even for uniform-height labels and finite label positions.
23: %
24: %
25: %
26: %
27: %
28: %
29: %
30: \end{abstract}
31: