八边形引导线的边界标注算法
1. 通用算法介绍
我们有一个通用算法用于解决边界标注问题,其输入和输出及步骤如下:
- 输入 :一个包含 $n$ 个站点的集合 $P = {s_1, \ldots, s_n}$ 和一个放置在矩形 $R$ 边界上的 $n$ 个统一标签的集合 $L = {l_1, \ldots, l_n}$。
- 输出 :一个无交叉且总引导线长度最小的边界标注。
下面是具体的步骤:
Algorithm 1. Generic Algorithm
input: A set P = {s1, . . . , sn} of n sites and a set L = {l1, . . . , ln} of n uniform
labels placed on the boundary of R.
output : A crossing free boundary labeling of minimum total leader length.
Step A: Construct a complete weighted bipartite graph.
Construct a complete weighted bipartite graph G = (P ∪L, E, w) between all
sites si ∈P and all labels lj ∈L. The weight w(eij) of an edge eij = (si, lj) ∈E
is the length of the leader, s
超级会员免费看
订阅专栏 解锁全文
13

被折叠的 条评论
为什么被折叠?



